Im trying desperately to create clean XHTML code with .NET - could someone show me some code to get rid of the border="0" which is rendered on an imagebutton control? I have the following which wont compile...im compiling from command line with vbc /t:library /r:system.web.dll confirmbutton.vb - but it throws an error relating to System.ComponentModel.IComponent - hence me attempting to import it. Anyone any light on this?
Imports System
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.HtmlControls
Imports System.ComponentModel.IComponent
Public Class ConfirmButton
Inherits System.Web.UI.WebControls.ImageButton
Protected Overrides Sub OnPreRender(ByVal e As EventArgs)
'The MyBase keyword behaves like an object variable referring
'to the base class of the current instance of a class
MyBase.OnPreRender(e)
End Sub
End Class