How to deliver the Forms parameters in the .NET to another FRAMSET in another frameset.

xiaoxiao2021-03-06  82

First of all, this article will be used to use two framesets:

A Frameset: SERACH FORMSB FRAMESET: DATALIST FORMS

Generally, we are in .NET development, we write code in the same file, that is, post-coded code, but, in the development of .NET, because in order to facilitate interface query, and the overall Frameset effect is sometimes unfortunate Write the query in a separate .aspx file, the result of the query is placed in another frameset. The .aspx file containing the query results contains a .ascx user control.

Since .NET development is different from traditional ASP development, how to deliver the Forms parameters in the .NET to another FormSet in another FRAMESET.

it's here. I use Page.Server.Transfer to implement

First, you need to specify a frameset: SERGET = B Frame Name, which can be programmed. This.Forms.Target =. . .

Then in B Frameset: DataList Forms

Note that this B frameset: DataList Forms can accept parameters access to GET and FORM, but note. Because of the A frameset: Serach Forms, Page.Server.Transfer

A frameset: Search Forms part of the code:

string msgStatus = drpStatus.Items [drpStatus.SelectedIndex] .Value; string tempURLParam = "? / B FrameSet / DataList Forms / Search.aspx statusCode =" msgStatus; Page.Server.Transfer (tempURLParam);

So in B Frameset: DataList Forms, you need to write this way, or you don't accept the parameters from page.server.transfer (Tempurlparam). Most importantly, when you come with Transfer, you must think that you should use Request.Form to accept form parameters, then you will find it. I will never accept the value of A Forms. Although it is tracked, it can be found that the request.servervariables ["request_method"] is equal to POST, but you can't think of the value of a frameset: Serach Forms in form, it is not possible.

So we take the parameters selected on the Temfer (Tempurparam). Transmitting follows: string msgStatus = drpStatus.Items [drpStatus.SelectedIndex] .Value; string tempURLParam = "/ B FrameSet / DataList Forms / Search.aspx statusCode =?" MsgStatus; Page.Server.Transfer (tempURLParam);

This will pass the form parameters in the A Frameset: Serach Forms. See why I don't have to use Request.QueryString reasons for the reason for Request.form in front of me.

Below is B Frameset: DataList Forms Accepting a Frameset: SeraCh Forms partial code:

IF (Request_Method "]. TOSTRING (). Toupper () ==" Get ") {response.write ("