Take the 2-minute tour ×

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

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


share|improve this question
MVC or webforms? –  walther Aug 23 '12 at 9:28
add comment

2 Answers

up vote 0 down vote accepted

Correct it to this. You have a typing mistake.

<input type="text" name="UserId" value="<%=Session["UserID"] %>" />
share|improve this answer
You have an extra >" in your solution ;) –  walther Aug 23 '12 at 9:27
add comment

you have error on variable name (without p)

Sessiopn -> Session

share|improve this answer
add comment

Your Answer


