Geeks With Blogs
Pankaj Tahiliani March 2010 Entries
there is no attribute "border"

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

Copyright © Pankaj Tahiliani | Powered by: GeeksWithBlogs.net