Click here to Skip to main content
15,906,626 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: What's new in ASP.NET? Pin
koolprasad200314-Jul-16 18:25
professionalkoolprasad200314-Jul-16 18:25 
AnswerRe: What's new in ASP.NET? Pin
John C Rayan18-Jul-16 2:05
professionalJohn C Rayan18-Jul-16 2:05 
AnswerRe: What's new in ASP.NET? Pin
petter201231-Aug-16 14:12
petter201231-Aug-16 14:12 
Questionwhat datasource control to use on a web from 2010 Pin
dcof12-Jul-16 11:58
dcof12-Jul-16 11:58 
AnswerRe: what datasource control to use on a web from 2010 Pin
petter201231-Aug-16 14:22
petter201231-Aug-16 14:22 
QuestionNeed help Regarding ADFS SSO implementation in Asp .net via SAML 2.0 Pin
Member 1263115512-Jul-16 4:09
Member 1263115512-Jul-16 4:09 
AnswerRe: Need help Regarding ADFS SSO implementation in Asp .net via SAML 2.0 Pin
Richard MacCutchan12-Jul-16 5:29
mveRichard MacCutchan12-Jul-16 5:29 
QuestionI need to add a Add New Button to the right of the heading. Pin
JBHowl12-Jul-16 3:18
JBHowl12-Jul-16 3:18 
AnswerRe: I need to add a Add New Button to the right of the heading. Pin
jkirkerx15-Jul-16 11:31
professionaljkirkerx15-Jul-16 11:31 
QuestionMVC 4 into ASP.net core conversion difficulties Pin
Member 1058746111-Jul-16 22:57
Member 1058746111-Jul-16 22:57 
AnswerRe: MVC 4 into ASP.net core conversion difficulties Pin
jkirkerx15-Jul-16 11:22
professionaljkirkerx15-Jul-16 11:22 
QuestionMSChart text annotation asp.net 4.5 Pin
BobbyStrain5-Jul-16 6:01
BobbyStrain5-Jul-16 6:01 
AnswerRe: MSChart text annotation asp.net 4.5 Pin
koolprasad20035-Jul-16 18:20
professionalkoolprasad20035-Jul-16 18:20 
Questionentity framwork one-to-many relation Pin
a1_shay5-Jul-16 4:37
a1_shay5-Jul-16 4:37 
AnswerRe: entity framwork one-to-many relation Pin
John C Rayan6-Jul-16 2:28
professionalJohn C Rayan6-Jul-16 2:28 
AnswerRe: entity framwork one-to-many relation Pin
Nathan Minier13-Jul-16 1:48
professionalNathan Minier13-Jul-16 1:48 
QuestionAutomating a website using Asp.net Pin
srikrishnathanthri3-Jul-16 23:56
srikrishnathanthri3-Jul-16 23:56 
AnswerRe: Automating a website using Asp.net Pin
Member 1039877314-Jul-16 21:40
Member 1039877314-Jul-16 21:40 
QuestionWeb api insert failed but code seems fine Pin
DotNetFellow1-Jul-16 19:14
DotNetFellow1-Jul-16 19:14 
QuestionRadiobuttonlist choice disables requiredfieldvalidator in textboxes and other radiobuttonlist Pin
Codeaddict742330-Jun-16 9:25
Codeaddict742330-Jun-16 9:25 
QuestionRe: Radiobuttonlist choice disables requiredfieldvalidator in textboxes and other radiobuttonlist Pin
ZurdoDev30-Jun-16 10:28
professionalZurdoDev30-Jun-16 10:28 
AnswerRe: Radiobuttonlist choice disables requiredfieldvalidator in textboxes and other radiobuttonlist Pin
Codeaddict742330-Jun-16 10:35
Codeaddict742330-Jun-16 10:35 
Hello,

Thanks for the quick reply.
I am trying to have three textboxes and one radiobuttonlist have its requiredfieldvalidators disabled based on a previous radiobuttonlist.

My code behind is as follows:
------------
C#
protected void rbCurrentlyEmployed_SelectedIndexChanged(object sender, EventArgs e)

           {

           if (rbCurrentlyEmployed.SelectedValue == "No" || rbCurrentlyEmployed.SelectedValue == "Retired" )

               ((RequiredFieldValidator)txtEmployer.FindControl("RFV_Employment_Employer")).Enabled = false;
               ((RequiredFieldValidator)txtJobTitle.FindControl("RFV_Employment_JobTitle")).Enabled = false;
               ((RequiredFieldValidator)txtWorkPhone.FindControl("RFV_Employment_WorkPhone")).Enabled = false;
               ((RequiredFieldValidator)rbgrantsmatchingfunds.FindControl("RFV_Employment_MatchingFunds")).Enabled = false;

           else

           {
               ((RequiredFieldValidator)txtEmployer.FindControl("RFV_Employment_Employer")).Enabled = true;
               ((RequiredFieldValidator)txtJobTitle.FindControl("RFV_Employment_JobTitle")).Enabled = true;
               ((RequiredFieldValidator)txtWorkPhone.FindControl("RFV_Employment_WorkPhone")).Enabled = true;
               ((RequiredFieldValidator)rbgrantsmatchingfunds.FindControl("RFV_Employment_MatchingFunds")).Enabled = true;

           }
       }

-----------------

I seem to be getting an error in the syntax of the 'else' statement.

ANY help would be greatly appreciated
GeneralRe: Radiobuttonlist choice disables requiredfieldvalidator in textboxes and other radiobuttonlist Pin
Richard Deeming30-Jun-16 10:52
mveRichard Deeming30-Jun-16 10:52 
GeneralRe: Radiobuttonlist choice disables requiredfieldvalidator in textboxes and other radiobuttonlist Pin
Codeaddict742330-Jun-16 11:16
Codeaddict742330-Jun-16 11:16 
GeneralRe: Radiobuttonlist choice disables requiredfieldvalidator in textboxes and other radiobuttonlist Pin
Richard MacCutchan30-Jun-16 22:26
mveRichard MacCutchan30-Jun-16 22:26 

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.