473,387 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Why Postback open a new window..?

Dear all expert,
I use javascript to open a modal dialog window
window.showModalDialog('child.aspx');

but in my child.aspx, got a button, when I click the button, it will do
the postback, mean that it shoul refresh the page.. but in my case, the open
another window...
why this happen ? isn't the postback will only refresh in the same window ?

Am I missing something ? Please kindly point me my mistake...

Thank you very much.

Best regards,
Bsiang.
Nov 18 '05 #1
4 2642
it's a limitation of the ModalDialog.....

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Bsiang Tan" <tb*********@hotmail.com> wrote in message
news:O%******************@tk2msftngp13.phx.gbl...
Dear all expert,
I use javascript to open a modal dialog window
window.showModalDialog('child.aspx');

but in my child.aspx, got a button, when I click the button, it will do the postback, mean that it shoul refresh the page.. but in my case, the open another window...
why this happen ? isn't the postback will only refresh in the same window ?
Am I missing something ? Please kindly point me my mistake...

Thank you very much.

Best regards,
Bsiang.

Nov 18 '05 #2
You can avoid it by using an iframe.
Nov 18 '05 #3
Thanks to you all !!
"Paul Peeters" <an*******@discussions.microsoft.com> wrote in message
news:51**********************************@microsof t.com...
You can avoid it by using an iframe.

Nov 18 '05 #4
Thanks you both.

"Paul Peeters" <an*******@discussions.microsoft.com> wrote in message
news:51**********************************@microsof t.com...
You can avoid it by using an iframe.

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: MrFez | last post by:
I have an webform from which I open a child window to display a calendar. When a date is selected in the calendar window it attempts to set the value of a textbox in the main (parent) window by...
2
by: KathyB | last post by:
Hi, In the pageload of my aspx file I have the following (in both not in postback and is postback)... btnList.Attributes.Add("onclick", "window.open('Scanned.aspx', 'Serial Numbers',...
2
by: Ashish | last post by:
Hi All, I have a server runnable textbox control. I also have a server side button object but I hook up javascript to it to show a modal dialog. Upon return it places the value in the textbox...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
2
by: Jacky Chau | last post by:
I have a modal dialog opened using window.showModalDialog. When that modal dialog closes, it causes the parent form to postback. Is there any way to stop it from forcing the parent page to...
6
by: SkeanDu | last post by:
Ok, here is my problem. I have an aspx page that displays a databound datagrid and in one of the datagrid column headers I have an image that when clicked opens up a modal web dialog (another...
6
by: Shawn | last post by:
Any ideas how I can have a button click on one open page force a postback on a different page.
2
by: Rob Roberts | last post by:
Is there any way to prevent a ButtonField in a GridView from doing a postback when clicked? I want to use my own onclick handler to call window.open('SomePage.aspx') to display a page in a new...
9
by: 200dogz | last post by:
Hi guys, I want to have a button which opens up a new window when pressed. <asp:Button ID="Button1" runat="server" Text="Open new window" /> ... Button1.Attributes.Add("OnClick",
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.