473,587 Members | 2,548 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to save the to be generated HTML page onto the client's disk in ASP .NET 2.0?

52 New Member
Hi All,
My question is as follows:

I have a text box and two links.Let the two links be - Show and Save .

On clicking the Show , a web page is generated by fetching some data from database according to the input in the textbox and the web page is displayed to the user.

Now on clicking Save also, with the same input to the textbox, the same set of data will be fetched from the database, but in this case I do not want the web page generated to be displayed to the user, but want a Save dialog box to appear, which the user uses to select any location on his/her system to save the web page generated as HTML format.
How can I achieve this i.e. how can I save a page which will be generated on clicking the link without first displaying it to the user.

I have seen code where there is a button in the second web page which can be clicked to save the same page, but I not getting any thing to save the page which will be generated and saved directly.

I am using ASP .NET with VB .

Please provide my some solution.
Thanks
Pawan
Jan 9 '08 #1
2 1878
nateraaaa
663 Recognized Expert Contributor
Why must you save the data in an html file? If all you want is the data you could create an xml file and save the data to that file. If you require the web page as well as the data you could do a screen scrape and save the web page as an image.

Nathan
Jan 9 '08 #2
ppuniversal
52 New Member
Why must you save the data in an html file? If all you want is the data you could create an xml file and save the data to that file. If you require the web page as well as the data you could do a screen scrape and save the web page as an image.

Nathan

Yes, I can store it as XML, and that would be a better idea also. But my assignment wants me to store it in HTML format.
Jan 10 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

14
2665
by: edykstra | last post by:
Hello, If you point your browser to this page, http://prdownloads.sourceforge.net/vnc-tight/tightvnc-1.2.9_x86_viewer.zip?use_mirror=umn the server sends you the HTML page, and very soon afterwards, you are prompted to do a 'Save-As' for a file to download. How do they do that without the classic "Headers already sent" error?
1
1880
by: lc | last post by:
Hi, Is there a way to save the client side opened asp page as a image file to the server side. That is take a screen shoot of the page and save it as a file preferrable html file or some image file and save it onto the server. Thanks.
10
2990
by: Martin Dale | last post by:
Dear all, Is there any way to activate the Save As command from Javascript. I would like to have a "Save as" button on a page which has been dynamically created (client side using document.writeln) so that the user can save a copy. I am working towards cross browser compatibility so any help for any browser would be good. I know I...
3
2506
by: pfemat | last post by:
Hi there, i am doing some heavy computations whose result i want to save to harddisk. the results are in an long array named screen and i thought of doing char *tmp = reinterpret_cast<char*>(screen); for (int i=0; i<nsize; i++) {
7
3689
by: joseph.inglis | last post by:
I have a web browser object on a form which I have set to edit mode and use the UCOMIConnectionPointContainer interface to hook in and catch events. All working sweetly. Except there are instances where i rewrite the Document.Content and the
2
39740
by: fmakopo | last post by:
I am trying to save html page using C# because i want to save the page on the server not on the client side. I can do that using Javascript the problem that i am having i want to save the page on the server.
6
1972
by: amjad | last post by:
Hi i have dataset that i want to save to local disk as xml file. i dont know how to save it to local disk instead of server thanks
4
10235
by: Dale | last post by:
I am creating GIF images with transparent backgrounds on-the-fly for a web app and rendering them by using System.Drawing.Image.Save(Response.OutputStream, ImageType.GIF). I am confident that the transparency is working properly because if I save the created image to the local hard disk and then view it in a web page or an image editor, the...
0
7920
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7849
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...
0
8215
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8347
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...
1
7973
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5394
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...
0
3844
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...
1
2358
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
0
1189
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.