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

How get modal window to stay open?!!!

I am doing a simple master/detail page (gridview/detailsview).

I put the detailsview in a hidden panel and am using the modalpopupextender
to display it.

The details view should allow view, insert and update/cancel.

PROBLEM: The popup works perfect. BUT, when I click ANYTHING, such as
'edit', or 'new', the model CLOSES. If I reopen the model I see that the
action has taken place. Any idea how I can PREVENT it from closing
automatically?
Oct 8 '08 #1
5 3260
"Bobby Edward" <bo***@nobody.comwrote in message
news:O$**************@TK2MSFTNGP06.phx.gbl...
Any idea how I can prevent it from closing automatically?
<head>
<base target="_self" />
</head>
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 8 '08 #2
I put it in an UpdatePanel and it seemed to fix it.

I'll have to research your solution.

For some reason though, when I hit the close button on the model I can't get
the page data to update. Any ideas?

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
"Bobby Edward" <bo***@nobody.comwrote in message
news:O$**************@TK2MSFTNGP06.phx.gbl...
>Any idea how I can prevent it from closing automatically?

<head>
<base target="_self" />
</head>
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 8 '08 #3
"Bobby Edward" <bo***@nobody.comwrote in message
news:ut**************@TK2MSFTNGP06.phx.gbl...
>>Any idea how I can prevent it from closing automatically?

<head>
<base target="_self" />
</head>
For some reason though, when I hit the close button on the model I can't
get the page data to update. Any ideas?
Not without seeing your code...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 8 '08 #4
the modalpopup does not open a window. it just display a div that was
hidden. if your page does a postback, the page rerenders and the popup
is not displayed (unless you put javascript code to do it - bad idea).

if you put an update panel in the popup, then a rerender is not done, so
the popup does not disappear. if you click close, the div i just hidden,
and no async postback is done. if you need the close to save, replace
with an update trigger then generate javascript that close the popup.
i think you need to add a close method to the popup as it does not have one.

-- bruce (sqlwork.com)

Bobby Edward wrote:
I am doing a simple master/detail page (gridview/detailsview).

I put the detailsview in a hidden panel and am using the modalpopupextender
to display it.

The details view should allow view, insert and update/cancel.

PROBLEM: The popup works perfect. BUT, when I click ANYTHING, such as
'edit', or 'new', the model CLOSES. If I reopen the model I see that the
action has taken place. Any idea how I can PREVENT it from closing
automatically?

Oct 9 '08 #5

"bruce barker" <no****@nospam.comwrote in message
news:O7**************@TK2MSFTNGP03.phx.gbl...
the modalpopup does not open a window. it just display a div that was
hidden. if your page does a postback, the page rerenders and the popup is
not displayed (unless you put javascript code to do it - bad idea).

if you put an update panel in the popup, then a rerender is not done, so
the popup does not disappear. if you click close, the div i just hidden,
and no async postback is done. if you need the close to save, replace with
an update trigger then generate javascript that close the popup. i think
you need to add a close method to the popup as it does not have one.

-- bruce (sqlwork.com)
Thanks. It really sounds like that's what I need to do. Do you have a link
that I can look at to read more (or sample code)? Thanks!
Oct 9 '08 #6

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

Similar topics

3
by: DoubleM | last post by:
Hi, I'm running Python2.3.3c1 on Mandrake 9.1 The following code is designed to bring up a window with a button labeled "popup". Clicking on the popup buttons triggers a secondary window with...
1
by: amith | last post by:
Hi, I have a javascript, calendar.js which i use to enable my client to select the date. This calendar pops up on the click of a gif image. But the problem is that this poped up window is not...
1
by: Emma | last post by:
Hi, I didn't know whether it was best to post this here or on a mozilla-specific newsgroup, but I figured that you have all helped me in the past, so this is a good place to start. I have...
6
by: Ramanand.K | last post by:
var docCal function hello() { winCal= window.open("",null,"toolbar=0,status=0,menubar=0,fullscreen=no,width=195,he ight=245,resizable=0,top="+cnTop+",left="+cnLeft); docCal =...
5
by: CaptainZ | last post by:
When I open a modal window using 'showModalDialog' from an aspx page it works fine. But when I then perform a submit in my modal window to get data from the server, instead of the page returning to...
2
by: Ricky K. Rasmussen | last post by:
Hi NG, We have a rather large ASP.NET application that uses popups to display various dialogs to the user. In our work we've come over a rather annoying "bug": If we open a modal dialog using...
2
by: sthrudel | last post by:
Hi! I'm working on a web application in Asp.net and what I would like to have is a cross borwser modal dialog which accepts user's input. I would like to catch what the user clicked on the...
4
by: John Kotuby | last post by:
Hi all... I am bulding an application and wish to use custom Modal dialog windows. According to a couple of recent articles I have seen, the newer Mozilla browsers (actually I think they said...
3
by: Jimmy | last post by:
Is it possible to open a pop-up browser window (modal-style) inside another browser? e.g. // assuming something is calling this function inside the html as some event got triggered function...
1
by: Mike | last post by:
Hello, I have a Windows form that opens a modal dialog window. From there I can open yet another modal dialog window so I can grab some info to pass back to the first dialog. Both need to be...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
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...

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.