I never use a Web Control with an HTML equivilant unless absolutely
necessary.
DataGrids and Repeaters are fine, but using <asp:button> instead of
<input type=submit> just strikes me as silly, an can lead to
sloppiness. I've actually had to dress down a junior developer after
finding the following code in an application:
<asp:linkbutton id="myLink" onclick="myLink_Click" text="home"
runat=server></asp:linkbutton>
.... and on the server...
protected void myLink_Click(object sender, EventArgs e)
{
Response.Redirect("/home.aspx");
}
Anybody think they could come up with an HTML equivilant to the above?
Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/