email the contents of the contentplaceholder in a masterpage

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mrmanju_2007@yahoo.co.in

    email the contents of the contentplaceholder in a masterpage

    I am building a website using asp.net and c#. I am using the
    masterpage concept. I have to implement a feature where I have to send
    all the contents of the contentplacehol der thru email. I know how to
    send the mail but i'm not able to get the contents which i need to
    send. Can anyone please give some tips as to how to go about this
    asap.
    Thanks in advance........ .
  • Munna

    #2
    Re: email the contents of the contentplacehol der in a masterpage

    Hi

    Check it out

    private string renderControl(C ontrol ctrl)
    {
    System.Text.Str ingBuilder sb = new System.Text.Str ingBuilder();
    System.IO.Strin gWriter tw = new System.IO.Strin gWriter(sb);
    System.Web.UI.H tmlTextWriter hw = new
    System.Web.UI.H tmlTextWriter(t w);
    ctrl.RenderCont rol(hw);
    return sb.ToString();
    }

    reference: http://www.velocityreviews.com/forum...ercontrol.html


    try to fit in your scenario

    Best of luck

    Munna

    Comment

    Working...