public void Page_Load(Object sender, EventArgs e) { // Define the name and type of the client scripts on the page. String csname1 = "PopupScript"; Type cstype = this.GetType(); // Get a ClientScriptManager reference from the Page class. ClientScriptManager cs = Page.ClientScript; // Check to see if the startup script is already registered. if (!cs.IsStartupScriptRegistered(cstype, csname1)) { StringBuilder cstext1 = new StringBuilder(); cstext1.Append("<script type=text/javascript>doAjax()</"); cstext1.Append("script>"); cs.RegisterStartupScript(cstype, csname1, cstext1.ToString()); }
{
// Define the name and type of the client scripts on the page.
String csname1 = "PopupScript";
Type cstype = this.GetType(); // Get a ClientScriptManager reference from the Page class.
ClientScriptManager cs = Page.ClientScript; // Check to see if the startup script is already registered.
if (!cs.IsStartupScriptRegistered(cstype, csname1))
{
StringBuilder cstext1 = new StringBuilder();
cstext1.Append("<script type=text/javascript>doAjax()</");
cstext1.Append("script>"); cs.RegisterStartupScript(cstype, csname1, cstext1.ToString());
}
type:"GET",
url:"="+new Date(),
data:"",
success:function(text){
$("#str").text(text);
}
});
$(document).ready(function()