Save Aspx Page As .mht (Web Archive)
Mar 5, 2010Is it possible to give the user the option (on a button click) to save the current aspx page as a web archive?
View 6 RepliesIs it possible to give the user the option (on a button click) to save the current aspx page as a web archive?
View 6 RepliesI want to convert .aspx page content to .JPG image means like we take screen shot of page and save as image but i want whole page should save as image and based on that i want to generate PDF for that Page.
View 3 RepliesI have a requirement where the customer wants to save their web page into MS Word. Can someone show how I can save the page they are on, which they want to save into MS Word?
View 1 RepliesI saved aspx page as html it worked in my local machine but after published on the server its showing an error that "the access to the path is denied"... I tried giving access permission then also it doesn't work.. or else is there any other way to save the page in C# asp.net?...
string url=HttpContext.Current.Request.Url.AbsoluteUri;
string sHtml="";
HttpWebRequest request;
HttpWebResponse response=null;
Stream stream=null;
request=HttpWebRequest)WebRequest.Create(url);
response=(HttpWebResponse)request.GetResponse();
stream=response.GetResponseStream();
StreamReader sr=new StreamReader(stream,System.Text.Encoding.Default);
sHtml=sr.ReadToEnd();
string path=Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
string textfilename=TextBox1.Text;
string getpath=path+"\"+textfilename+".html";
File.WriteAllText(getpath,sHtml);
if(stream!=null)stream.Close();
if(response!=null)response.Close();
how to download the aspx page as a html page. i have used download code that downloads me the aspx page as html. but i when open the file saved in my desktop it is showing the format as <@page directive.....> and oly<% %> <% %> <% %> <% %> <% %> <% %>
this tags are coming. how should i resolve this problem and get the page download / saved in propr html format.
i have a aspx page which is giving me some customer details in web browser. i need to save the web page as a html in desktop.
In my website I have a search page.After clicking on the search button,in the search page,the navigation goes to the result page.
On clicking back button when the user again comes to the search page,the search query is sometimes lost and sometimes saved.
The query is saved if the user goes back immediatly while the query is lost if the user goes back after 10-15 minutes.
I need to keep the search query for a long time ,say 30 minutes.
Using C#
How can i save a Div (tabel) in .aspx page as a Pic (jpeg or anything) ?
How can I save a copy of my current ASPX page (both in memory or and in a temp folder) so that I may render that page later using HtmlTextWriter?
View 3 Replieshow to save current page as a html page on button click. My page contains only labels which I fill on page load event.
I am using the code below for this, but it's not saving (in HTML) all of the values that I see when my page is loaded (I think it converts before the values get loaded on the page).
[Code]....
i convert my webpage into pdf file in vb.net
i want to save that pdf file in a specific folder in any drive (C: or D:)
how can i give a path in the below coding
Response.Buffer =True
Response.ContentType ="application/pdf"
Response.AddHeader("content-disposition", String.Format("attachment; filename={0}.pdf", Me.psno.Text))
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Dim sw AsNew StringWriter()
[Code].......
How I convert aspx page to pdf file with images.
View 1 RepliesI am creating a web user control to display News Archive to display News. I am displaying it like this:
Year
Months
eg 2009
Jan
Feb
2010
Jan
Feb
This i had done. My problem is that initially I want to display only Years. And when one click on Year, corresponding Months should display.
i want to write aspx page html from aspx.cs page on page load..
i hav already used div.innerHtml...
i want to write below code in aspx page from aspx.cs page
[code]....
I am developing a web application for daily news service but can't understand how to make a news archive system so that I can submit new news everyday and then later can view news for selected date. For a reference site visit: [URL] I am Using VS 2008, C#
View 5 RepliesI am developing a new project to list files and directories under an specified location on disk. I use normal methods like Directory.GetFiles() to achieve this task but the amount of files is getting very big (> 300000) and the site is becoming terrible slow.
I worked with Index server with previous versions of Asp.Net but I was wondering if there is a new way for my website running Asp.Net 4.0.
Also I heard something about Index Server is obsolete to achive file listings and search. Is there any new alternative?
I have been looking into using the Entity Framework for our project, but so far keep coming up a number of limitations trying to fit it to the way our databases are structured. Right now we are coding directly to the database through a MySQL connector, so we have full flexibility to do anything possible that SQL can handle. So the first issue I have is that I need the ability to select a different table for an Entity set at runtime, as we have some tables that have suffixes on them based on the 'brand' presented to the user (ie: shopping carts, config variables etc). I found this project on Codeplex that looks like it will allow me to easily solve that problem:[URL]
However I have another problem I need to solve. Our main database is actually re-factored into the core working set database (6 months of data), and archive databases. There is one archive database per year, where orders and other interesting stuff is archived away to get them out of the working set which keeps the database table sizes and server load down. However the problem is, every so often there are valid reasons to dip into the archive tables to pull stuff out and deal with data in the archive tables (to
refund a customer perhaps past 6 months, or to mark an order as fraud 8 months later etc, or just to query sales history for reporting). For our normal code we have structured some smart SQL pre-processing logic that allows us to find stuff across the archives and join it to the primary database. The result is a single query that returns data from either the working set, or any of the archives all at once (and can join stuff to items still in the working set, such as currently active products etc).
I have struggled to determine if there is even any way to represent that kind of thing with the Entity Framework? The schema of the archive databases is identical to the schema of the primary database, except that it only had a limited selection of tables in it (just stuff that needs to be archived). So how can we associate the main database schema with the archive tables, but more importantly be able to run a query across them all? Should I just write a separate schema for each individual archive database (or perhaps I should give up on archiving stuff by year, and just stick all the archives in one DB?)? But if I do that, is there any way in Entity Framework to join across to tables in a different database? Or for the archive database schema, to include references to tables in the main working set database?
i want to download selected file in a zip and it work but problem is it include all folder and i want add only one folder which is the name of that movie.
i have used the code
protected void btnDownload_Click(object sender, EventArgs e) { using (ZipFile zip = new ZipFile()) { foreach (GridViewRow gvrow in GridView1.Rows) { CheckBox chk = (CheckBox)gvrow.FindControl("chkSelect"); if (chk.Checked) {
string filePath = Server.MapPath(gvrow.Cells[2].Text); zip.AddFile(filePath); } } Response.Clear(); Random r = new Random(); Response.AddHeader("content-disposition", "filename=" + "download" + r.Next(100, 1000).ToString() + ".zip"); // Response.AddHeader("Content-Disposition", "attachment; filename=DownloadedFile.zip"); Response.ContentType = "application/zip"; zip.Save(Response.OutputStream); Response.End(); }
and in the zip has all folder whatever has in my project.i want only files inside zip and don't want any folder .
I have a folder on my web server that has hundreds of mp3 files in it. I would like to provide the option for a user to download a zipped archive of every mp3 in the directory from a web page.
I want to compress the files programmatically only when needed. Because the zip file will be quite large, I am thinking that I will need to send the zip file to the response stream as it is being zipped, for performance reasons.
In that they are displaying gmail functionality in the widget. It shows in the dropdown select all , deselect all , mark selected as read , mark selected as unread , delete selected. This functionality is updated in gmail via c#.net.If i select delete selected the mail is selected in gmail via c# , i need this code, and also remaining mark selected as read , mark selected as unread , archive also i need for my project. how can i do this via in c# and its updated in gmail.I also want same things with in the widgets. how can i do this? Is there any coding for this or any third party tool.
View 4 Repliesis it possible to place an aspx page inside the update panel of another aspx page? if possible let me know the way to do that.
View 1 RepliesHow can I call a public property declared on a ASPX page from a different ASPX Page? Is that possible? It is a website project. How can I get/call this property from a different aspx page? I have attempted this from the other page, but it is not recognizing the partial class: private Test_Default _test; It does not recognize the "Test_Default"
I.E.
[code]....
what i wanna do is:
there is an dropDownList in the master page with 4~5 items.
i've prepared 4~5 sub-page related to the above item. when the dropDownList.ItemChanged, the subpage content will show their own page.
use html iframe to include another aspx page.
in my cs code:
[Code]....
but when i change the item in the dropdownlist, the error pops up:
[URL]
can we save or update record in the table from the same page ?
View 2 RepliesI have a project in asp.net 4.0 IIS Win 2003 Server.It's working perfectly, but after a while, certain pages are asking to save, instead of open.Ai closing the browser and open the system again, with this back to work, but it's the same problem after a while accessing.
View 4 RepliesHow we can open a new aspx page in update panel embedded on current page. I want to open that page on some ajax event...
View 7 Replies