Click here to Skip to main content
15,885,435 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to bind session data in input tag......
like
HTML
<input type="hidden" name="name" value="<%= name%>">

Please reply me......
Posted
v4
Comments
Mohd. Mukhtar 19-Nov-12 6:02am    
What have you tried??
[no name] 19-Nov-12 7:44am    
<input type="hidden" name="name" value="<%= name%>">

i try like above...
Sachin Gargava 19-Nov-12 7:17am    
what is your actual requirement? is there any specific reason?
[no name] 19-Nov-12 7:43am    
yes , there is a spwcific reason...

attach Id="MyInput" and runat="server"

and in code behind
MyInput.Value=session["MySession"].ToString();
 
Share this answer
 
Hi
You can use Hiddenfield control instead of input html control.
 
Share this answer
 
v3

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