N
Nathan Sokalski
I have a custom control that inherits System.Web.UI.WebControls.Image. When
overriding the RenderContents method, I have the following two lines of
code:
Me.ImageUrl="myurlstring"
MyBase.RenderContents(writer)
When I run the control, it renders the following:
<img src="" style="border-width:0px;" />
Why is it not rendering the ImageUrl? I did a debug, and the value is being
correctly assigned to Me.ImageUrl, but it still renders an empty src
attribute. Any ideas? Thanks.
overriding the RenderContents method, I have the following two lines of
code:
Me.ImageUrl="myurlstring"
MyBase.RenderContents(writer)
When I run the control, it renders the following:
<img src="" style="border-width:0px;" />
Why is it not rendering the ImageUrl? I did a debug, and the value is being
correctly assigned to Me.ImageUrl, but it still renders an empty src
attribute. Any ideas? Thanks.