473,411 Members | 2,030 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,411 software developers and data experts.

Postback issues with ShowModalDialog


Hello,

I am using ShowModalDialog to display modal dialog in our
application. I am displaying modal dialog (WebForm1.aspx -
DropdownList's ,TextBox's and Ok and Cancel buttons placed on it) from
default.aspx. Everything looks to be working fine until I tried
handling "OK" and "Cancel" event's on code behind of
WebForm1.aspx(modal dialog).

Login window being displayed on new browser window every time I click
either 'OK" or "Cancel" buttons which may be because of loging
required to access any page in our application.

Can you guys let me know, what I need to do to handle postback's on
modal dialog?

Thanks in advance,
-Satya

Mar 27 '07 #1
1 2079
Hello,
try to add
<base target="_self" />
inside the head tag of WebForm1.aspx.

Also consider setting this page to do not cache, otherwise the modal window
may open with a cached content after the first time it was opened.

Bruno

"Satya" <sa**********@gmail.comwrote in message
news:11**********************@n59g2000hsh.googlegr oups.com...
>
Hello,

I am using ShowModalDialog to display modal dialog in our
application. I am displaying modal dialog (WebForm1.aspx -
DropdownList's ,TextBox's and Ok and Cancel buttons placed on it) from
default.aspx. Everything looks to be working fine until I tried
handling "OK" and "Cancel" event's on code behind of
WebForm1.aspx(modal dialog).

Login window being displayed on new browser window every time I click
either 'OK" or "Cancel" buttons which may be because of loging
required to access any page in our application.

Can you guys let me know, what I need to do to handle postback's on
modal dialog?

Thanks in advance,
-Satya

Mar 27 '07 #2

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

Similar topics

0
by: Jinx | last post by:
Windows IE ..NET PROBLEM: After invoking showModalDialog(), a form comes up, the user clicks submit, and a NEW webpage opens. SOLUTION After reading numerous posts that say, paraphrased,...
0
by: MikeB | last post by:
This post is not about postbacks opening a new window from a showModalDialog window. I am using a modal dialog to populate a textbox in my form. When the form is submitted the code behind logic...
2
by: Henry Johnson | last post by:
I'm currently opening an aspx page (myModalASPX) as a dialog box from client-side script using window.showModalDialog(blah blah blah). The dialog opens as expected. Now I'm adding functionality...
3
by: Chris | last post by:
I'm trying to use the showModalDialog window opener and for some reason even though I have these set to no (an dI've tried 0 and false) the window still shows them. Why? The window opens ok. I see...
5
by: Nick Poulis | last post by:
In my page I use window.ShowModalDialog ---------------------------------------------------------------- Page.RegisterStartupScript("PopUpPerson", _ "<script language=""Javascript"">" & vbCrLf &...
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...
15
by: mc | last post by:
I'm writing an app for managing Task Lists, I'm trying to add some controls to a form that I can use to link tasks, my original intention was to: - Add two list boxes, one listing "all Tasks"...
0
by: nilayb | last post by:
Hi All, I am unable to get the page title after postback of the modal window using window.showmodaldialog. First time it displays the title but after postback event it doesnt. i am using C# ,.net...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...
0
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...
0
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...

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.