Click here to Skip to main content
15,914,071 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPass values in nested gridview Pin
shrihit17-Sep-07 10:27
shrihit17-Sep-07 10:27 
AnswerRe: Pass values in nested gridview Pin
ChrisKo17-Sep-07 10:58
ChrisKo17-Sep-07 10:58 
Questiongridview/datatable with grouped data Pin
sanjay_tutu17-Sep-07 8:09
sanjay_tutu17-Sep-07 8:09 
AnswerRe: gridview/datatable with grouped data Pin
ChrisKo17-Sep-07 10:56
ChrisKo17-Sep-07 10:56 
QuestionMembership.GetUser() fails in Modal dialog Pin
snir_ya17-Sep-07 7:13
snir_ya17-Sep-07 7:13 
AnswerRe: Membership.GetUser() fails in Modal dialog Pin
Saksida Bojan17-Sep-07 11:21
Saksida Bojan17-Sep-07 11:21 
GeneralRe: Membership.GetUser() fails in Modal dialog Pin
VenkataRamana.Gali17-Sep-07 19:56
VenkataRamana.Gali17-Sep-07 19:56 
QuestionUnable to re-enable a radio button if disabled server-side Pin
WSonck17-Sep-07 6:55
WSonck17-Sep-07 6:55 
Hello,

I'm having some problems to enable radiobutton in ie7 by javascript. I was googling all day, but I only found one post with the same problem I have. I paste it here to explain what my problem is:

Hi All,

I've come across the problem of not being able to re-enable a radio
button with javascript if its initial state has been disabled in the
Page_Load() method of the code behind.

Might i add that it behaves fine in Firefox, but IE is unable to
re-enable the radio button. IE is fine if the radio button starts in an
enabled state.

Version of IE i'm using is 6, and i have also tried with IE7 and got
the same result.

Is this a bug specific to IE ?


This post has only one answer, which is:


Hi There


function enable()
{
var controls = document.getElementsByTagName("input");
NumElements = controls.length;

for (i=0;i<NumElements;i++)
{
if(controls[i].name=="rdEnable")
{
controls[i].setAttribute("disabled" , false);
ParentSpanControl = controls[i].parentElement;
ParentSpanControl.setAttribute("disabled" , false); break;
}
}

return false;
}


Explanation:
============
A DotNet Radio Button Control will result in creation of the following
three controls

1.Span Control
2.Input Type=Radio
3.Label



So using javascript , do identify all the controls that radio button is
rendered to and set their disabled propery to false;

Please find the above code which does the same


I tried to enable by javascript the input (this works in Firefox, Opera and Netscape, but not in IE), the span, and the label, but I have not get the solution. Here I put the code I try with:

function habilitarPr2IDI(){<br />
<br />
var controls = document.getElementsByTagName("input");<br />
NumElements = controls.length;<br />
<br />
for (i=0;i<NumElements;i++)<br />
{<br />
if(controls[i].name=="InputName")<br />
{<br />
controls[i].disabled = false;<br />
ParentSpanControl = controls[i].parentNode;<br />
label = ParentSpanControl.lastChild;<br />
ParentSpanControl.disabled = false;<br />
label.disabled = false;<br />
}<br />
}<br />
}


Can anyone help me? Thanks a lot.
AnswerRe: Unable to re-enable a radio button if disabled server-side Pin
ChrisKo17-Sep-07 10:52
ChrisKo17-Sep-07 10:52 
GeneralRe: Unable to re-enable a radio button if disabled server-side Pin
WSonck17-Sep-07 21:01
WSonck17-Sep-07 21:01 
QuestionMenu control flyouts don't appear where the should Pin
eggsovereasy17-Sep-07 6:12
eggsovereasy17-Sep-07 6:12 
QuestionGridView Row updating : e.NewValues is null Pin
ss.mmm17-Sep-07 5:20
ss.mmm17-Sep-07 5:20 
AnswerRe: GridView Row updating : e.NewValues is null Pin
DavidNohejl17-Sep-07 5:56
DavidNohejl17-Sep-07 5:56 
QuestionRe: GridView Row updating : e.NewValues is null Pin
ss.mmm17-Sep-07 11:05
ss.mmm17-Sep-07 11:05 
QuestionVS 2003 - Asp.Net Project Settings Pin
matthias s.17-Sep-07 4:55
matthias s.17-Sep-07 4:55 
AnswerRe: VS 2003 - Asp.Net Project Settings Pin
monu nair18-Sep-07 17:33
monu nair18-Sep-07 17:33 
GeneralRe: VS 2003 - Asp.Net Project Settings Pin
matthias s.19-Sep-07 4:58
matthias s.19-Sep-07 4:58 
QuestionStatic Method to get Data from DB? Pin
error140817-Sep-07 4:49
error140817-Sep-07 4:49 
AnswerRe: Static Method to get Data from DB? Pin
Guffa17-Sep-07 5:52
Guffa17-Sep-07 5:52 
GeneralRe: Static Method to get Data from DB? Pin
error140817-Sep-07 7:32
error140817-Sep-07 7:32 
Questioniframe problem Pin
g_f_r17-Sep-07 4:43
g_f_r17-Sep-07 4:43 
AnswerRe: iframe problem Pin
Brent Lamborn17-Sep-07 6:37
Brent Lamborn17-Sep-07 6:37 
AnswerRe: iframe problem Pin
Guffa17-Sep-07 6:39
Guffa17-Sep-07 6:39 
QuestionNeed Help. filtering a SQLDataAdapter with a girdview selected.value [modified] Pin
orsini17-Sep-07 4:07
orsini17-Sep-07 4:07 
AnswerRe: Need Help. filtering a SQLDataAdapter with a girdview selected.value Pin
monu nair17-Sep-07 18:08
monu nair17-Sep-07 18:08 

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.