.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 9th, 2004, 03:18 AM
weifoon weifoon is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 2 weifoon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old March 10th, 2004, 11:32 AM
SE_Manager SE_Manager is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Central Ohio
Posts: 4 SE_Manager User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to SE_Manager Send a message via MSN to SE_Manager Send a message via Yahoo to SE_Manager
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

Reply With Quote
  #3  
Old March 11th, 2004, 01:48 PM
sano sano is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Location: Redmond, WA
Posts: 218 sano User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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?

Reply With Quote
  #4  
Old March 14th, 2004, 12:43 AM
thug_bugger thug_bugger is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 25 thug_bugger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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..?

Reply With Quote
  #5  
Old March 14th, 2004, 01:19 AM
sano sano is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Location: Redmond, WA
Posts: 218 sano User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Quote:
Originally Posted by thug_bugger
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..?


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.

Reply With Quote
  #6  
Old March 14th, 2004, 07:39 PM
thug_bugger thug_bugger is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 25 thug_bugger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yeah!!! Gt It.. Thanx..

Isn't programmin 'fun'..? Makes u want to carry on and on...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > parameter passing


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT