Click here to Skip to main content
15,917,329 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionbring footer to bottom Pin
Jassim Rahma15-Aug-12 9:00
Jassim Rahma15-Aug-12 9:00 
QuestionASP.Net Routing by routes.MapPageRoute with routeURL and physicalFile is not available in route registration Pin
milad137715-Aug-12 7:14
milad137715-Aug-12 7:14 
AnswerRe: ASP.Net Routing by routes.MapPageRoute with routeURL and physicalFile is not available in route registration Pin
jkirkerx15-Aug-12 8:15
professionaljkirkerx15-Aug-12 8:15 
QuestionASP.Net 4 Routing with runtime routeURL and physicalFile Pin
milad137715-Aug-12 6:51
milad137715-Aug-12 6:51 
QuestionSending SMS through ASP.NET Pin
komalridda14-Aug-12 20:00
komalridda14-Aug-12 20:00 
AnswerRe: Sending SMS through ASP.NET Pin
StianSandberg14-Aug-12 21:05
StianSandberg14-Aug-12 21:05 
AnswerRe: Sending SMS through ASP.NET Pin
Richard MacCutchan14-Aug-12 21:10
mveRichard MacCutchan14-Aug-12 21:10 
GeneralRe: Sending SMS through ASP.NET Pin
RichardGrimmer5-Sep-12 4:36
RichardGrimmer5-Sep-12 4:36 
GeneralRe: Sending SMS through ASP.NET Pin
Richard MacCutchan5-Sep-12 5:18
mveRichard MacCutchan5-Sep-12 5:18 
AnswerRe: Sending SMS through ASP.NET Pin
Rahul Rajat Singh16-Aug-12 18:17
professionalRahul Rajat Singh16-Aug-12 18:17 
AnswerRe: Sending SMS through ASP.NET Pin
ashjassi17-Aug-12 2:41
ashjassi17-Aug-12 2:41 
Question2010 web service Pin
dcof14-Aug-12 14:39
dcof14-Aug-12 14:39 
QuestionUnable to run the website using IIS Pin
sravsailu13-Aug-12 23:28
sravsailu13-Aug-12 23:28 
AnswerRe: Unable to run the website using IIS Pin
jkirkerx14-Aug-12 7:45
professionaljkirkerx14-Aug-12 7:45 
QuestionJQGRID IN ASP.NET Pin
Roshith G13-Aug-12 19:29
Roshith G13-Aug-12 19:29 
QuestionCustom Validator of Combobox and Validation summary Pin
Neha Ojha13-Aug-12 7:28
Neha Ojha13-Aug-12 7:28 
The following is the code for combobox along with its custom validator

<asp:ComboBox ID="cmbBusinessOwner" runat="server" MaxLength="0" DropDownStyle="DropDownList"
AutoCompleteMode="SuggestAppend">
<asp:ListItem Text="--Select--" Value="0" />
<asp:ListItem Text="HDFC Co-op" Value="1" />
<asp:ListItem Text="Limited Dividend Co-op" Value="2" />
<asp:ListItem Text="Rent Controlled" Value="3" />
<asp:ListItem Text="Rent Stablized" Value="4" />
<asp:ListItem Text="India" Value="5" />
<asp:ListItem Text="United" Value="6" />
<asp:ListItem Text="America" Value="7" />
<asp:ListItem Text="Mexico" Value="8" />
</asp:ComboBox>
<asp:CustomValidator ID="cvRequired" runat="server" ValidationGroup="Continue" ForeColor="Red"
ClientValidationFunction="cvComboBox_Validate" Text="Select Business Owner" Display="Dynamic"></asp:CustomValidator>

the script for cvComboBox_Validate function is

function cvComboBox_Validate(source, args) {
var ComboBoxCtrl = $find('cmbBusinessOwner');
if (ComboBoxCtrl.get_textBoxControl().value == "--Select--")
args.IsValid = false;
else
args.IsValid = true;
}

This code gives me the error message "Select Business Owner" next to the control on button click. But the message "Select Business Owner" fails to appear in validation summary.

My validation summary is as follows
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="false" EnableClientScript="true"
CssClass="validationsummary" ValidationGroup="Continue" DisplayMode="BulletList"
HeaderText="<div class='validationheader'>&nbsp;Please correct the following errors:</div>" />

Rest all the control on the page works fine except for this combobox.

Help will be greatly appreciated.

Thanks
AnswerRe: Custom Validator of Combobox and Validation summary Pin
jkirkerx14-Aug-12 7:59
professionaljkirkerx14-Aug-12 7:59 
GeneralRe: Custom Validator of Combobox and Validation summary Pin
Neha Ojha15-Aug-12 5:09
Neha Ojha15-Aug-12 5:09 
GeneralRe: Custom Validator of Combobox and Validation summary Pin
jkirkerx15-Aug-12 7:41
professionaljkirkerx15-Aug-12 7:41 
GeneralRe: Custom Validator of Combobox and Validation summary Pin
Neha Ojha15-Aug-12 8:11
Neha Ojha15-Aug-12 8:11 
GeneralRe: Custom Validator of Combobox and Validation summary Pin
jkirkerx15-Aug-12 10:54
professionaljkirkerx15-Aug-12 10:54 
GeneralRe: Custom Validator of Combobox and Validation summary Pin
Neha Ojha21-Aug-12 4:06
Neha Ojha21-Aug-12 4:06 
GeneralRe: Custom Validator of Combobox and Validation summary Pin
jkirkerx21-Aug-12 10:27
professionaljkirkerx21-Aug-12 10:27 
QuestionASP.net Error [Solved] Pin
jojoba201113-Aug-12 3:24
jojoba201113-Aug-12 3:24 
AnswerRe: ASP.net Error [SOLVED] Pin
jojoba201113-Aug-12 18:35
jojoba201113-Aug-12 18:35 

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.