Click here to Skip to main content
12,549,468 members (42,524 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET
How to bind session data in input tag......
<input type="hidden" name="name" value="<%= name%>">
Please reply me......
Posted 18-Nov-12 23:51pm
Mohd. Mukhtar 19-Nov-12 6:02am
What have you tried??
Jitendra Kumar Gangwar 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?
Jitendra Kumar Gangwar 19-Nov-12 7:43am
yes , there is a spwcific reason...
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

and in code behind
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


You can use Hiddenfield control instead of input html control.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.161021.1 | Last Updated 19 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100