Amit Roy wrote:
but after the logout page When i again come to the login page, the value becomes "Office"
Amit Roy wrote:
have a text box in my Login Page, where i am giving it a value in the .aspx page i.e(hard coded). When i run this Page it is showing me the value of textbox that is "Office".
On the login page you will always see it as "Office" irrespective of you logout and come to that page or you hit that page directly. And that's because you have hard-coded it. There is no role of session here as other people have said in their comment. You may have a different value on other pages, but login page will always show hard-coded value (unless you change it on client side).
To show a different value there you need to fetch that value from somewhere based on you logic rather than hard-coding it. Please elaborate on what you want exactly and we may be able to help.