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

Getting the user input in a separate popup browser...

Hello, in an ASP.NET page, when the user selects certain button, I would like
a small browser window to popup and ask user for some input. Once the user
enters the data and submits through a button, I would like that data to be
available to the aspx webpage.
What needs to be done, and is a small template available for it somewhere?

Thanks in advance
-Ravi
Nov 19 '05 #1
2 1528
Hi Ravi,

You can make use of Server.Execute method to achive your need.

Server.Execute("TargetPage.aspx",Writer).

The following example executes the aspx page "Login.aspx" on the server in
the current directory and receives the output from the page through the
StringWriter object writer. It writes the HTML stream received from writer to
the HTTP output stream.

StringWriter writer = new StringWriter();
Server.Execute("Login.aspx", writer);
Response.Write("<H3>Please Login:</H3><br>"+ writer.ToString());

Cheers,

Jerome. M
"Ravi J" wrote:
Hello, in an ASP.NET page, when the user selects certain button, I would like
a small browser window to popup and ask user for some input. Once the user
enters the data and submits through a button, I would like that data to be
available to the aspx webpage.
What needs to be done, and is a small template available for it somewhere?

Thanks in advance
-Ravi

Nov 19 '05 #2
Ravi,

This is a client-side task. You have to use javascript call
showModalDialog(...) to call the page for input. The page can pass entered
data back in returnValue property. The parent page will get data as a result
of showModalDialog call. After that, the data can be placed in a hidden text
input for transferring to server-side.

Eliyahu

"Ravi J" <Ra***@discussions.microsoft.com> wrote in message
news:37**********************************@microsof t.com...
Hello, in an ASP.NET page, when the user selects certain button, I would like a small browser window to popup and ask user for some input. Once the user
enters the data and submits through a button, I would like that data to be
available to the aspx webpage.
What needs to be done, and is a small template available for it somewhere?

Thanks in advance
-Ravi

Nov 19 '05 #3

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

Similar topics

14
by: Mark | last post by:
Hi, At the top of my php file I have got :- <body onblur="self.focus();"> so when I click off onto another window, my window comes back up in front which is perfect. The problem however, is...
7
by: szabelin | last post by:
Hi I want to pop up a little window (sort of a message box), so I call MessageBoxA function during postback, and I get "error on page" icon. What's the way to popup a new window? Thanks! ...
2
by: NWx | last post by:
Hi, I have the following question: I have an app that uses user login/logout to identify users When user logon, I register logon time in a session variable When user logoff using the logout...
1
by: Jorge Ponte | last post by:
hi I have a Web User Control (ascx) - lets call it "My_WUC" - in a Web form. In that WUC I want have a textbox and a button. I want to click on the button and open a popup (I use javascript for...
4
by: louise raisbeck | last post by:
I have this scenario (simplified) function addnewdata () { check for partial match already in db for information entered by user if (partialmatch succeeds) { open new window aspx page (using...
1
by: panche | last post by:
I'm developing a fairly simple user control that has two textboxes for date/time entry (a from date/time and a to date/time). One of my requirements is that there should be no button that sets...
12
by: mistral | last post by:
Can anybody tell me how to get source code of page in iframe? (popup window is clickable image). When I right click on this popup border to view source, i see just as follows <html> <head>...
6
by: sathyashrayan | last post by:
Dear Group, Please look at the following demo link. http://www.itsravi.com/demo/new_pms/admin/addproject.php
3
by: DrKen | last post by:
I need to have a user be able to click a link or button that brings up a popup window. When the user selects an item from the drop down list on the popup window (should I require only a click of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.