| Author: Priya 05 Sep 2008 | Member Level: Silver | Rating: Points: 1 |
Check if you have any response.redirect to the parent page in your calendar.aspx page. This may bring you back to the parent page.
|
| Author: suze 05 Sep 2008 | Member Level: Gold | Rating: Points: 1 |
No Response.redirect
|
| Author: Avadhesh Kumar Tiwari 05 Sep 2008 | Member Level: Silver | Rating: Points: 2 |
You should use string builder class.. example.... add namespace on your .CS page using System.text;
StringBuilder sb=new StringBuilder(); sb.Append("<Script>"); sb.Append("Window.Open("Calender"); Sb.Append(</Script>");
Hope this code will help you..
|
| Author: Priya 05 Sep 2008 | Member Level: Silver | Rating: Points: 2 |
Add this code on page_load()
Submit1.attributes.add("onClick","javascript:window.open('calender.aspx','null','height=300,width=400,status=yes,toolbar=no,menubar=no,location=no');")
|
| Author: Kundan Kumar Sinha 05 Sep 2008 | Member Level: Gold | Rating: Points: 3 |
Hi Soja,
In the given code, you are calling the function on click event of submit button. so your page is getting submitted.
Use the following code.
<script type="text/javascript"> function openWindow() //open_win() { //window.open("http://www.aceproject.com"); window.showModalDialog("calender.aspx",'',''); } </script> <form>
<input type="button" value="Open" id="Submit1" onclick="openWindow()";/> // <input type=button value="Open Window" onclick="open_win()"> </form>
Regards, Kundan
|