ASP .net bug when changing stae of radio button..?

C

Carlos

Hi all,

I just came across the following situation. I have three radio buttons
within the same group name, next to each of them I do have a
textbox (total 3 radiobuttons, 3 textboxes). I start with one
Textbox with its ReadOnly property to be true next to the defaulted
radiobutton that is checked. Then, I define that my event handler
for the CheckedChange event should define the ReadOnly property false
next to the radiobutton that I just checked. That is switching from True to
False. The change does not take place. After re-compiling the whole solution
and refreshing the page, the status of the Textbos remains the same after
I change the status of the RadioButton. Here it is what I have.
Is there anything wrong?

private void InitializeComponent()

{

this.rbNAcontactYT.CheckedChanged += new
System.EventHandler(this.rbNAcontactYT_CheckedChanged);

..

..

}



private void rbNAcontactYT_CheckedChanged(object sender, System.EventArgs e)

{

NATelephone.ReadOnly = false;

NAEmail.Text = "";

}



Thanks,



Carlos.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top