473,769 Members | 5,757 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dialogbox postback problem

When i show a webform as a dialogbox using showModalDialog
script any postback event in dialogbox cause a new window
pops up .
How can i control the postback?
Nov 17 '05 #1
3 1662
Hi,

I've faced the same challenge. For now I have needed to use non-modal window
(normal pop-up window) to do the job.

Reason for the behavior is probably somewhere due to that opening a modal
client-side window also halts the execution of client-side code that opened
the window for as long as the modal window is closed(think of the modal
window as if it runs in the same context as the window that opened it).
Modal window's opener property is null for example, so as if it would be
treated as part of the opening (calling) code, even though opened page can
be physically different page. New window is opened because modal window
needs to be closed at client-side to let the calling code to run again (and
optionally do something with the return value from modal window)

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"majid" <ma******@yahoo .com> wrote in message
news:08******** *************** *****@phx.gbl.. .
When i show a webform as a dialogbox using showModalDialog
script any postback event in dialogbox cause a new window
pops up .
How can i control the postback?

Nov 17 '05 #2
Hi,
you can get around this by having the webform (or html
page) that is the dialogbox displaying an <IFRAME> tag
which has your actual page that needs to postback as its
source. The dialog page never actually posts back so you
don't have to deal with the new window behaviour.

alex
-----Original Message-----
When i show a webform as a dialogbox using showModalDialogscript any postback event in dialogbox cause a new windowpops up .
How can i control the postback?
.

Nov 17 '05 #3

Thank you for guide.
Can you give me some more informaion .
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #4

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

Similar topics

3
8789
by: jj | last post by:
Hi NG I have a form, where I can activate the search and replace dialogbox when pressing a button. My problem is that the dialogbox opens with the default that it should search for full match only, and I want it to open with default "a part of field". The VBA used is:
2
1799
by: Visual Systems AB \(Martin Arvidsson\) | last post by:
Hi! Is there a way to customize a dialogbox. I want buttons with the text: Yes, No, Yes to all, No to all.. Also a dialogbox with a CheckBox. Regards Martin
1
1969
by: foreman | last post by:
Hello Everybody: I am trying out DialogBox, and I have been trying to press the OK Button on the dialogbox hoping I can receive the OK DialogResult to Main Form. Below is my OK button click event handler code on AboutBox Dialogbox: DialogResult = DialogResult::OK; It can also dismiss the dialogbox and return OK "Ideally".
0
1091
by: John Marco | last post by:
I'm working on adding some dialogs to a DirectX app that I've been working on. The DirectX app by itself works fine, but when I try to define a DialogBox and call the DialogBox function, I get the following link error: LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup Am I missing a library? The docs say user32.lib, but I added this and the problem still happens. TIA!
1
1939
by: Billy | last post by:
Hi... I have a problem with a confirm dialog box. I want to execute some code and then prompt the user with a confirm dialog box who's message will depend on the result of the execution from the server. I made a function Confirm (Message) that sends the javascript of the confirm function via a RegisterStartupScript method. The result of the dialog is sent to a hidden field on the caller's page, so I could react to the user decision...
4
1685
by: Fendi Baba | last post by:
I am creating a simple project information database. In the project information form 1 have two subforms. one contains organization involved - many organzation can be involved - and another list of people; they are from the organization choosen, To help me select the people, I created a query to the "projectorganization", this narrowed down the list to pple who belongs to the organization which are involved in one project or the other. so...
9
3419
by: joemo2003 | last post by:
Please help. I created a custom dialogbox name "DialogBox". What i want is input values to the dialogbox, and those values appear on a textbox in Visio. After i creat the textbox and the dialogbox, I used "DialogBox.show", so i can enter values, and I use "ashape as shape", "ashape.Text=userinput", then how should i defind "userinput"? Thanks
1
1583
by: duwei | last post by:
I got a example, it GetBkColor from a HDC(the dc get from a DialogBox), but it BkColor always color white, dialogbox default BkColor is color like gray, how can I do to get the correct color for dialogbox? Thanks!
4
3340
by: jhalavirendra | last post by:
Hi All, I am using ASP.NET 2.0 and C#. I am opening a Modal Dialog Box from .aspx page. This dialgo box contains a grid and user can add new recod to this grid from here. When this dialgo is opend fist time everything works well.
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10039
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9990
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9860
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8869
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7406
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6668
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5297
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5445
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.