Hi,
i would like to know how to run registered script through an auto postback event of the control which is residing in radajaxpanel.
Sample code given below but when i execute the below code nothing happens but i want to open window through javascript reply me ASAP.
Thanks in advance...........
protected void btn_Click(object sender, EventArgs e)
{
//Java script to open the window for Billboard preview
if (ClientScript != null)
if (!ClientScript.IsStartupScriptRegistered("Startup"))
{
string scriptString;
scriptString = "<script language=javascript>";
scriptString = string.Format("{0} window.open('page1.aspx?ID=' + document.frm1.hidID.value, '_blank', 'width=300, height=430, location=no, menubar=no, resizable=no, scrollbars=no, status=no, titlebar=no, toolbar=no', 'true');", scriptString);
scriptString = scriptString + "</script>";
RegisterStartupScript("Startup", scriptString);
}
}
Regds,
Boogie.
i would like to know how to run registered script through an auto postback event of the control which is residing in radajaxpanel.
Sample code given below but when i execute the below code nothing happens but i want to open window through javascript reply me ASAP.
Thanks in advance...........
protected void btn_Click(object sender, EventArgs e)
{
//Java script to open the window for Billboard preview
if (ClientScript != null)
if (!ClientScript.IsStartupScriptRegistered("Startup"))
{
string scriptString;
scriptString = "<script language=javascript>";
scriptString = string.Format("{0} window.open('page1.aspx?ID=' + document.frm1.hidID.value, '_blank', 'width=300, height=430, location=no, menubar=no, resizable=no, scrollbars=no, status=no, titlebar=no, toolbar=no', 'true');", scriptString);
scriptString = scriptString + "</script>";
RegisterStartupScript("Startup", scriptString);
}
}
Regds,
Boogie.