Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Can anyone know?

how to bind username in label from another page by passing parameters ?
Posted
Comments
Sergey Alexandrovich Kryukov 8-Feb-12 4:18am    
Is "can anyone know?" also a question? Is question mark a mistake?
The answer is "yes", but... did you doubt it? :-)
--SA
zyck 8-Feb-12 4:18am    
Elaborate your question please
CRDave1988 8-Feb-12 4:25am    
u really need to improve this question. which page is first called? how u want to pass parameter ?

Try this,
C#
Label1.Text=Request.QueryString["username"].ToString();
 
Share this answer
 
Comments
Tech Code Freak 8-Feb-12 12:29pm    
5up!
you can use any state management mechanism,but if you want to pass the parameter by using querystring from one page to another then use Querystring state management as,
C#
LblId.Text=Request.QueryString["username"].ToString(); 
 
Share this answer
 

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