Showing single forum/Thread

5 posts, 1 answers
  1. Thavarajah
    Thavarajah avatar
    4 posts
    Member since:
    Oct 2010

    Posted 17 Oct 2010 Link to this post

    Hi,

    I want to show single Forum/Thread in a page upon a user click by passing ForumId/ThreadId..

    How I can do it with a user controls.

    Please Help.

    Thanks.
  2. Answer
    Pavel
    Admin
    Pavel avatar
    3 posts

    Posted 19 Oct 2010 Link to this post

    Hello Thavarajah,

    Can't you simply pass the id in the query string from the page that lists all the threads and then simply take it from there in the user control that will be showing the single thread?

    For example in the first page you will have something like:
    <a href="ShowSingleForumThread?threadId=1">Thread 1</a>


    Then in the single thread control - you can obtain whatever is in the threadId from the Ruquest.QueryString collection:

    int threadId = 0;
    if (int.Parse(Request.QueryString["threadId"], out threadId)
    {
       // Get and load your thread
    }

    If I couldn't get the question correctly, please do not hesitate to write back so I can further help you!

    Kind regards,
    Pavel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Thavarajah
    Thavarajah avatar
    4 posts
    Member since:
    Oct 2010

    Posted 07 Nov 2010 Link to this post

    Thanks for ur help..

    It helped me a lot.

    I have an another question. I'm trying to customize sitefinity's SingleThread.ascx for my requirement. I need to make this in such a way that user can enter comments on each post for threads(like in Facebook).  with the existing feature I can add a comment for post but it tie with the original post and add the commented post as new post for the thread. I do not want this.

    Any help appreciated.

    Thanks
  4. Ivan Dimitrov
    Admin
    Ivan Dimitrov avatar
    78 posts

    Posted 08 Nov 2010 Link to this post

    Hi Thavarajah,

    We sent a reply to you in this post you opened.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Thavarajah
    Thavarajah avatar
    4 posts
    Member since:
    Oct 2010

    Posted 08 Nov 2010 Link to this post

    Yes Thanks you.
Back to Top