Eliyahu,
That works fine. Thanks.
Ben
"Eliyahu Goldin" <> wrote in message
news:%...
> Ben,
>
> Forthe element you need to specify runat=server and id=myHtml. Then VS
> will
> define the element for you in code-behind as the page's protected member.
> In
> any page method you can set an attribute as (c# syntax):
>
> myHtml.Attributes["myAttribute"]="my string";
>
> Eliyahu
>
> "Ben Foster" <> wrote in message
> news:...
>> I want to be able to set an attribute of the HTML object in the form's
>> Page_Load event. I can't see how to do this. The main problem is that I
>> can't see how to access the HTML object from this event. Can anyone help
>> ?
>>
>> Ben
>>
>>
>
>
|