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)
"Dimitris Milonas" wrote:
> 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
> example the "text" property of a button control can be accessed by using the
> "value" property (i.e. from ASP.NET button1.text = "Sample" and with
> JavaScript document.getElementById('button1').value = 'Sample').
>
> But how can I get or set properties like "button1.PostBackURL" or
> "button1.EnableViewState" with JavaScript? The same question applies to the
> properties of a third party component.
>
> Regards
> Dimitris
>
>
>
>
|