Click here to Skip to main content
15,896,153 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: The connection was closed unexpectedly Pin
oujeboland29-Oct-11 20:26
oujeboland29-Oct-11 20:26 
QuestionLogin Management Pin
shashiankam27-Oct-11 20:14
shashiankam27-Oct-11 20:14 
AnswerRe: Login Management Pin
Richard MacCutchan27-Oct-11 21:50
mveRichard MacCutchan27-Oct-11 21:50 
GeneralRe: Login Management Pin
shashiankam29-Oct-11 1:19
shashiankam29-Oct-11 1:19 
AnswerRe: Login Management Pin
jkirkerx28-Oct-11 18:48
professionaljkirkerx28-Oct-11 18:48 
Questionvalidate list control 2010 Pin
classy_dog27-Oct-11 12:14
classy_dog27-Oct-11 12:14 
AnswerRe: validate list control 2010 Pin
phil.o27-Oct-11 22:57
professionalphil.o27-Oct-11 22:57 
AnswerRe: validate list control 2010 Pin
jkirkerx28-Oct-11 19:09
professionaljkirkerx28-Oct-11 19:09 
In my Opinion;

The validator you want to use is just javascript, and is very unreliable. They only work on text, but you can make them work on Dropdowns, but on dropdowns, you have to add a blank item, with a value of "--", to indicate that the user did not select anything. Those validators are a waste of time, in production applications, they will haunt you at night.

You have to decide if you want to validate on the server side or client side.

on the server side, which requires a round trip to the server, and consumes bandwidth,

int returnValue = cbDecide.SelectedValue;

if the interger is 0, then nothing was selected.

in JQuery on the client side, it pretty much the same. Remember that DropDown's, Radio Button Groups, Checkbox groups pretty much work the same. They all have a selected value.

So make sure the dom is loaded first, and then execute your script.

$(document).ready(function () {

var validationFlag = true;
var decide_Value;
decide_Value = $('[id*="_cb_Decide_Field"]').val();
if (decide_Value == "") {
validationFlag = true;
}
}
QuestionIssues with Partial Postback / AJAX / Update Panel Pin
jscheponik27-Oct-11 4:42
jscheponik27-Oct-11 4:42 
Questionweb value Pin
sc steinhayse27-Oct-11 3:53
sc steinhayse27-Oct-11 3:53 
AnswerRe: web value Pin
Dennis E White27-Oct-11 4:31
professionalDennis E White27-Oct-11 4:31 
AnswerRe: web value Pin
Abhinav S27-Oct-11 4:32
Abhinav S27-Oct-11 4:32 
AnswerRe: web value Pin
Not Active27-Oct-11 5:23
mentorNot Active27-Oct-11 5:23 
AnswerRe: web value Pin
jkirkerx28-Oct-11 19:40
professionaljkirkerx28-Oct-11 19:40 
QuestionNone Object Oriented Control Pin
Ali Al Omairi(Abu AlHassan)26-Oct-11 20:55
professionalAli Al Omairi(Abu AlHassan)26-Oct-11 20:55 
AnswerRe: None Object Oriented Control Pin
Not Active27-Oct-11 2:43
mentorNot Active27-Oct-11 2:43 
GeneralRe: None Object Oriented Control Pin
Ali Al Omairi(Abu AlHassan)27-Oct-11 4:53
professionalAli Al Omairi(Abu AlHassan)27-Oct-11 4:53 
GeneralRe: None Object Oriented Control Pin
Not Active27-Oct-11 5:28
mentorNot Active27-Oct-11 5:28 
GeneralRe: None Object Oriented Control Pin
Ali Al Omairi(Abu AlHassan)27-Oct-11 7:43
professionalAli Al Omairi(Abu AlHassan)27-Oct-11 7:43 
GeneralRe: None Object Oriented Control Pin
Not Active27-Oct-11 7:46
mentorNot Active27-Oct-11 7:46 
GeneralRe: None Object Oriented Control Pin
Ali Al Omairi(Abu AlHassan)29-Oct-11 14:19
professionalAli Al Omairi(Abu AlHassan)29-Oct-11 14:19 
AnswerRe: None Object Oriented Control Pin
jkirkerx28-Oct-11 19:53
professionaljkirkerx28-Oct-11 19:53 
QuestionHow to read server registry from client (or host)? Pin
WomblingFree25-Oct-11 13:15
WomblingFree25-Oct-11 13:15 
AnswerRe: How to read server registry from client (or host)? Pin
Bernhard Hiller25-Oct-11 20:15
Bernhard Hiller25-Oct-11 20:15 
GeneralRe: How to read server registry from client (or host)? Pin
WomblingFree26-Oct-11 9:37
WomblingFree26-Oct-11 9:37 

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.