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();
 
Back
Top