R
Ryan Liu
Just curious, why, for instance
<asp:RadioButton runat="server"> or <intput type="radio" runat="server"
disabled="disabled"> will not post "Checked" state back if initially they
are disabled, either disabled in code behind or mark up.
I mointor http post string, actually the information is available.
Also <asp:Button> 's Text property is also not post back if I changed it on
client side using javascript.
================
This leads me think about a more general question, for a user input control,
in asp.net life cycle,
when does it assign the server control's property with (old) value found in
view state, and
when does the same property be assigned with new value in Request.Params
(user type in input), and overwrite property value got from view state,
and I assume then update viewstate with new values from user input?
I read MSDN online, it only mention load viewstate and control state, does
not mention when to load user input.
And on server side, does it treat user type in input same as the value
modified by client javascript? But of couse, view state will not be modified
by javascript.
And can someone point out a link list the properties been preserved in
viewstate. Seems Button.Text is not.
And viewstate will be always build and modified on server side, right? It
never happens on client side (except hacker).
===============
Another issue is ASP.NET render <asp:RadioButton> in a <span
disabled="disabled"> <input type=radio disabled="disabled"> </span>, this
is problematic in IE for javascript. First disabled is not a vlid property
for span, second, when I write javascript to enable radio button, I have to
remvoe "disable" attr of <span> as well. -- Why Microsoft does that?
Thanks a lot!
Ryan
<asp:RadioButton runat="server"> or <intput type="radio" runat="server"
disabled="disabled"> will not post "Checked" state back if initially they
are disabled, either disabled in code behind or mark up.
I mointor http post string, actually the information is available.
Also <asp:Button> 's Text property is also not post back if I changed it on
client side using javascript.
================
This leads me think about a more general question, for a user input control,
in asp.net life cycle,
when does it assign the server control's property with (old) value found in
view state, and
when does the same property be assigned with new value in Request.Params
(user type in input), and overwrite property value got from view state,
and I assume then update viewstate with new values from user input?
I read MSDN online, it only mention load viewstate and control state, does
not mention when to load user input.
And on server side, does it treat user type in input same as the value
modified by client javascript? But of couse, view state will not be modified
by javascript.
And can someone point out a link list the properties been preserved in
viewstate. Seems Button.Text is not.
And viewstate will be always build and modified on server side, right? It
never happens on client side (except hacker).
===============
Another issue is ASP.NET render <asp:RadioButton> in a <span
disabled="disabled"> <input type=radio disabled="disabled"> </span>, this
is problematic in IE for javascript. First disabled is not a vlid property
for span, second, when I write javascript to enable radio button, I have to
remvoe "disable" attr of <span> as well. -- Why Microsoft does that?
Thanks a lot!
Ryan