Call Javascript function from page load in asp.net

Discussion in 'Programming' started by rechard, Nov 20, 2007.

  1. #1
    hi guys,

    i want to call javascript function from page load event and that event does the functionality of hide the layer i.e hidelayer()

    i have done this but does not work

    string TimerFunctions = "<script language='javascript'>function showLayer()</script>";

    Page.RegisterClientScriptBlock("TimerFunctions", TimerFunctions);
    what is remaining in this code?

    Thank You In Advance?
     
    rechard, Nov 20, 2007 IP