Click here to Skip to main content
15,919,613 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Web.config with variable or key inside Pin
Karthik. A9-Jul-12 9:48
Karthik. A9-Jul-12 9:48 
Questionasp.net error A first chance exception of type Pin
dcof7-Jul-12 19:26
dcof7-Jul-12 19:26 
Questionasp.net debug error message Pin
dcof7-Jul-12 19:25
dcof7-Jul-12 19:25 
AnswerRe: asp.net debug error message Pin
Sandeep Mewara7-Jul-12 21:12
mveSandeep Mewara7-Jul-12 21:12 
GeneralRe: asp.net debug error message Pin
dcof8-Jul-12 6:15
dcof8-Jul-12 6:15 
GeneralRe: asp.net debug error message Pin
Sandeep Mewara11-Jul-12 1:55
mveSandeep Mewara11-Jul-12 1:55 
Questionnews article page Pin
Jassim Rahma7-Jul-12 10:44
Jassim Rahma7-Jul-12 10:44 
AnswerRe: news article page Pin
Sandeep Mewara8-Jul-12 4:18
mveSandeep Mewara8-Jul-12 4:18 
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 

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.