How to generate _doPostBack even if no ASP.NET controls there?
Posted on 2008-11-13
Some of my aspx page have no controls on them, but I still want to wire some onclicks of html controls to the .NET 3.5 code using Request.Form["__EVENTTARGET"]. I've had this working great using this:
This way, even if there are no .NET controls on the page, the _doPostBack function gets generated by .NET then I can use it on my html pages like onclick="_doPostBack(this,args).