473,249 Members | 1,830 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,249 software developers and data experts.

How do I show a self generating html page as Modal by using showModalDialog

Hi guys/girls

I already post this in javascript forum, but nobody could help me.C#
guys are always sharp and fast, so I am trying ny Luck:-)

I wonder who can help me:
I know sort of how to use showModalDialog
But what I dont understand is how do I showModalDialog with a self
generated page??
Here is my code for self generated, I want to display it modal:
function popup(str)
{
globalHTML="<Head><title>testHelp</title></Head><html><body><form><textarea

style='WIDTH: 383px; HEIGHT: 200px; COLOR: midnightblue'>"+str
+"</textarea><br><input style='LEFT: 339px; POSITION: absolute'
type='button' value='Close'"
+"onclick='self.close()'></form></body></html>";
window.open("javascript:opener.globalHTML","myPopu p",
"width=400,height=250, align=middle").focus();

}

- Hide quoted text -
- Show quoted text -

Feb 21 '06 #1
0 1260

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

Similar topics

0
by: jen | last post by:
Hi, I am working on a web application and have one form1.aspx page with a Datagrid in it. When user click the edit button in the grid, it will popup a modal page (edit1.aspx) by using JavaScript...
6
by: Fred | last post by:
I have implemented a dialog box (an aspx page) using showModalDialog. Because the dialog needs to process postbacks, I have implemented it in a frameset. In the top of the framset page, I have...
1
by: Carlos Alejandro Pérez | last post by:
hi I need to perform this sequence: - a webform A calls another webform B. Webform B should be a modal one - when data is entered in webform B, the user chooses close window - the data must be...
1
by: NRM | last post by:
Hi, I have a web application which has a page. From that page I need to show a modal dialog to capture some information. The page displayed in the modal window has Ok and Cancel buttons,...
5
by: knowdotnet | last post by:
Hi all, Which is the best way to return a value back to the web page from a pop up page? I have a asp.net web application which opens a popup page on a link button click. The Link button is...
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: Ralf | last post by:
Here is my scenerio and what I am doing. I am open to other ways of doing this is it makes sense. I have a cell withing a row within a datagrid. When this cell is clicked (its a date field), I...
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: charithstudy | last post by:
Hi All, In ASP.NET , I am using window.showModalDialog method to open a modal window. But when I try to do some processing in the modal window, it opens up another window. Like i have to...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.