HTMLSELECT

  • Thread starter Thread starter Alessandro
  • Start date Start date
A

Alessandro

Hi ,
there 's a way to get from an HTMLSELECT object
the related HTML text as a string?


Alessandro
 
You can do this using the RenderControl method:

StringWriter sw = new StringWriter();
HtmlTextWriter htw = new HtmlTextWriter(sw);
selectControl.RenderControl(htw);
string result = sw.ToString();
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top