how to restrict to open new window from a dialog box(i.e new window should not open from a dialog box)

i have a button. onclick event A dialog box is opened using js.The page that opens in dialog box consist of some server side scripts i.e a drop down box(C#) on which when i select a value then it retrieve some data from data base and display in a table.

now the problem is that when i select value in dropdown menu then an other new window opens  and all data comes on that instead of a dialog box.so is there any way that no more windows should open after a dialog box i.e all calculations should be in the one dialog box no new windows should be opened.


Regards
SHOAIB RIZWAN
0
shoaibrizwan
11/26/2008 6:29:21 AM
asp.net.client-side 24353 articles. 1 followers. Follow

5 Replies
1223 Views

Similar Articles

[PageSpeed] 44

I have to clarify something :

  • Are you using IE modelles dialog? if you use this, you must handle all action from parent window. if not, then popups will open.
  • if not, are there any action after selecting dropdown menu?

 

 

0
scott6
12/3/2008 3:52:57 AM

 this is a modal dialog but in a modal dialoge when we make an action of serverside script i.e selecting value from a drop down list that perform certain actions from db.then all these actions should perform on the same 1 dialog box and should not open more then 1 windows.

This problem is occuring only with IE .In firefox it is ok.


Regards
SHOAIB RIZWAN
0
shoaibrizwan
12/3/2008 5:23:26 AM

I see..

I can't find any problem with my application since i'm using ajax. try it.
or if you prefer using your way, try to wrap your modal dialog page within an iframe, so your modal dialog will only contains iframe, & set the iframe src to your page.

try it and let me know :)

0
scott6
12/3/2008 6:28:46 AM

If you are using window.showModalDialog to open the window, add: <base target="_self"> inside of the <head> tags of the page being used as the dialog.

NC...

0
NC01
12/3/2008 7:32:22 PM
thanks buddy its working.
Regards
SHOAIB RIZWAN
0
shoaibrizwan
12/4/2008 5:58:07 AM
Reply:

Similar Artilces:

modal dialog box blocks when native mac open dialog window is opened and browser wrongly detects open dialog window as long running script
Name: Nick Jones Email: ndotjonesataucklanddotacdotnz Product: Firefox Summary: modal dialog box blocks when native mac open dialog window is opened and browser wrongly detects open dialog window as long running script Comments: I'm running: ff 3.5b4 Mac OS X 10.5.6 This has happened in several features: modal dialog box blocks when native mac open dialog window is opened and browser wrongly detects open dialog window as long running script Most recently, i was looking to import a user cert, so went to prefs > advanced > user certs > import, and started bro...

Dialog box opens new browser window on postback
Hi, I've got 2 pages parent.aspx and child.aspx In the Parent.aspx Load event is this code: Button1.Attributes.Add("onclick", "window.showModalDialog('child.aspx?nodeid=1"');"); This pops up a dialog box style window displaying child.aspx, no problem. On child.aspx there is a button that does a database insert on the click event. When I click the button, a new browser instance pops up with child.aspx. When I close my original dailog box, the parent refreshes ok, but this leaves a browser window hanging. It's like the dialog postback...

opening new window other than window.open
is there any other way of opening a new window... aside from window.open? window.open has a memory leak so i want to prevent using it as much as possible.Alvin ShihSoftware DeveloperMCP MCTS MCPD Hi window.showmodaldialog() but supports only IE....   Regards Suresh Kumar Goudampally Why dont you avoid pop up windows all together and use an iframe that is positioned over the content? Eric Pascarello.com | Twitter epascarello | LinkedIn Hi,Try Target="_blank" N.P.SenthilSoftware Engineer  Link buttons targer property is set to "_blank"...

Open a new window with window.open()
Hi, =20 in our web application, we try to open a popup-window with window.open(). But instead of opening a new window, a new tab is opened. =20 In the SeaMonkey preferences, we configured it, to open new links in a new tab. With firefox, we had the same preferences, but when window.open() was called, a new window was opened.=20 How can we configure SeaMonkey, so that it has the Firefox behavior when calling window.open() ? =20 Thanks in advance. =20 =20 =20 Artur Zeiler schrieb: > Hi, > > in our web application, we try to open a popup-window wi...

