Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with wmi and exchange Pin
Dave Kreskowiak30-May-12 5:19
mveDave Kreskowiak30-May-12 5:19 
GeneralRe: Problem with wmi and exchange Pin
turbosupramk330-May-12 5:38
turbosupramk330-May-12 5:38 
GeneralRe: Problem with wmi and exchange Pin
Dave Kreskowiak30-May-12 7:05
mveDave Kreskowiak30-May-12 7:05 
GeneralRe: Problem with wmi and exchange Pin
turbosupramk330-May-12 7:40
turbosupramk330-May-12 7:40 
GeneralRe: Problem with wmi and exchange Pin
turbosupramk330-May-12 9:28
turbosupramk330-May-12 9:28 
GeneralRe: Problem with wmi and exchange Pin
turbosupramk330-May-12 11:51
turbosupramk330-May-12 11:51 
GeneralRe: Problem with wmi and exchange Pin
Dave Kreskowiak30-May-12 15:28
mveDave Kreskowiak30-May-12 15:28 
Questionvalidation summary is showing before the submit button click Pin
Dhyanga29-May-12 9:47
Dhyanga29-May-12 9:47 
Hi,

I am having problem with the validation summary. I have radiobuttons where I kept requiredFieldValidation and all these are inside the gridview like shown below:

<asp:panel id="pnlEval" runat="server" enabled="false">

* Denotes required entry
<asp:validationsummary id="ValidationSummary" runat="server" forecolor="" headertext="<p class="valSummaryHeader">Please correct the following:</p>">

     <div class="questionHeader">
         <asp:label id="lblQHeader" runat="server" text="Questions" cssclass="question"> 
         <asp:label id="lblAns1" runat="server" cssclass="answer">    
         <asp:label id="lblAns2" runat="server" cssclass="answer"> 
         <asp:label id="lblAns3" runat="server" cssclass="answer"> 
         <asp:label id="lblAns4" runat="server" cssclass="answer"> 
         <asp:label id="lblAns5" runat="server" cssclass="answer">          
      </div>
     <div class="questionDetails">
        <asp:label id="lblQues1" runat="server" cssclass="question">   
          <asp:requiredfieldvalidator id="rfvQuest1" runat="server" controltovalidate="radAns1" 
="" errormessage="All the questions must be answered" cssclass="valError" display="Static" forecolor="">!     
        <asp:radiobuttonlist id="radAns1" repeatdirection="Horizontal" runat="server" cssclass="answerGroup">
            <asp:listitem value="1" text="">
            <asp:listitem value="2" text="">
            <asp:listitem value="3" text="">
            <asp:listitem value="4" text="">
            <asp:listitem value="5" text="">
         
       
     </div>
     <div class="questionDetails">
       <asp:label id="lblQues2" runat="server" cssclass="question"> 
              <asp:requiredfieldvalidator id="rfvQuest2" runat="server" controltovalidate="radAns2" 
="" errormessage="All the questions must be answered" cssclass="valError" display="Dynamic" forecolor="">!   
       <asp:radiobuttonlist id="radAns2" repeatdirection="Horizontal" runat="server" cssclass="answerGroup">
           <asp:listitem value="1" text="">
           <asp:listitem value="2" text="">
           <asp:listitem value="3" text="">
           <asp:listitem value="4" text="">
           <asp:listitem value="5" text="">                  
        

     </div>
     <div>
         <asp:label id="lblQues3" runat="server" cssclass="question">
           <asp:requiredfieldvalidator id="rfvQuest3" runat="server" controltovalidate="radAns3" 
="" errormessage="All the questions must be answered" cssclass="valError" display="Dynamic" forecolor="">!  
         <asp:radiobuttonlist id="radAns3" repeatdirection="Horizontal" runat="server" cssclass="answerGroup">
             <asp:listitem value="1" text="">
             <asp:listitem value="2" text="">
             <asp:listitem value="3" text="">
             <asp:listitem value="4" text="">
             <asp:listitem value="5" text="">
          
        
     </div>
     <div>
     <asp:label id="lblQues4" runat="server" cssclass="question">
      <asp:requiredfieldvalidator id="rfvQuest4" runat="server" controltovalidate="radAns4" 
