473,508 Members | 2,143 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Passing asp.net form data to a new browser window.

Hi all,

Is there any way to pass a large amount of data from an asp.net form to
another browser window opened through client script ? (i.e without using
sessions ).

Here is my scenario.I've a datagrid in a user control on my webform. when I
click a button on my webform, it should display the contents of datagrid (
content type = excel ) in a new browser window.
Right now I'm able to get the contents of datagrid into a HTML string and
render this in the new browser window using a session variable. But I'm
looking to find out if there is any better ways of doing this.
( Re-rendering the user control/datagrid in the new browser window is not a
viable option for me, as the datagrid is typically populated by custom
events raised from other user controls available only on the main form ).

Any thoughts ? Thanks in advance.

-Souri
Nov 18 '05 #1
1 1422
You'll have to do it using brute force if you want to use client side
scripts. window.open will return a reference to the new window that you
create, and you can use the DOM to pump in the objects or HTML that you want
displayed.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Souri Challa" <so*********@hotmail.com> wrote in message
news:z8qwb.222487$ao4.802883@attbi_s51...
Hi all,

Is there any way to pass a large amount of data from an asp.net form to
another browser window opened through client script ? (i.e without using
sessions ).

Here is my scenario.I've a datagrid in a user control on my webform. when I click a button on my webform, it should display the contents of datagrid (
content type = excel ) in a new browser window.
Right now I'm able to get the contents of datagrid into a HTML string and
render this in the new browser window using a session variable. But I'm
looking to find out if there is any better ways of doing this.
( Re-rendering the user control/datagrid in the new browser window is not a viable option for me, as the datagrid is typically populated by custom
events raised from other user controls available only on the main form ).

Any thoughts ? Thanks in advance.

-Souri

Nov 18 '05 #2

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

Similar topics

5
5924
by: Paul | last post by:
I want to use sessions to cover myself in case the user switches off cookies so I am passing the session ID manually through a hidden input field. This is what I have so far. index.php page...
1
7769
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
12
1432
by: Mal Ice | last post by:
I am creating an initial index.htm page on which I show some disclaimers and introduction information. In the head section I have Javascript which determines the screen resolution of the client....
7
2597
by: Wade Wegner | last post by:
Hello, I have been desperately trying to programmatically authenticate a windows user, create their credentials, and then redirect them to a different server while passing the credentials at the...
1
2153
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
317
by: mark | last post by:
I have a main form, and i have another form i need to call on a button press, then id like the result of the child form to pass data back to the parent - without losing any data previously entered...
4
8144
by: jwlum | last post by:
I have the following problem under Internet Explorer only: 1. User fills out form data (myform.php) and clicks a button that fires myFunction() 2. myFunction() spawns a "hello, world" popup page...
0
2852
by: korggrok | last post by:
I have a dialog window that pops up from the main app browser window. The window contains a form (name="savechanges") that includes an input (name="sql") that is a textarea input. The dialog...
0
7225
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
7124
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
7326
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
7498
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...
1
5053
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
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3195
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
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1558
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.