Is there a way to load and execute a .aspx file (to render it inside a mail body)?

Discussion in 'ASP .Net' started by Henri, Dec 14, 2004.

  1. Henri

    Henri Guest

    I guess I could do that with an .ascx UserControl file using
    Page.LoadControl(), but as I want to render a complete page inside a mail
    body, loading an .aspx might be nicer...
    Any suggestion?

    Henri
    Henri, Dec 14, 2004
    #1
    1. Advertising

  2. You can use the WebRequest and MailMessage classes for this functionality.
    Here are a couple examples you could use for this:

    http://www.aspalliance.com/stevesmith/articles/dotnetemailwebsite.asp


    http://aspnet.4guysfromrolla.com/articles/091102-1.aspx

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    http://Steve.Orr.net



    "Henri" <> wrote in message
    news:O34Xz%...
    >I guess I could do that with an .ascx UserControl file using
    > Page.LoadControl(), but as I want to render a complete page inside a mail
    > body, loading an .aspx might be nicer...
    > Any suggestion?
    >
    > Henri
    >
    >
    >
    Steve C. Orr [MVP, MCSD], Dec 14, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. dude718
    Replies:
    3
    Views:
    530
    Srinivasa Reddy K Ganji
    Aug 1, 2003
  2. Henri
    Replies:
    0
    Views:
    352
    Henri
    Dec 11, 2004
  3. Henri
    Replies:
    1
    Views:
    120
  4. Savas Ates
    Replies:
    1
    Views:
    270
    Patrice
    Aug 17, 2004
  5. Replies:
    13
    Views:
    226
Loading...

Share This Page