asp.net server control in general do not support this. you need to understand
the html rendered by the control to know what can be modified. also with the
exception of the value, none of the properties are posted back so changing in
client will have no impact on the server after postback.
as viewstate is encrypted client script can neither view it or change.
looking at how postback url works, you can do it in client code (as it just
executes client script to implement this feature).
-- bruce (sqlwork.com)
> Is there a way to get or set a property value of an ASP.NET web component? I
> know that some properties can be accessed but with different names. For
[quoted text clipped - 8 lines]
> Regards
> Dimitris
Dimitris Milonas - 06 Nov 2007 07:02 GMT
I mentioned the two properties ("PostBackURL" and "EnableViewState") as an
example and not because I wanted to get or set these two particular
properties. But when you're saying that "...you need to understand the html
rendered by the control to know what can be modified..." you mean that if
the web button componenet is rendered as an <INPUT> tag then I need to know
how to manipulate the particular tag and not the button component itself. Is
that correct? The same applies to third party components?
Regards
Dimitris
> asp.net server control in general do not support this. you need to understand
> the html rendered by the control to know what can be modified. also with the
[quoted text clipped - 19 lines]
> > Regards
> > Dimitris