|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
parameter passing
hi, how can i pass a parameter from a vb.net form to another?
for example, i have a login.vb which have a textbox call txtlogin. if i load the menu.vb, how can i access the value of txtlogin of the login.vb?? thanks in advance |
|
#2
|
|||
|
|||
|
When you find out
I have the exact same question. Is there some sort of modular variable you can define for the whole project? There has to be an easy answer, I just can't find it
![]() |
|
#3
|
|||
|
|||
|
ASP.NET does not support global variables.
Give me a better idea of what you're trying to do and I'll help. Are you trying to pass a variable from one web form to another? Or are you using user controls? |
|
#4
|
|||
|
|||
|
Hi sano
I have kind of the same prob.. i have this login page and upon successful login, i wish to display the username in another web form page. My username is found in MSAccess. How do i do it..? |
|
#5
|
|||
|
|||
|
Quote:
It's really easy to do this using Sessions. Basically, all you have to do is define a session key and value like this: Session[ "username" ] = "username that you want to persist"; Then on the second page, use the key to access the value: lblUsername.Text = Session[ "username" ]; If you still need help, check the HttpContext.Session property in the .NET framework class library documentation. |
|
#6
|
|||
|
|||
|
Yeah!!! Gt It.. Thanx..
Isn't programmin 'fun'..? Makes u want to carry on and on... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > .Net Development > parameter passing |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|