// open new window with specified pathRead More......
function OpenWindow(url)
{
newwindow = window.open(url, 'mywindow', 'width=500,height=400');
}
Now In .aspx.cs page or server side to use the javascript window open you have to use the following code
StringBuilder popupScript = new StringBuilder();
popupScript.Append("");
// if you are using script manager - update panel then this
ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "PopupScript", popupScript.ToString(), false);
//else
Page.RegisterStartupScript("PopupScript", popupScript.ToString());
Sunday, October 25, 2009
Open a New Window On Server Side using Javascript Code in Asp.net
at
2:48 AM
·
1 comments
Labels: Asp.net, Javascript
Saturday, October 24, 2009
Add "Select" Option To Dropdown list in Asp.net
at
12:41 AM
·
0
comments
There are many ways to add select option to dropdown list.. Here in this post i will list some of the ways: 1)
Labels: Asp.net
Subscribe to:
Posts (Atom)