Last post Sep 23, 2008 09:26 AM by nimeshprabhakar
Sep 23, 2008 09:17 AM|vijaycanaan|LINK
Iam new to asp.net2.0 programming. here i got a situation to transfer from one webform(.aspx page) to another webform(.aspx). I have searched and read the tutorials from the web and finally server.transfer suited to my requirement. i was using the code behind
for the webform pages. Especially i followed as is the link(http://msdn.microsoft.com/en-us/library/6c3yckfw(VS.71).aspx) in implementing but not succeeded. I was getting a error: error BC30506: Handles clause requires a WithEvents variable defined in the
containing type. I was in perfect of following msdn link. (Does all this process work in ASP.net 2.0).
thanks and regards,
Sep 23, 2008 09:24 AM|Crewe2008|LINK
doesn't responce.redirect suit you?
Sep 23, 2008 09:26 AM|nimeshprabhakar|LINK
IF you wanna pass parameter from one page to another you can go for Session
Let this be the operation in your first page that is Default.aspx
Session("Parameter")="Storing the value from the first page";
Response.Redirect("Default1.aspx") ------> redirecting to second page.
Go to your second page(aspx). where you wanna get the parameter.
Dim str As String = Session("Parameter").ToString() ----->
str wiill contain the value that you passed from first page
Mark this as answer if this post really helped you.........