How to Open new aspx page in same window
-
Hi all, In a registration page there is a dropdown list in which city name is comming form table if a paritcular city is not show in the dropdown then user select other option and when user select other then I want open a citymaster page in which option to add new city. I have written a javescript fuction and calling it but it is open in new window <script> function showAddCityForm() { window.open("Citymaster.aspx") } </script> tell me or hint me how to open page in the same window Thanks in advance.......
-
Hi all, In a registration page there is a dropdown list in which city name is comming form table if a paritcular city is not show in the dropdown then user select other option and when user select other then I want open a citymaster page in which option to add new city. I have written a javescript fuction and calling it but it is open in new window <script> function showAddCityForm() { window.open("Citymaster.aspx") } </script> tell me or hint me how to open page in the same window Thanks in advance.......
The function is CALLED window.open, what did you expect ? Why do you need a method instead of just using a link ? Oh, because it's in response to a dropdown. Use window.location.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Hi all, In a registration page there is a dropdown list in which city name is comming form table if a paritcular city is not show in the dropdown then user select other option and when user select other then I want open a citymaster page in which option to add new city. I have written a javescript fuction and calling it but it is open in new window <script> function showAddCityForm() { window.open("Citymaster.aspx") } </script> tell me or hint me how to open page in the same window Thanks in advance.......
-
Hi all, In a registration page there is a dropdown list in which city name is comming form table if a paritcular city is not show in the dropdown then user select other option and when user select other then I want open a citymaster page in which option to add new city. I have written a javescript fuction and calling it but it is open in new window <script> function showAddCityForm() { window.open("Citymaster.aspx") } </script> tell me or hint me how to open page in the same window Thanks in advance.......
Hi, if u want through the code.
ClientScript.RegisterStartupScript(Me.GetType(), "ReportWindow", String.Format("<script>window.open('UserSetting.aspx','ReportWindow', 'width=400,height=200,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes');</script>"))
Thanks, Amit Patel
-
Samarjeet Singh@india wrote:
how to open page in the same window
Try using
<script type="text/javascript">
function openpopup()
{
window.open("b.html",'_self');
}
</script>Regards Aman Bhullar www.arlivesupport.com[^]
Dear, it is open in same window . but i want to open as child page in the same window. if know then suggest me...thnks
-
Hi all, In a registration page there is a dropdown list in which city name is comming form table if a paritcular city is not show in the dropdown then user select other option and when user select other then I want open a citymaster page in which option to add new city. I have written a javescript fuction and calling it but it is open in new window <script> function showAddCityForm() { window.open("Citymaster.aspx") } </script> tell me or hint me how to open page in the same window Thanks in advance.......
Rather than using Window.open navigate to the page. Use
function showAddCityForm()
{
window.location.href = "Citymaster.aspx";
}:rose:
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.
-
Dear, it is open in same window . but i want to open as child page in the same window. if know then suggest me...thnks
-
Samarjeet Singh@india wrote:
but i want to open as child page in the same window.
window.showModalDialog("b.html",'','dialogHeight:140px; dialogWidth:400px ; resizable:no');
Regards Aman Bhullar www.arlivesupport.com[^]
I think it is not available in most of the browsers ... It is IE specific. Not in w3 standard function list. :(
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.
-
Hi, if u want through the code.
ClientScript.RegisterStartupScript(Me.GetType(), "ReportWindow", String.Format("<script>window.open('UserSetting.aspx','ReportWindow', 'width=400,height=200,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes');</script>"))
Thanks, Amit Patel
Thnks Dear, It is working Fine. is it is possable to remove child window border ? if yes then tell me
-
I think it is not available in most of the browsers ... It is IE specific. Not in w3 standard function list. :(
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.