Web Forms :: Mailing The Contents Of A Webpage?

Jan 13, 2011

For a project I am working on, I need to implement a button that would send the contents of a webpage to an e-mail address that could be specified.

Normally I would do this by querying the actual contents from a database, and then generating a custom layout for the mail.

In this case, though, I am pressed for time and I can't spend a lot of time on creating x amount of different layouts (different page types) for the mails to be sent, so I started looking into a html scraper instead, such as WebClientand/or HttpWebRequest.

There are however a couple of things I would need to take into account:

1) I am not entirely sure if it's a good idea to let the website actually "stream" data over the net by going to the request's url.Doing it over localhost isn't a possibility either, as the actual "site" depends on the hostname used.

2) I would like to use custom css, more specific the print.css which was already made and would look good enough in a mail.

If anyone knows how I would best go about getting the generated html in the layout that I require, while taking into account the few notes that I've made, feel free to say so.If you are completely sure that just generating the new html for the mail at runtime even though it may take more time to design is the way to go, by all means do say so as well.

View 3 Replies


Similar Messages:

Web Forms :: Rendering Usercontrols - Send The Contents Of A Webpage To People Who Enter Their Email Address Somewhere

Feb 2, 2011

For a certain project I need to be able to send the contents of a webpage to people who enter their e-mail address somewhere. For this I've scoured the internet and came upon a couple of possible sollutions. The first would be to use a scraper which would just look up the webpage and then mail the html contents to someone. The problem with this is that internet html (and more importantly css) and mail html might be completely different things when you look at outlook. This also takes the entire masterpage with it, while I pretty much just want the inner content.

Second sollution was completely rebuilding the pages in my mail function, based on a few given parameters. Seeing as there's many different types of pages that need to be sent, this would take ages to do...

Last sollution I came upon was manually calling rendercontrol. This actually seemed like a viable way of doing this, but of course, things go wrong. The structure of the website is as follows: Masterpage includes default.aspx, default.aspx has a placeholder which gets filled with a control I manually load (loadcontrol(path)) based on what page I need. This control is the one I need. My way of trying to render this control to send through mail is the following: first, I create a page, then I'll load the user control and finally I use UC.RenderControl(writer)

This does give me the basic html lay-out, but it seems that the Page_Load isn't being called, causing none of my variables to actually be filled in. Is there any way I can cause the control to be rendered just as if it were rendered inside a page's lifecycle?

View 5 Replies

Javascript - Saving The Contents On A Webpage As .doc

Nov 8, 2010

I want to save the contents in a file as .doc.

I have 3 text box controls,2 combo box and HTMLeditor..i want to store the data entered in this controls onto a MSword.

How can i do this do.

View 3 Replies

Javascript - How To Share Contents Of A Webpage With Social Networks

Aug 29, 2010

I'm Looking for a free(or Open Source) Sharing Script to put it in my content pages(I do ASP.net). I want to allow my visitors to share contents(ex: articles) in social networks like Facebook or on-line bookmark services like google bookmarks.what's the best way to do that? i found JQUERY SHARING(you can see demo here) Plugin from the web. do you know any better choice!?

View 2 Replies

Display Contents In Webpage W/ Width Greater Than Screen Without Displaying Horizontal Scrollbars?

Jun 25, 2010

It'll be hard to explain, but here goes...I have a 3-col table that measures 1200px wide... the middle column measures 800px and includes all the contents, and both remaining rows measure 200px each and have "nice-to-display-but-optional" images (each has a 200px image).On a 1400px display, my table will display with no problems. On the other hand, if the screen is 1000px, then it'll display the scrollbars so it can fit the 1200px of contents.

How can I set the table (or any other html container) so that a 1000px screen only displays what fits on the screen without displaying the scrollbar?In this case, a 1000px would display the middle 800px column, and whatever fits on the sides (half of the 200px images). But the scrollbars would not be displayed, and the images would not be altered so that they fit in the remaining space.

View 2 Replies

Web Forms :: Mailing Concepts Using Outlook

Aug 16, 2010

steps to do send a mail using outlook in my c#.net page button click event .if i click the button automatically page should be attached and Toaddress also ...etc mainthing incase if the system does not contain outlook message sholud be displayed with the URL which gets outlook express free downloaded link.

View 1 Replies

Web Forms :: Mail Not Received From Mailing Module?

Sep 7, 2010

i am sending mail thr' asp.net using System.Net.Maili am not getting any error msg but nor am i getting the mailsi hae sent it to yahoo, gmail & rediff ids but mail is not recivedhow do i check out if there is any prblm on my end code or why its not been senti have used Catch smtpExc As System.Net.Mail.SmtpException for checking out any exeption

View 7 Replies

E-mailing Forms: Adding HTML Markup To Code-behind?

Apr 13, 2010

I'm trying to add some basic HTML markup to my code-behind, just a H1 and a few breaks separating strings in the message.Body, but can't seem to get it going without errors.

[Code]....

Probably a straightforward thing, or not intended usage at all,

View 4 Replies

Forms Data Controls :: Mailing Gridview Content Using C# And VS 2008 With Access Database

Feb 8, 2010

I am using C# and VS 2008 with access database. I have a nested gridview (2) with two access database tables. Date1 (takes System date) is the primary key in table1 and also present in table2 as foreign key. User data is stored in gridview 2 w.r.t to the date in gridview1. What i am tryin to do is to mail todays date (System date) data of Gridview 1 and data corresponding to it in Gridview 2 to a specific mail id.

View 8 Replies

Web Forms :: C# Get Contents Of Textbox And Set A Label To Those Contents?

Jan 17, 2011