window.open() opens new window
Firefox 19.0 Windows XP Pro SP-3 Example site URL: http://www.pcconnection.com/ (I've hit this problem at many sites, however.) Firefox is configured (enabled) as: Tools -> Options -> Tabs "Open new windows in a new tab instead" = Enabled Presumably this means when a page tries to open a new window (another instance of the web browser) that instead a new tab will appear in the current window. Works that way in IE8 (when "Always open popups in a new tab" is enabled). Go down the page and click on the "Site Help" link. What I get...

Need to open the Windows 'Open' dialog box
Hello, Would anybody know how I can open the Windows O.S. 'Open' / 'Save' dialog box ? I am using PB 5.0.04. TIA, Ganesh Use the Powerscript GetFileOpenName function. Regards, Dave Fish [Team Powersoft] On Fri, 08 Jan 1999 17:44:53 -0500, "Ganesh" <nospamrganesh123@aol.com> wrote: >Hello, > Would anybody know how I can open the Windows O.S. 'Open' / 'Save' >dialog box ? I am >using PB 5.0.04. TIA, > >Ganesh ...

superreview requested: [Bug 172962] Options for where to open URLs from other applications (reuse tab, new tab, new window) : [Attachment 159443] optional addition to divert window.open to a new tab
Dan M <danm.moz@gmail.com> has asked Peter Van der Beken <peterv@propagandism.org> for superreview: Bug 172962: Options for where to open URLs from other applications (reuse tab, new tab, new window) https://bugzilla.mozilla.org/show_bug.cgi?id=172962 Attachment 159443: optional addition to divert window.open to a new tab https://bugzilla.mozilla.org/attachment.cgi?id=159443&action=edit ...

superreview granted: [Bug 172962] Options for where to open URLs from other applications (reuse tab, new tab, new window) : [Attachment 159443] optional addition to divert window.open to a new tab
Peter Van der Beken <peterv@propagandism.org> has granted Dan M <danm.moz@gmail.com>'s request for superreview: Bug 172962: Options for where to open URLs from other applications (reuse tab, new tab, new window) https://bugzilla.mozilla.org/show_bug.cgi?id=172962 Attachment 159443: optional addition to divert window.open to a new tab https://bugzilla.mozilla.org/attachment.cgi?id=159443&action=edit ------- Additional Comments from Peter Van der Beken <peterv@propagandism.org> >Index: dom/src/base/nsGlobalWindow.cpp >=================================...

superreview granted: [Bug 172962] Options for where to open URLs from other applications (reuse tab, new tab, new window) : [Attachment 161419] don't divert window.open to a new tab if the named wind
Johnny Stenback <jst@mozilla.jstenback.com> has granted Dan M <danm.moz@gmail.com>'s request for superreview: Bug 172962: Options for where to open URLs from other applications (reuse tab, new tab, new window) https://bugzilla.mozilla.org/show_bug.cgi?id=172962 Attachment 161419: don't divert window.open to a new tab if the named window exists https://bugzilla.mozilla.org/attachment.cgi?id=161419&action=edit ------- Additional Comments from Johnny Stenback <jst@mozilla.jstenback.com> sr=jst ...

superreview requested: [Bug 172962] Options for where to open URLs from other applications (reuse tab, new tab, new window) : [Attachment 161419] don't divert window.open to a new tab if the named wi
Dan M <danm.moz@gmail.com> has asked Johnny Stenback <jst@mozilla.jstenback.com> for superreview: Bug 172962: Options for where to open URLs from other applications (reuse tab, new tab, new window) https://bugzilla.mozilla.org/show_bug.cgi?id=172962 Attachment 161419: don't divert window.open to a new tab if the named window exists https://bugzilla.mozilla.org/attachment.cgi?id=161419&action=edit ...

OPEN NEW WINDOW USING window.open
Hi, can any eagle eyed geniuses spot what I'm doing wrong here? It's doing my nut! I'm simply trying to call a new page in a new window that I want to control the size, etc. I've tried two different ways - one from within my code behind and the other triggered by a LinkButton command action. Both do absolutely nothing. Please help... Private Sub InfoClick1(ByVal pSiteCode) Response.Write("<script>window.open('siteinfo.aspx?sitecode='" & pSiteCode & "','Info','left=20,top=20,height=500,width=850,toolbar=no,status=no,resizable=1,scrollbars=no')</script>") End Sub +...

superreview requested: [Bug 429926] Make Cmd+T open a new window when no browser windows are open : [Attachment 316692] BrowserOpenTab() even when no windows are open
Stefan <stefanh@bluebottle.com> has asked neil@parkwaycc.co.uk <neil@httl.net> for superreview: Bug 429926: Make Cmd+T open a new window when no browser windows are open https://bugzilla.mozilla.org/show_bug.cgi?id=429926 Attachment 316692: BrowserOpenTab() even when no windows are open https://bugzilla.mozilla.org/attachment.cgi?id=316692&action=edit ...

superreview granted: [Bug 429926] Make Cmd+T open a new window when no browser windows are open : [Attachment 316692] BrowserOpenTab() even when no windows are open
neil@parkwaycc.co.uk <neil@httl.net> has granted Stefan <stefanh@inbox.com>'s request for superreview: Bug 429926: Make Cmd+T open a new window when no browser windows are open https://bugzilla.mozilla.org/show_bug.cgi?id=429926 Attachment 316692: BrowserOpenTab() even when no windows are open https://bugzilla.mozilla.org/attachment.cgi?id=316692&action=edit ...

superreview granted: [Bug 429926] Make Cmd+T open a new window when no browser windows are open : [Attachment 317598] New version
neil@parkwaycc.co.uk <neil@httl.net> has granted jag (Peter Annema) <jag@tty.nl>'s request for superreview: Bug 429926: Make Cmd+T open a new window when no browser windows are open https://bugzilla.mozilla.org/show_bug.cgi?id=429926 Attachment 317598: New version https://bugzilla.mozilla.org/attachment.cgi?id=317598&action=edit ...

Web resources about - how to restrict to open new window from a dialog box(i.e new window should not open from a dialog box) - asp.net.client-side

Facebook Releases Second Global Government Requests Report, Adds Requests To Restrict, Remove Content ...
... the release of the second edition of its Global Government Requests Report , and this time around, it added government requests to restrict ...

Citing Legal Risks, Facebook Restricts Employee Stock Sales
Facebook implemented a new policy against insider stock trading last Friday. The point is to keep employees with stock to sell from getting in ...

ACT government restricts lottery sales to daytime
ACT government introduces restrictions on times tickets and scratchies can be sold in Canberra.

Protests as Spain restricts abortions (00:43)
RAW VISION: pro-choice demonstrators shout slogans during a protest against their government on abortion issues in Madrid, Spain.

Restrict immigration and take the pressure off our infrastructure
The article &quot;Traffic jam costs tipped to hit $700m&quot; (May 22, p1) quotes Infrastructure Australia chairman Mark Birrell.

China restricts passports for minorities
China has been accused of banning Tibetans and other ethnic minorities from obtaining passports.

New Jersey law restricts some sex offenders from surfing the Web
Convicted sex offenders who used the Internet to help them commit their crimes will be banned from using the Internet under a measure signed ...

Google restricts 'revenge porn' pic access
Google will allow people whose nude pictures have been posted on websites without their permission to have the image links blocked from its search ...

Federal aviation authorities shouldn't be able to restrict the shape of our cities
News that Parramatta Council is taking on the Federal Government's aviation authorities who seem to want to restrict Parramatta's growth will ...

Protests as Spain restricts abortions (00:43)
RAW VISION: pro-choice demonstrators shout slogans during a protest against their government on abortion issues in Madrid, Spain.

Resources last updated: 11/29/2015 2:34:13 AM