Thavarajah
Top achievements
Rank 1
Thavarajah
asked on 18 Oct 2010, 04:42 AM
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.
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.
4 Answers, 1 is accepted
0
Accepted
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:
Then in the single thread control - you can obtain whatever is in the threadId from the Ruquest.QueryString collection:
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.
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.
0
Thavarajah
Top achievements
Rank 1
answered on 08 Nov 2010, 02:51 AM
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
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
0
Hi Thavarajah,
We sent a reply to you in this post you opened.
Kind regards,
Ivan Dimitrov
the Telerik team
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
0
Thavarajah
Top achievements
Rank 1
answered on 08 Nov 2010, 10:58 AM
Yes Thanks you.