Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
if i login with correct userid and password, i want to display that userid name in one label.
i tried but it not showing the userid in welcome page
Posted
Comments
[no name] 18-Apr-14 11:14am    
You tried what exactly?

put this code where you succeed login command..

VB
yourlablename.text = userid_textbox.text 

'if you want to send to other form then paste this code

formname.yourlablename.text = userid_textbox.text
formname.show()
 
Share this answer
 
If you are using VB.Net:
after you validate username and password from the database you can just type
<br />
frmmain.lbl.text=txtusername.text<br />
frmmain.show()<br />
 
Share this answer
 
Comments
gnani_pal 9-May-14 2:42am    
here i am using web applications, is it work in .aspx
sarfarazbhat 10-May-14 12:09pm    
Yes absolutely. I have checked it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900