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

Modal Dialog Popup from WebControl - What is wrong with this...

I saw several posts asking for popups from web controls. The standard
answer is that once rendered, the server no longer has control. I had some
success with the following and I was curious if I have broken any rules.

Add this line to the load_page event....

Response.Write("<script language=javascript>function CallSub(passed_value)
{temp=showModalDialog('http://www.cnn.com?PVAL' + passed_value)}</script>")

In your datagrid, set the following fields for a linkbutton......

URL: javascript:CallSub()
URL FIELD: ID ...... id is the record id
URL FORMAT STRING: javascript:CallSub({0})

The result seems to be a server side control that calls a popup. The popup
could call an HTTPPOST to write data to the database before closing the
window.

Any reason why this should not or would not work? So far it seems to work
for me.
Jul 19 '05 #1
3 3572
http://www.aspfaq.com/show.asp?id=2257
"Jim Mitchell" <ji**********@mindspring.com> wrote in message
news:O1*************@TK2MSFTNGP12.phx.gbl...
I saw several posts asking for popups from web controls. The standard
answer is that once rendered, the server no longer has control. I had some success with the following and I was curious if I have broken any rules.

Add this line to the load_page event....

Response.Write("<script language=javascript>function CallSub(passed_value)
{temp=showModalDialog('http://www.cnn.com?PVAL' + passed_value)}</script>")
In your datagrid, set the following fields for a linkbutton......

URL: javascript:CallSub()
URL FIELD: ID ...... id is the record id
URL FORMAT STRING: javascript:CallSub({0})

The result seems to be a server side control that calls a popup. The popup could call an HTTPPOST to write data to the database before closing the
window.

Any reason why this should not or would not work? So far it seems to work
for me.

Jul 19 '05 #2
People who set their date to a future date so that their message will stay
at the top of the thread should have to find their own answers.

"Jim Mitchell" <ji**********@mindspring.com> wrote in message
news:O1*************@TK2MSFTNGP12.phx.gbl...
I saw several posts asking for popups from web controls. The standard
answer is that once rendered, the server no longer has control. I had some success with the following and I was curious if I have broken any rules.

Add this line to the load_page event....

Response.Write("<script language=javascript>function CallSub(passed_value)
{temp=showModalDialog('http://www.cnn.com?PVAL' + passed_value)}</script>")
In your datagrid, set the following fields for a linkbutton......

URL: javascript:CallSub()
URL FIELD: ID ...... id is the record id
URL FORMAT STRING: javascript:CallSub({0})

The result seems to be a server side control that calls a popup. The popup could call an HTTPPOST to write data to the database before closing the
window.

Any reason why this should not or would not work? So far it seems to work
for me.

Jul 19 '05 #3
I too often use my date and time as a calendar and then just click OK at the
end of the day. Sorry. You would think Microsoft could purge the
newsgroup?
"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:eV*************@TK2MSFTNGP11.phx.gbl...
People who set their date to a future date so that their message will stay
at the top of the thread should have to find their own answers.

"Jim Mitchell" <ji**********@mindspring.com> wrote in message
news:O1*************@TK2MSFTNGP12.phx.gbl...
I saw several posts asking for popups from web controls. The standard
answer is that once rendered, the server no longer has control. I had

some
success with the following and I was curious if I have broken any rules.

Add this line to the load_page event....

Response.Write("<script language=javascript>function CallSub(passed_value) {temp=showModalDialog('http://www.cnn.com?PVAL' +

passed_value)}</script>")

In your datagrid, set the following fields for a linkbutton......

URL: javascript:CallSub()
URL FIELD: ID ...... id is the record id
URL FORMAT STRING: javascript:CallSub({0})

The result seems to be a server side control that calls a popup. The

popup
could call an HTTPPOST to write data to the database before closing the
window.

Any reason why this should not or would not work? So far it seems to work for me.


Jul 19 '05 #4

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...
2
by: jm | last post by:
I have a parent window: <script language="javascript"> function doSearch() { result=showModalDialog("searchmni.aspx?lastname=smith"); alert(result); } </script>
3
by: Earl Teigrob | last post by:
Can a Modal Dialog Box do forms ASP.NET forms validation from within the Modal Box? I want to pop up a dialog box to the user and have it do its own post backs with validation checking and then...
5
by: Jim Mitchell | last post by:
I saw several posts asking for popups from web controls. The standard answer is that once rendered, the server no longer has control. I had some success with the following and I was curious if I...
0
by: ApexData | last post by:
I Want Access FIND&REPLACE to stay in FIND mode. Can I place the (Access FIND&REPLACE Dialog) in a popup/modal dialog form? I need to control this process to prevent the user from pressing keys...
1
by: Samuel Rhodes | last post by:
hi i am using a ajax modal popup to allow the user to search an item and select the required item from the list. whenever i try to search the item, which causes a post back....the modal popup...
2
by: diogenes | last post by:
I have created many shortcut/popup (aka context, or right-click) menus for my application - instead of toolbars or standard drop-down menus. Within my custom menu, I am using...
4
by: fran_j_diaz | last post by:
Hi, I have a page with an Ajax modal popup. I would like to know when my Modal popup is opened, my page still able to modify. Is it possible ? (I use Visual Studio 2005, c# )
3
by: Mike Hofer | last post by:
Okay, here's the situation: we want to be able to display ASPX pages in an UpdatePanel. The reasons for this are performance related. The site in development uses *lots* of modal popups from some...
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...
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
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...
0
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,...
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.