Click here to Skip to main content
15,884,472 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: news article page Pin
Joshua Omundson9-Jul-12 13:27
Joshua Omundson9-Jul-12 13:27 
AnswerRe: news article page Pin
zhxhdean11-Jul-12 19:28
zhxhdean11-Jul-12 19:28 
Generalasp.net Pin
rinku rlsual7-Jul-12 7:00
rinku rlsual7-Jul-12 7:00 
AnswerRe: asp.net Pin
Sandeep Mewara7-Jul-12 7:59
mveSandeep Mewara7-Jul-12 7:59 
AnswerRe: asp.net Pin
AmitGajjar10-Jul-12 22:40
professionalAmitGajjar10-Jul-12 22:40 
GeneralRe: asp.net Pin
zhxhdean11-Jul-12 19:31
zhxhdean11-Jul-12 19:31 
QuestionGroupvalidation in asp.net Pin
deeptul7-Jul-12 1:32
deeptul7-Jul-12 1:32 
AnswerRe: Groupvalidation in asp.net Pin
Sandeep Mewara7-Jul-12 8:15
mveSandeep Mewara7-Jul-12 8:15 
Just do something like:
ASP.NET
<tr>
  <td style="width: 100px"> First Name</td>
  <td style="width: 100px">
    <asp:TextBox ID="txtFirstName" runat="server" ValidationGroup="Name_Group"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFirstName" ErrorMessage="Enter First Name" ValidationGroup="Name_Group" Width="149px"></asp:RequiredFieldValidator>
  </td>
</tr>
<tr>
   <td style="width: 100px">Last Name</td>
   <td style="width: 100px">
     <asp:TextBox ID="txtLastName" runat="server" ValidationGroup="Name_group"></asp:TextBox>
     <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtLastName"  ErrorMessage="Enter Last Name" ValidationGroup="Name_Group"Width="152px"></asp:RequiredFieldValidator>
   </td>
</tr>
<tr>
  <td style="width: 100px"></td>
  <td style="width: 100px">
    <asp:Button ID="btnRegister" runat="server" Text="Register" ValidationGroup="Register_Group" />
  </td>
</tr>

ValidationGroup="Register_Group" takes care of your scenario.

Following illustrates on how you can group them:
Validation group in ASP.Net 2.0[^]
MSDN: Specifying Validation Groups[^]

GeneralRe: Groupvalidation in asp.net Pin
deeptul11-Jul-12 6:56
deeptul11-Jul-12 6:56 
AnswerRe: Groupvalidation in asp.net Pin
Sandeep Mewara11-Jul-12 7:18
mveSandeep Mewara11-Jul-12 7:18 
QuestionC# web app -not see variable values Pin
classy_dog6-Jul-12 21:19
classy_dog6-Jul-12 21:19 
AnswerRe: C# web app -not see variable values Pin
Sandeep Mewara7-Jul-12 8:05
mveSandeep Mewara7-Jul-12 8:05 
Questionasp.net file name problem Pin
rachel_m6-Jul-12 6:28
rachel_m6-Jul-12 6:28 
AnswerRe: asp.net file name problem Pin
Richard MacCutchan6-Jul-12 21:24
mveRichard MacCutchan6-Jul-12 21:24 
GeneralRe: asp.net file name problem Pin
rachel_m7-Jul-12 10:37
rachel_m7-Jul-12 10:37 
GeneralRe: asp.net file name problem Pin
Richard MacCutchan7-Jul-12 23:07
mveRichard MacCutchan7-Jul-12 23:07 
Generalweb app default connection string problem Pin
dcof6-Jul-12 4:47
dcof6-Jul-12 4:47 
QuestionNothing happens when create file with HTMLReportEngine Pin
Monetto6-Jul-12 4:25
Monetto6-Jul-12 4:25 
AnswerRe: Nothing happens when create file with HTMLReportEngine Pin
Sandeep Mewara7-Jul-12 8:36
mveSandeep Mewara7-Jul-12 8:36 
QuestionCaptcha Pin
Elham M6-Jul-12 1:58
Elham M6-Jul-12 1:58 
AnswerRe: Captcha Pin
Sandeep Mewara6-Jul-12 3:49
mveSandeep Mewara6-Jul-12 3:49 
GeneralRe: Captcha Pin
Elham M6-Jul-12 9:09
Elham M6-Jul-12 9:09 
GeneralRe: Captcha Pin
Sandeep Mewara6-Jul-12 22:55
mveSandeep Mewara6-Jul-12 22:55 
QuestionHow to Merge a particular column in gridview using asp.net ? Pin
sharmila rao6-Jul-12 1:35
sharmila rao6-Jul-12 1:35 
AnswerRe: How to Merge a particular column in gridview using asp.net ? Pin
Hum Dum6-Jul-12 1:54
Hum Dum6-Jul-12 1:54 

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.