="" errormessage="All the questions must be answered" cssclass="valError" display="Dynamic" forecolor="">! 
     <asp:radiobuttonlist id="radAns4" repeatdirection="Horizontal" runat="server" cssclass="answerGroup">
         <asp:listitem value="1" text="">
         <asp:listitem value="2" text="">
         <asp:listitem value="3" text="">
         <asp:listitem value="4" text="">
         <asp:listitem value="5" text="">
      
    
     </div>
     <div>
     <asp:label id="lblQues5" runat="server" cssclass="question">
      <asp:requiredfieldvalidator id="rfvQuest5" runat="server" controltovalidate="radAns5" 
="" errormessage="All the questions must be answered" cssclass="valError" display="Dynamic" forecolor="">! 
     <asp:radiobuttonlist id="radAns5" repeatdirection="Horizontal" runat="server" cssclass="answerGroup">
         <asp:listitem value="1" text="">
         <asp:listitem value="2" text="">
         <asp:listitem value="3" text="">
         <asp:listitem value="4" text="">
         <asp:listitem value="5" text="">
      
    
     </div>
     <div>
     <asp:label id="lblQues6" runat="server" cssclass="question">
      <asp:requiredfieldvalidator id="rfvQuest6" runat="server" controltovalidate="radAns6" 
="" errormessage="All the questions must be answered" cssclass="valError" display="Dynamic" forecolor="">! 
     <asp:radiobuttonlist id="radAns6" repeatdirection="Horizontal" runat="server" cssclass="answerGroup">
         <asp:listitem value="1" text="">
         <asp:listitem value="2" text="">
         <asp:listitem value="3" text="">
         <asp:listitem value="4" text="">
         <asp:listitem value="5" text="">
     
</div>

<asp:button id="btnSubmit" runat="server" text="Submit" onclick="btnSubmit_Click">



And now when i run the program, even before i click the submit button, the validation summary is showing. I want this summary to show only after I click the submit button and if there is any radio button unchecked.

Can anyone tell me where I have done mistake?
<div class="signature">suchita</div>

AnswerRe: validation summary is showing before the submit button click Pin
enhzflep30-May-12 6:53
enhzflep30-May-12 6:53 
QuestionHow do you add a second icon to a gui toolbar? Pin
turbosupramk329-May-12 4:43
turbosupramk329-May-12 4:43 
AnswerRe: How do you add a second icon to a gui toolbar? Pin
Ravi Bhavnani29-May-12 5:53
professionalRavi Bhavnani29-May-12 5:53 
GeneralRe: How do you add a second icon to a gui toolbar? Pin
turbosupramk329-May-12 9:34
turbosupramk329-May-12 9:34 
GeneralRe: How do you add a second icon to a gui toolbar? Pin
bishnoiparmod29-May-12 21:00
bishnoiparmod29-May-12 21:00 
AnswerRe: How do you add a second icon to a gui toolbar? Pin
Eddy Vluggen29-May-12 8:57
professionalEddy Vluggen29-May-12 8:57 
GeneralRe: How do you add a second icon to a gui toolbar? Pin
turbosupramk329-May-12 9:34
turbosupramk329-May-12 9:34 
GeneralRe: How do you add a second icon to a gui toolbar? Pin
Eddy Vluggen29-May-12 9:50
professionalEddy Vluggen29-May-12 9:50 
AnswerRe: How do you add a second icon to a gui toolbar? Pin
BobJanova29-May-12 23:09
BobJanova29-May-12 23:09 
QuestionChange password in System.Data.Sqlite Pin
amrok2amrokk29-May-12 2:49
amrok2amrokk29-May-12 2:49 
AnswerRe: Change password in System.Data.Sqlite Pin
Pete O'Hanlon29-May-12 3:14
mvePete O'Hanlon29-May-12 3:14 
GeneralRe: Change password in System.Data.Sqlite Pin
amrok2amrokk29-May-12 3:32
amrok2amrokk29-May-12 3:32 
GeneralRe: Change password in System.Data.Sqlite Pin
amrok2amrokk29-May-12 4:46
amrok2amrokk29-May-12 4:46 
GeneralRe: Change password in System.Data.Sqlite Pin
amrok2amrokk29-May-12 7:04
amrok2amrokk29-May-12 7:04 
QuestionNot all code paths return a value Pin
sheringkapoting29-May-12 0:40
sheringkapoting29-May-12 0:40 
AnswerRe: Not all code paths return a value Pin
Can SARIGÜL29-May-12 0:43
Can SARIGÜL29-May-12 0:43 
GeneralRe: Not all code paths return a value Pin
sheringkapoting29-May-12 0:51
sheringkapoting29-May-12 0:51 

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.