Click here to Skip to main content
15,889,096 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
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 
Well, if the page is actually posted back, you might consider adding a script block using RegisterScriptBlock to the client page to have the proper textbox focus.

It is not usually great to do focus in server side in case of ASP.NET.

use txtBox.ClientId to get the id on the control to be focus.

But If I was in your situation, I would have invoked an AJAX call to the server, and get if it is available or not. It is really unnecessary to fully postback the page for this.
Wink | ;)

Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->

Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript

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 
AnswerRe: Membership Roles Pin
sashidhar20-Nov-09 0:45
sashidhar20-Nov-09 0:45 
QuestionCompatibility View in IE8 Pin
Richa_Soni19-Nov-09 23:42
Richa_Soni19-Nov-09 23:42 
AnswerRe: Compatibility View in IE8 Pin
Abhijit Jana19-Nov-09 23:57
professionalAbhijit Jana19-Nov-09 23:57 

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.