| | |
HttpContext.Current Question
Please support our VB.NET advertiser: Intel Parallel Studio Home
| View Poll Results: I am not sure what this is all about | |||
| I am not sure what this is all about | | 1 | 100.00% |
| I am not sure what this is all about | | 0 | 0% |
| Voters: 1. You may not vote on this poll | |||
![]() |
•
•
Join Date: Jun 2005
Posts: 17
Reputation:
Solved Threads: 0
Hello All, :rolleyes:
I found this code from and artical posted back in may and i had a newbie question that i would like to add to it.
1. Is this the proper all around method to pass values?
2. How would i capture these values? Could i do it in a textbox, label, ect..
3. Coluld i capture it in hidden fields some way.
* Anything someone would like to inform my on about the ((((HttpContext.Current Question))) and what it is all about ((From a developers standpoint))) i would love to hear about it!
Thank you ahead of time.
Erik.....
Dallas..
==============WebForm1=========
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
End Sub
Private Sub btnNext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNext.Click
Dim context As HttpContext = HttpContext.Current
context.Items.Add("strFirstName", TextBox1.Text)
Server.Transfer("Webform2.aspx", True)
End Sub
End Class
=========================Webform2=====================
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Dim context As HttpContext = HttpContext.Current
Response.Write("Your First Name is: " & context.Items("strFirstName"))
End Sub
End Class
I found this code from and artical posted back in may and i had a newbie question that i would like to add to it.
1. Is this the proper all around method to pass values?
2. How would i capture these values? Could i do it in a textbox, label, ect..
3. Coluld i capture it in hidden fields some way.
* Anything someone would like to inform my on about the ((((HttpContext.Current Question))) and what it is all about ((From a developers standpoint))) i would love to hear about it!
Thank you ahead of time.
Erik.....
Dallas..
==============WebForm1=========
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
End Sub
Private Sub btnNext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNext.Click
Dim context As HttpContext = HttpContext.Current
context.Items.Add("strFirstName", TextBox1.Text)
Server.Transfer("Webform2.aspx", True)
End Sub
End Class
=========================Webform2=====================
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Dim context As HttpContext = HttpContext.Current
Response.Write("Your First Name is: " & context.Items("strFirstName"))
End Sub
End Class
![]() |
Similar Threads
- asp:repeater in a form? (ASP.NET)
- Question in Visual Basic 6.0 (Visual Basic 4 / 5 / 6)
- request.form is not working in asp.net (ASP.NET)
- ASP .NET Display Random records from the database (ASP.NET)
- HttpContext (VB.NET)
- Application State question (ASP.NET)
Other Threads in the VB.NET Forum
- Previous Thread: Changing HKCU on a per user basis
- Next Thread: Frames per Seconds
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2005 2008 access account arithmetic array assignment basic binary bing button buttons center check code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net dropdownlist excel file-dialog firewall folder ftp google hardcopy image images insert isnumericfuntioncall listview login math memory mobile ms navigate net networking opacity output passingparameters peertopeervideostreaming picturebox picturebox1 port print problemwithinstallation project reports" save savedialog searchbox serial soap sorting string table tcp temp text textbox timer toolbox trim update updown upload useraccounts usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio web wpf





