iam facing some issues while extracting html content.
i have created a page which is inheriting a master page having 2 placeholders.
1 placeholder i have image and text and in 2 placeholder i have usercontrol which has a button. on click of button iam extracting html content of image and text from 1placeholder
this is the code iam using for extracting html
protected void btn_ExtractHtml_Click(object sender, EventArgs
Control c = new Control();
ContentPlaceHolder cp = (ContentPlaceHolder)this.Page.Master.FindControl("ContentPlaceHolder1");
string strhtml = renderControl(cp);
public string renderControl(Control cntr)
StringBuilder sb = new StringBuilder();
StringWriter sw = new StringWriter(sb);
HtmlTextWriter hw = new HtmlTextWriter(sw);
iam geeting only Tags without content as shown below
i need content of this tags can anyone help me on this.
i have attached masterpage and webpage.