473,382 Members | 1,375 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,382 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 1266

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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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...

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.