473,786 Members | 2,765 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 1443
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*********@ho tmail.com> wrote in message
news:z8qwb.2224 87$ao4.802883@a ttbi_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
5943
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 contains: <?php $_SESSION = ""; $_SESSION = "";
1
7789
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: ---------------------------------------------------------------------------- <?php ini_set("session.use_cookies", "off"); ini_set("session.use_trans_sid", "on"); session_start(); $_SESSION = ""; $_SESSION = ""; echo "<form method='POST' action='login.php'>
12
1472
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. I assign values to two variables to assign the width and height. (my_width and my_height). I have a Form button which is clicked on agreeing to the disclaimers. On clicking the form button I want to direct the user (open a new window) to a...
7
2619
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 same time so that they don't have to login again. Specifically, I have two webservers in the same domain. When I have a user go to Webserver A (which uses basic authentication) I programmatically create either a user credential or impersonate...
1
2174
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 captured and processed by webform A, if possible, *without* clicking on a button to force this. I know I should use IFrames. Can any1 here give me a clue regarding this? Can the application object be used to fire events automatically in webform A...
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 on the parent - is this possible ? ( my main parent window is starting to get quite cluttered) cheers mark
4
8165
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 via window.open 3. myFunction() submits the main page's form via document.form.submit() 5. User closes popup window and clicks browser's Back button to return to form entry page 6. All the form data that the user had filled out is now blank...
0
2875
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 window includes a button: <INPUT TYPE=SUBMIT VALUE="Test SQL" OnClick="javascript:openWin3('/cgi- bin/eisweb.exe? uni=67BD&action=TestSQL&viewname=EISWEB_TESTSQL.SQL&forceregen=true&sql='+savechanges.sql.value);return false;">
0
9496
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10164
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9961
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7512
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6745
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4066
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 we have to send another system
2
3669
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.