Click here to Skip to main content
15,891,136 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Procedure or function expects parameter that was not supplied why it arise and if arise how to resolve it Pin
Richard MacCutchan4-Jun-12 22:10
mveRichard MacCutchan4-Jun-12 22:10 
GeneralRe: Procedure or function expects parameter that was not supplied why it arise and if arise how to resolve it Pin
Venkat Yerra4-Jun-12 21:02
Venkat Yerra4-Jun-12 21:02 
AnswerRe: Procedure or function expects parameter that was not supplied why it arise and if arise how to resolve it Pin
jkirkerx4-Jun-12 11:48
professionaljkirkerx4-Jun-12 11:48 
GeneralRe: Procedure or function expects parameter that was not supplied why it arise and if arise how to resolve it Pin
ajitkmr094-Jun-12 20:54
ajitkmr094-Jun-12 20:54 
GeneralRe: Procedure or function expects parameter that was not supplied why it arise and if arise how to resolve it Pin
jkirkerx5-Jun-12 6:37
professionaljkirkerx5-Jun-12 6:37 
AnswerRe: Procedure or function expects parameter that was not supplied why it arise and if arise how to resolve it Pin
vvashishta4-Jun-12 22:10
vvashishta4-Jun-12 22:10 
QuestionValidation vs Business Rules (client side vs server side) Pin
Rahul Rajat Singh4-Jun-12 1:02
professionalRahul Rajat Singh4-Jun-12 1:02 
AnswerRe: Validation vs Business Rules (client side vs server side) Pin
jkirkerx4-Jun-12 7:59
professionaljkirkerx4-Jun-12 7:59 
Rahul Rajat Singh wrote:
Now, to me this doesn't sound right. why should be duplicate all the logic just for the sake of having better responsiveness?

Because your sitting in an office with the server located within a mile or Kilometer of your desk. You don't see the slow response and transmission times that a customer located several hundred miles away sees.

If you validate as many values as you can client side, the customer can fill out the form correctly, and make 1 postback to the server, resulting in a single successful transaction.

If you keep validating server side, it will result in several postbacks until the customer gets it rights, increasing unnecessary bandwidth by 400% or more.

Validating business rules client side gets a bit tricky, unless the business rules are simple and basic. In your javascript, you would need a way to fetch the rule via web service, or have all the rules prewritten, and make a switch to select the correct rule and run it.

[EDIT]

Rahul Rajat Singh wrote:
put them in hidden fields and then do all the business rule logic in javascript using these hidden field values on client side

For a minimum value, using a hidden textbox with the minimum value in it would be handy to validate against on the client side. For minimum values, we just change the initial qty to the minimum value, and change the qty range from 1 to 100 to 5 to 100.
Questionasp.net Pin
manoja medaramitla4-Jun-12 0:38
manoja medaramitla4-Jun-12 0:38 
AnswerRe: asp.net Pin
Rahul Rajat Singh4-Jun-12 1:02
professionalRahul Rajat Singh4-Jun-12 1:02 
AnswerRe: asp.net Pin
taha bahraminezhad Jooneghani4-Jun-12 9:52
taha bahraminezhad Jooneghani4-Jun-12 9:52 
AnswerRe: asp.net Pin
vvashishta4-Jun-12 22:13
vvashishta4-Jun-12 22:13 
Generalasp.net and c# Pin
sathik174-Jun-12 0:34
sathik174-Jun-12 0:34 
AnswerRe: asp.net and c# Pin
Rahul Rajat Singh4-Jun-12 1:04
professionalRahul Rajat Singh4-Jun-12 1:04 
GeneralRe: asp.net and c# Pin
Pankaj Nikam4-Jun-12 19:27
professionalPankaj Nikam4-Jun-12 19:27 
QuestionDisplay Excel File in .aspx Page Pin
paas1-Jun-12 4:53
paas1-Jun-12 4:53 
AnswerRe: Display Excel File in .aspx Page Pin
Ravi Sant3-Jun-12 18:29
Ravi Sant3-Jun-12 18:29 
QuestionShow MS Lync presence in aspx web page Pin
meetprabhum1-Jun-12 3:32
meetprabhum1-Jun-12 3:32 
QuestionASP.Net Logout issue Pin
berba1-Jun-12 2:47
berba1-Jun-12 2:47 
AnswerRe: ASP.Net Logout issue Pin
keyur satyadev2-Jun-12 1:10
keyur satyadev2-Jun-12 1:10 
AnswerRe: ASP.Net Logout issue Pin
taha bahraminezhad Jooneghani3-Jun-12 2:19
taha bahraminezhad Jooneghani3-Jun-12 2:19 
AnswerRe: ASP.Net Logout issue Pin
thatraja4-Jun-12 17:13
professionalthatraja4-Jun-12 17:13 
AnswerRe: ASP.Net Logout issue Pin
august_star4-Jun-12 21:28
august_star4-Jun-12 21:28 
Question2010 web form problem Pin
sc steinhayse31-May-12 11:22
sc steinhayse31-May-12 11:22 
AnswerRe: 2010 web form problem Pin
R. Giskard Reventlov31-May-12 15:20
R. Giskard Reventlov31-May-12 15:20 

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.