i was unable to create session using login control. It supposed to be put in submit button, so i convert to template and double click at the login button, write :
session ["username"] = UserName.text
Since the textbox id for username field is UserName, so i put UserName.text unfortunately the id is giving me error.
UserName does not exist in current context.
So, what should i do to keep the username in session. Any suggestion?
Thank you.
Please try this:
Eg:
Suppose your Login Control is:
Try to get like: