string script = "$(document).ready(function () { $('[id*=btngenerate1]').click(); });"; ClientScript.RegisterStartupScript(this.GetType(), "click", script, true);
<asp:ScriptManager ID="ScriptManager1" runat="server"> <Scripts> <asp:ScriptReference Path="~/jquery/jquery-1.2.3.min.js" /> <asp:ScriptReference Path="~/jquery/jqModal.js" /> <asp:ScriptReference Path="~/jquery/coloranim.js" /> <asp:ScriptReference Path="~/jquery/jquery.js" /> </Scripts> </asp:ScriptManager>
Page.ClientScript.RegisterClientScriptBlock
ClientScript.RegisterStartupScript
RegisterStartupScript
RegisterClientScriptBlock
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)