SyntaxError SyntaxError - 1 year ago 144
ASP.NET (C#) Question

Session value to TextBox Value

How to call a Session and use it as a value of Text Box Form. I am using

<form id="frmLog" name="frmLog" method="post" action="/Page/">
<input type="text" name="UserId" value="<%=Sessiopn["UserID"] %>">" />


Answer Source

Correct it to this. You have a typing mistake.

<input type="text" name="UserId" value="<%=Session["UserID"] %>" />
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download