Congratulations to all monthly winners of May 2013 !!! They have won INR 2900 cash and INR 27497 worth prize.
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 21309 |  Welcome, Guest!   Register  Login
 Home > Code Snippets > C# > C# textbox focus with AJAX ...
Narenselva

C# textbox focus with AJAX

 Code Snippet posted by: Narenselva | Posted on: 9/7/2012 | Category: C# Codes | Views: 788 | Status: [Member] | Points: 40 | Alert Moderator   
Ads

Hi Friends,

If i want to use focus() with ajax it wont work with the code textbox1.focus(). but will work perfectly with out ajax. To resolve that , refer the below code

TO USE focu WITH AJAX

ScriptManager.GetCurrent(Page).SetFocus(textboxid);

ScriptManager.GetCurrent(this.Page).SetFocus(this.textboxid);

REFER :
http://www.linkedin.com/groupAnswers?viewQuestionAndAnswers=&discussionID=160309243&gid=85746&commentID=94160673&goback=%2Enmp_*1_*1_*1_*1_*1_*1_*1_*1_*1&trk=NUS_DISC_Q-subject#commentID_94160673

http://stackoverflow.com/questions/1307224/setfocus-to-asptextbox-within-asppanel-within-aspcontent-from-content-page-lo

it's working great.

Comments are welcome.
Thanks in advance.
Narendran .N
http://4naren.blogspot.in/
Found interesting? Add this to:


 Responses

T.Saravanan
Posted by: T.Saravanan | Posted on: 9/10/2012 | Level: Silver | Status: [Member] [MVP] | Points: 10 | Alert Moderator 

Hi,

Nice info but try to avoid to provide reference links in code section.

Thanks,
T.Saravanan

>> Write Response - Respond to this post and get points

More codes snippets

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 6/19/2013 5:30:48 AM