Hi. I have a ASP.NET 2.0 web application in which I use a master template for all my pages. I would like to add a 'onresize' event for the body tag of only one of these pages. Does anyone have a suggestions on how to do that?
I've tried javascript:
if( window.addEventListener )
{
window.addEventListener("resize", alignObsoleteProductsCenter(), false);
}
else if( document.addEventListener )
{
document.addEventListener("resize", alignObsoleteProductsCenter(), false);
}
The only other option I can think of is to declare the body as body runat="server" and the do something in the page_load, but I'm not sure how. Any suggestions would be appreciated.
Thank you.