Click here to Skip to main content
11,711,887 members (50,975 online)
   

ASP.NET

 
GeneralRe: Need Suggestion Pin
amarnath n.n27-Aug-09 13:21
memberamarnath n.n27-Aug-09 13:21 
GeneralRe: Need Suggestion Pin
N a v a n e e t h27-Aug-09 19:52
mvpN a v a n e e t h27-Aug-09 19:52 
QuestionRetaining focus after postback Pin
rcampbell1227-Aug-09 6:04
memberrcampbell1227-Aug-09 6:04 
AnswerRe: Retaining focus after postback Pin
Jeremy Likness27-Aug-09 6:17
memberJeremy Likness27-Aug-09 6:17 
Why are you validating on the server when the user tabs out? I'd keep the "light" validation on the client side with JavaScript and save the postbacks for submitting the form. Then you can set the focus to the field that has errors, or move them on.

That validation you are mentioning should definitely be clientside. Is the developer rolling their own code, or using something supplied by the framework like a RequiredFieldValidator that can be set to dynamic and will run on the clientside without a postback?

If there is some compelling reason why you would roundtrip every time a user leaves a field (which seems to make sense only for a small internal app without many concurrent users, otherwise it won't scale well) then I'd look at using a callback instead of a postback for the validation. They are not complicated to wire in and infinitely improve the user experience while cutting down on the size of network traffic (have you used Fiddler or something similar to see how much data, like ViewState, gets thrown around when you postback?)


GeneralRe: Retaining focus after postback Pin
rcampbell1227-Aug-09 6:33
memberrcampbell1227-Aug-09 6:33 
GeneralClient side validation is the way to go - Example given Pin
David Mujica27-Aug-09 7:43
memberDavid Mujica27-Aug-09 7:43 
Questionupload and download Pin
hasani200727-Aug-09 5:15
memberhasani200727-Aug-09 5:15 
AnswerRe: upload and download Pin
Abhishek Sur27-Aug-09 5:33
memberAbhishek Sur27-Aug-09 5:33 
AnswerRe: upload and download Pin
Abhijit Jana27-Aug-09 9:20
mvpAbhijit Jana27-Aug-09 9:20 
GeneralRe: upload and download Pin
zzulipan27-Aug-09 14:26
memberzzulipan27-Aug-09 14:26 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.150819.1 | Last Updated 1 Sep 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid