Click here to Skip to main content
15,888,803 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Dialog Closed event in ASP.NET Pin
ljuchem20-Nov-09 6:22
ljuchem20-Nov-09 6:22 
QuestionHow to Add Google Ads in asp.net site Pin
angle5720-Nov-09 5:24
angle5720-Nov-09 5:24 
AnswerRe: How to Add Google Ads in asp.net site Pin
Abhijit Jana20-Nov-09 6:02
professionalAbhijit Jana20-Nov-09 6:02 
Questionuser controls Pin
samir8020-Nov-09 5:10
samir8020-Nov-09 5:10 
AnswerRe: user controls Pin
samir8020-Nov-09 5:10
samir8020-Nov-09 5:10 
AnswerRe: user controls Pin
Abhijit Jana20-Nov-09 6:11
professionalAbhijit Jana20-Nov-09 6:11 
GeneralRe: user controls Pin
samir8020-Nov-09 6:27
samir8020-Nov-09 6:27 
QuestionSetting the focus on control jumps page to the top Pin
Jay Royall20-Nov-09 4:17
Jay Royall20-Nov-09 4:17 
Hi,

My senario: I have a sign-up form which, amoungst others, has a username textbox. The username textbox has autopostback set to true which, when posted back, checks to see if the entered username already exists in the DB and displays a message if so.

This works fine. But the problem I have is that in the code behind I am setting the focus to a control after doing the username check ( using txtUsername.Focus() ). But doing this causes the page to jump back to the top. This doesn't happen if I don't give a control the focus.

Any ideas how I can solve this?

A little more info about my form just in case it's relevant. The form is in an AJAX Accodion control which is in an AJAX Update Panel.

Thanks Smile | :)
AnswerRe: Setting the focus on control jumps page to the top Pin
Abhishek Sur20-Nov-09 4:22
professionalAbhishek Sur20-Nov-09 4:22 
GeneralRe: Setting the focus on control jumps page to the top Pin
Jay Royall20-Nov-09 4:27
Jay Royall20-Nov-09 4:27 
GeneralRe: Setting the focus on control jumps page to the top Pin
Abhishek Sur20-Nov-09 4:47
professionalAbhishek Sur20-Nov-09 4:47 
GeneralRe: Setting the focus on control jumps page to the top Pin
Jay Royall20-Nov-09 5:33
Jay Royall20-Nov-09 5:33 
QuestionStatic page height! How do I resize it dynamically? Pin
tunsten20-Nov-09 4:08
tunsten20-Nov-09 4:08 
AnswerRe: Static page height! How do I resize it dynamically? Pin
Abhishek Sur20-Nov-09 4:19
professionalAbhishek Sur20-Nov-09 4:19 
GeneralRe: Static page height! How do I resize it dynamically? Pin
tunsten20-Nov-09 4:43
tunsten20-Nov-09 4:43 
QuestionProblem with SmtpClient - IsHtmlBody? Pin
tunsten20-Nov-09 3:54
tunsten20-Nov-09 3:54 
AnswerRe: Problem with SmtpClient - IsHtmlBody? Pin
Abhishek Sur20-Nov-09 4:08
professionalAbhishek Sur20-Nov-09 4:08 
GeneralRe: Problem with SmtpClient - IsHtmlBody? Pin
tunsten20-Nov-09 4:44
tunsten20-Nov-09 4:44 
QuestionFireFox Issue!! [modified] Pin
Sr...Frank20-Nov-09 2:49
Sr...Frank20-Nov-09 2:49 
AnswerRe: FireFox Issue!! Pin
J a a n s20-Nov-09 3:44
professionalJ a a n s20-Nov-09 3:44 
AnswerRe: FireFox Issue!! Pin
Abhishek Sur20-Nov-09 4:13
professionalAbhishek Sur20-Nov-09 4:13 
QuestionGridview inside Gridview items to be inserted into DB Table Pin
Rameez Raja20-Nov-09 0:21
Rameez Raja20-Nov-09 0:21 
AnswerRe: Gridview inside Gridview items to be inserted into DB Table Pin
Abhishek Sur20-Nov-09 1:13
professionalAbhishek Sur20-Nov-09 1:13 
QuestionMembership Roles Pin
KhandelwalA20-Nov-09 0:10
KhandelwalA20-Nov-09 0:10 
AnswerRe: Membership Roles Pin
Abhijit Jana20-Nov-09 0:25
professionalAbhijit Jana20-Nov-09 0:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.