try something like this.
SubmitRequestTextBox.Attributes.Add("style","color:red");
or if you have CSS class defined
then you can specify the class itself
SubmitRequestTextBox.Attributes.Add("class","newDiv");
<a href='http://lavbox.blogspot.com'>Lav G </a>
On Dec 9, 4:21 pm, "Montezuma's Daughter" <[EMAIL PROTECTED]>
wrote:
> Hi all
>
> I have a dynamic button, that on submit need to call webservice
>
> I want to use
>
> style="behavior:url(Script/webservice.htc)"
>
> 1. how can I add dynamic style when creating it?
>
> SubmitRequestTextBox.ID = "SubmitRequestTextBox";
>
> SubmitRequestTextBox.Text ="Submit";
>
> SubmitRequestTextBox.Attributes.Add("OnClick", "GetWS()");
>
> 2.if I can't, I tried to put it in a div
>
> <div style="behavior:url(Script/webservice.htc)" >
>
> but I get an error msg
>
> Error 4 Validation (CSS 2.0): 'behavior' is not a known CSS property
> name. \
>
> thanks