How to render the control server side?

2 posts, 0 answers
  1. Michael
    Michael avatar
    1 posts
    Member since:
    Jan 2007

    Posted 28 Jan 2010 Link to this post

    I am having an issue rendering this control on the server side. I did not see any examples to help me do this as well. Can someone help?

    Here are the two methods I have tried which do not work...

    StringBuilder htmlString = new StringBuilder(); // this will hold the string 
    StringWriter stringWriter = new StringWriter(htmlString); 
    HtmlTextWriter htmlWriter = new HtmlTextWriter(stringWriter); 
    ratingControlText = stringWriter.ToString(); 

    using(System.IO.MemoryStream msOur = new System.IO.MemoryStream())  
        using(System.IO.StreamWriter swOur = new System.IO.StreamWriter(msOur))  
            HtmlTextWriter ourWriter = new HtmlTextWriter(swOur); 
            using (System.IO.StreamReader oReader = new System.IO.StreamReader(msOur)) 
                ratingControlText = oReader.ReadToEnd(); 

    Please help as I need this working yesterday!

  2. Tsvetie
    Tsvetie avatar
    1517 posts

    Posted 28 Jan 2010 Link to this post

    Hello Michael,
    I have attached a simple test page that demonstrates how you can render the rating control server-side. In case this is not what you are trying to achieve, please provide additional details on your requirements.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top