Last post Mar 09, 2012 04:23 AM by rakeshreddym
Mar 07, 2012 01:36 AM|rakeshreddym|LINK
I want to use a UserName as Session Variable , When ever user name text box appears name should come automatically after two key strokes of name.
thaks in advance
Mar 07, 2012 01:56 AM|Inayat Rasool|LINK
Mar 07, 2012 02:04 AM|Ashutosh Pathak|LINK
you can use the same on OnTextChanged event of your textbox, you just need to check the length of your textBox.Text.Length property and if it goes more then 2 characters in length you should retrieve the value from session like code below:
protected void txtUserName_OnTextChanged(object sender, EventArgs e)
where Session["UserName"] is the session you should have created earlier.
Mar 07, 2012 03:13 AM|vijayano|LINK
Store the user name in session variabe and assign it to text box you want on terxtchanged event. If the length of the textbox is greater then or equal to 2
Mar 07, 2012 12:15 PM|Inayat Rasool|LINK
you can use ashx. as you are storing data in session/cache and access this with ashx it will be too fast. Please refer this
Mar 09, 2012 04:23 AM|rakeshreddym|LINK
Thank you Ashutosh