I have a ASP.NET button but recently, I replaced it with a standard HTML button ... What I need to do is a postback to an ASP.NET page and ensure a method is called.
See if this helps: http://www.codeproject.com/KB/aspnet/sample.aspx.
Basically, you declare a dummy anchor tag:
In your code behind, you need to declare a foo method:
protected void foo(object sender, EventArgs e)
{
// Do something here
}
Then you can invoke this anchor's onclick function with this javascript:
document.getElementById('anchorId').click()