Geeks With Blogs
Pankaj Tahiliani

Sometimes we got this error message when we try to validate our asp.net website on w3c. To solve this error you need to write the PreRender event. Here is the complete event:

Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
        imgBtnGo.Style.Remove(HtmlTextWriterStyle.BorderWidth)
        imgBtnGo.Attributes.Remove("border")
End Sub

Posted on Wednesday, March 10, 2010 3:12 AM | Back to top


Comments on this post: there is no attribute "border"

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Pankaj Tahiliani | Powered by: GeeksWithBlogs.net