Click here to Skip to main content
11,922,641 members (36,302 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 19-Nov-12 0:51am
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
Web04 | 2.8.151125.1 | Last Updated 19 Nov 2012
Copyright © CodeProject, 1999-2015
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