Hello All!
I am trying to pass values from one web form to another web form. I know that there are 3 ways of doing this: queryString, Server.Transfer and Session. I am using the Server.Transfer method. But I am not able to create, in my 2nd web form, an instance of my 1st web form. My 1st Web form is named CallTrack.aspx and my 2nd is named Export.aspx.
What I mean is something like this: Public value as CallTrack. I can't create it in my 2nd web form because when the intellisense is displayed, there's no CallTrack in the options.
Thanks!
![]() |
0 |
![]() |
How about using cross-page posting?
http://msdn.microsoft.com/en-us/library/ms178139.aspx
Thanks, Ed
Microsoft MVP - ASP/ASP.NET
![]() |
0 |
![]() |
What do you mean by cross-page posting? Be specific with an example.
![]() |
0 |
![]() |
By default a page postbacks to itself but instead of posting back to itself, postbacks to another page
Another article that explains with example
http://www.c-sharpcorner.com/UploadFile/DipalChoksi/xpgpostbk_asp2_dc08102006235543PM/xpgpostbk_asp2_dc.aspx?ArticleID=9e2b12e6-7842-419d-a3c9-df58f6aba523
Jeev
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you get the answer to your question, please mark it as the answer.
![]() |
0 |
![]() |
Kronos:
I am trying to pass values from one web form to another web form. I know that there are 3 ways of doing this: queryString, Server.Transfer and Session. I am using the Server.Transfer method. But I am not able to create, in my 2nd web form, an instance of my 1st web form. My 1st Web form is named CallTrack.aspx and my 2nd is named Export.aspx. What I mean is something like this: Public value as CallTrack. I can't create it in my 2nd web form because when the intellisense is displayed, there's no CallTrack in the options.
This may help...
http://msdn.microsoft.com/en-us/library/aa713401(VS.71).aspx
Regards,Vinz
"Code, Beer and Music" that's my way of being a programmer!
How to get your Forum Question Answered | Blog | CodeASP.NET
![]() |
0 |
![]() |
I checked out both of your links, but it still doesn't solve my problem, which is I can't create an instance of my source web page in my destination page. I'm using Visual Basic 2005. How do I do this?
![]() |
0 |
![]() |
I would use session variables. They always seem to work for me.
Set the session variable in your first page.
Session("Call_this_what_you_want") = txtbox1.text (or label1.text)
On the second page, to retrieve the value, do this:
Dim ValuefromFirstPage as string = Session("Call_this_what_you_want")
![]() |
0 |
![]() |
one more way, you can say to you database first, the auto load in the second pageKronos:
Hello All!
I am trying to pass values from one web form to another web form. I know that there are 3 ways of doing this: queryString, Server.Transfer and Session. I am using the Server.Transfer method. But I am not able to create, in my 2nd web form, an instance of my 1st web form. My 1st Web form is named CallTrack.aspx and my 2nd is named Export.aspx.
What I mean is something like this: Public value as CallTrack. I can't create it in my 2nd web form because when the intellisense is displayed, there's no CallTrack in the options.
Thanks!
owner of AskBargains.com
MCAD & MCSD
If you mark as "Answer"other people can use this answer as a reference
![]() |
0 |
![]() |
one more way, you can save to you database first, the auto load in the second pageKronos:
Hello All!
I am trying to pass values from one web form to another web form. I know that there are 3 ways of doing this: queryString, Server.Transfer and Session. I am using the Server.Transfer method. But I am not able to create, in my 2nd web form, an instance of my 1st web form. My 1st Web form is named CallTrack.aspx and my 2nd is named Export.aspx.
What I mean is something like this: Public value as CallTrack. I can't create it in my 2nd web form because when the intellisense is displayed, there's no CallTrack in the options.
Thanks!
owner of AskBargains.com
MCAD & MCSD
If you mark as "Answer"other people can use this answer as a reference
![]() |
0 |
![]() |
one more way, you can save to you database first, the auto load in the second pageKronos:
Hello All!
I am trying to pass values from one web form to another web form. I know that there are 3 ways of doing this: queryString, Server.Transfer and Session. I am using the Server.Transfer method. But I am not able to create, in my 2nd web form, an instance of my 1st web form. My 1st Web form is named CallTrack.aspx and my 2nd is named Export.aspx.
What I mean is something like this: Public value as CallTrack. I can't create it in my 2nd web form because when the intellisense is displayed, there's no CallTrack in the options.
Thanks!
owner of AskBargains.com
MCAD & MCSD
If you mark as "Answer"other people can use this answer as a reference
![]() |
0 |
![]() |
one more way, you can save to your database first, the auto load in the second pageKronos:
Hello All!
I am trying to pass values from one web form to another web form. I know that there are 3 ways of doing this: queryString, Server.Transfer and Session. I am using the Server.Transfer method. But I am not able to create, in my 2nd web form, an instance of my 1st web form. My 1st Web form is named CallTrack.aspx and my 2nd is named Export.aspx.
What I mean is something like this: Public value as CallTrack. I can't create it in my 2nd web form because when the intellisense is displayed, there's no CallTrack in the options.
Thanks!
owner of AskBargains.com
MCAD & MCSD
If you mark as "Answer"other people can use this answer as a reference
![]() |
0 |
![]() |