i want to get the contents of a textbox and set them to a asp label for output, we can cause a postback to if that makes it easier, so far i did this and it comes up trumps

View 11 Replies

Configuration :: Mailing Not Working On Webserver?

Nov 17, 2010

the codes given below only working on localhost but not on web server.

[Code]....

View 15 Replies

Print Mailing Labels Format In SilverLight Application?

Feb 22, 2011

I am working on the silverlight application for printing mailing labels, can any one say how to print mailing labels format in silverlight application and also A4 size format.

View 1 Replies

How To Extract The Contents Of The Pdf File And Show The Contents In Web Page

Feb 22, 2010

I have a pdf file, how can I extract the contents of the pdf file and show the contents in one of my web page

View 4 Replies

Web Forms :: Whenever Click On Any Button On Webpage, The Request Goes Through, But Nothing Show Up On The Webpage?

Dec 17, 2010

I am working on a financial portal and I am having a problem..I don;t know what to call it so i mentioned it as an 'unknown to me' problem..I have a webpage..whenever I click on any button on my webpage, the request goes through..but nothing show up on the webpage..then If I click on another link and then again come back to previous link,then only I see the results of button_click..

e.g.

I have a currency conversion and investment form..so after filling up the form in following way and if I click on "INVEST" then nothing shows up..

so now if i click on any other link and go back to 'buy currency' link I see the result as 'investment successful'

View 3 Replies

Web Forms :: Displaying One Webpage Content In Another Webpage?

Apr 24, 2010

I developed an application form which includes some textboxes for input. When the user click on the button the following tasks has to be done.

1) If page is valid all data should be stored in database

2) A new webform should appear on the same window and the some content of the application form should be displayed in it.

3) When clicking on browser back button it should not post back to previous page.....

I did the first task..and i don't know the code for the remaining tasks. Here is some information

.aspx button control code

[code]....

I opened new webform by using Response.Redirect ("submit.aspx"). Where submit.aspx is the form to be opened after data stored upon the button click in application form.

View 9 Replies

Php - How To Embed The Result Of A Webpage Into Another Webpage On Another Website

Mar 23, 2010

I would like to allow users to call my ruby on rails app as a service which returns a 'div' with html content in it, and embed that div into their app (which will not be a rails application).

For example, assume someone has their own php website that has a header/footer template that gets rendered, and a content area of the page that they need to fill based on some html I generate in my rails app. I would like to allow them, from php, to call to my website, get the 'div' I generate, and embed that as html in their php page.

What I'm trying to do is host a service on my site that returns some html content, but actually show that content as part of another site, so that the end user only sees the other site and never really knows about mine.

Also, I can use javascript on the client to do this if that is the only way, but I would prefer the php app to handle this at the server if possible so the client gets the html embedded from the original server and it looks like it all was generated by the php script that generated the entire page. I also want to avoid using an iframe.

View 3 Replies

Security :: Get URL Of The Webpage That Referred The Request To Webpage?

Aug 17, 2010

am trying to get URL of the page that referred the request to my page, i tried the "

[Code]....

[Code]....

[Code]....

[Code]....

View 5 Replies

Web Forms :: Fetching Contents From Url?

Jun 12, 2010

1.) Reading all the contents of a page against a url.

2.) Convert all these contents into a pdf file.

View 2 Replies

Web Forms :: Aligning The Panel Contents?

Jan 22, 2010

I have three panels.Right,Middle and Left. controls in the panel right and left are dynamically loaded. the middle panel is just a separator ,that contains only text saying "else" which should come exactly in the middle of two panels.

how to set the middle panel ?

since right and left panels are dynamically loaded with controls , it is very difficult to set the text of the middle column.

View 1 Replies

Web Forms :: Export Gridview Contents To Pdf

Apr 12, 2010

My requirement is to convert gridview contents to pdf. My code is working fine and I have been prompted with option to save or open the pdf.But when I try to open the pdf I get an error

"Adobe reader could not open filename.pdf because it is either not a supported a file type or because the file has been damaged(for eg it was sent as an email atatchment and wasn't correctly decoded").Please tell em what is wrong. Please find my code

protected void export_Click(object sender, EventArgs e)

{ [code]....

View 6 Replies

Web Forms :: Email Contents Of Page?

Jan 11, 2010

i have a requirement were the user wants to click a button and when clicked it will export whats in the web page ie tables etc and paste that in the contents of the body of an email.

View 2 Replies

Web Forms :: Get Contents Of DIV On Server Side?

May 7, 2015

i  want  get  html  inside  div

<div id="ss" ></div>

View 1 Replies

Web Forms :: Print Contents Of Web Page

Nov 2, 2012

I want put print Icon In mypage that when users click on it they can print  that page.How I can do it?

View 1 Replies

Web Forms :: Create A Webpage That Allow User To Create A Webpage

Nov 9, 2010

I want to create a web page that will allow user to create a web page. The admin user should be able to give access rights to the controls which the user will place on his web page.

View 3 Replies

Web Forms :: Contents Changed - New IE Window Opens?

Sep 2, 2010

I am implementing a web form, and when a checkbox is clicked, contents of the form are changed (i.e. additional checkboxes are being selected), and webform is refreshed to show the new contents. however, instead of displaying new contents within the original IE window, a new IE window is openned with new contents, and the old window remains there without any content update. i did not request for window.open or provide a _blank to specifically indicate a redirect should go to a new IE window. I just want the original IE window being refreshed to reflect the content changes. i have worked with asp.net for years and i think that be default refresh of the webform to reflect new changes always stay in the same IE window and thus never pay attention on how to open or surppress a new IE window? i think it is some config, but don't know what config and where i should look for it.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved