Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my code:
XML
<label class="head">Mobile number<span class="mandatory">*</span> </label>
                 <div class="inputFieldBox vf-full-width">
                    <asp:TextBox ID="mobilenumber" required="required" ValidationGroup="hai" class="textss" MaxLength="10"  AutoComplete="off" runat="server"  ></asp:TextBox>
                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="mobilenumber" ValidChars="0123456789"/>
                 </div>

XML
<div class="btns">
               <asp:Button ID="Button1" class="Button1" runat="server" Text="Submit"
                   onclick="Button1_Click" ValidationGroup="hai"  CausesValidation="False" ></asp:Button>

            </div>


and at last in scroll i have another tsk to update


XML
<label for="name">Name:</label><span class="mandatory">*</span>
           <asp:TextBox ID="name" class="w-input" runat="server"  placeholder="Enter your name" ></asp:TextBox>
           <label for="number">Mobile Number:</label><span class="mandatory">*</span>
           &nbsp;<asp:TextBox ID="number" class="w-input" runat="server"  placeholder="Enter your mobile number"></asp:TextBox>
         <label for="email">Email Address:</label><span class="mandatory">*</span>
           <asp:TextBox ID="emailg" class="w-input" runat="server" placeholder="Enter your email address" ></asp:TextBox>
            <label for="oldpass" class="youpasswd" >Your password </label><span class="mandatory">*</span>
            <asp:TextBox ID="pass" class="w-input"  runat="server"   TextMode="Password" placeholder="eg. X8df!90EO"></asp:TextBox>
            <label for="passconfirm" class="youpasswd" >Please confirm your password </label><span class="mandatory">*</span>
            <asp:textBox ID="cpass" class="w-input" runat="server" Textmode="password" placeholder="eg. X8df!90EO"></asp:TextBox>
            <asp:Button ID="submitss" class=".Button" Text="Update" runat="server"
                CausesValidation="False" onclick="submitss_Click"  />



if i click update button it ask required field for Textbox id ="mobilenumber".update operations not able to perform without fill that .Kindly help to clear that..
Posted
Comments
anandvijay1940 19-Sep-15 1:44am    
yeah thnq u it works..
[no name] 19-Sep-15 1:47am    
Please accept answer as accepted..
Arasappan 19-Sep-15 3:54am    
Use required field Validator in Ajax....

1 solution

SQL
Add ValidationGroup property that may help you:

<asp:Button ID="submitss" class=".Button" Text="Update" runat="server"
CausesValidation="False" ValidationGroup="NoValidaite" onclick="submitss_Click" />
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900