473,462 Members | 1,243 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Dynamically created page communicating with other pages

Hi there,

I want to write a function which will dynamicly create a page - this page
will be a popup page and will convey input back to the page which created
it. Is possible and how should I go about it? Below is the beginings of the
function to create the page, am I barking up the right tree?

private Page CreateDownloadPopupPage()

{

Page aspxDownloadPopupPage;

aspxDownloadPopupPage = new Page();

// Add Header

aspxDownloadPopupPage.Controls.AddAt( 0, new LiteralControl( @"

<html>

<head>

<title> Add Download </title>

</head>

<body>

") );
//Add Form And Contents

HtmlForm frmDownloadPopup = new HtmlForm();

Button btnCancel = new Button();

Button btnOk = new Button();

btnCancel.Text = "Cancel";

btnOk.Text = "Ok";

btnOk.Click += new EventHandler(btnOk_Click);

btnCancel.Click +=new EventHandler(btnCancel_Click);

HtmlInputFile flPopupDownload = new HtmlInputFile();
frmDownloadPopup.Controls.Add(flPopupDownload);

frmDownloadPopup.Controls.Add(btnCancel);

frmDownloadPopup.Controls.Add(btnOk);

aspxDownloadPopupPage.Controls.Add( frmDownloadPopup );

aspxDownloadPopupPage.Controls.Add( new LiteralControl( @"

</body>

</html>

"));

return aspxDownloadPopupPage;

}


Nov 19 '05 #1
0 834

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

Similar topics

9
by: netasp | last post by:
hi all, how can I populate one aspx form when page is loading based on page ID? for example: loading page A (to search for VB code) would display labels and texboxes, dropdown lists all related...
16
by: flip2flik | last post by:
Hi. I am using visual web developer express edition and I am using vb.net as the programming language. I want to create a new aspx file on a button click. I will have a template that the new...
0
by: robgallen | last post by:
I have 2 user controls within a master page, and I would like one of them to call a function in the other. All the examples I have seen involve a page communicating with the Master page, or with...
0
by: Syoam4ka | last post by:
My project is about jewellery. I have devided my jewelery into main types, which each one of them has sub types, and each one those sub types has the jewellery. I have a tabcontainer. It includes...
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,...
1
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
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.