YAFLogo

saedabaid
  • saedabaid
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
12 years ago
i want to diaply post according to the querystring,

simply i dragged the DisplayPost control and dropped it in my page

like this

this error shown

Object reference not set to an instance of an object.

then what can i do ???

Sponsor
saedabaid
  • saedabaid
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
12 years ago
Hi,please help me quickly,

i want to display post according to the query string

the problem what can i do after dragging and drop the yaf control like this

how to make it to display the topics related to query string

this problem show when i run it with out any tinh like the above code

Object reference not set to an instance of an object.

saedabaid
  • saedabaid
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
12 years ago
you see this url page

http://forum.yetanotherforum.net/yaf_postst 14014_please-Help-me---i-have-asroius-problem-how-can-i-solve-it.aspx

for example you show all the topics realted to 14014 and when i wanna to reply

http://forum.yetanotherforum.net/yaf_postmessage.aspx ?t=14014&f=37

i want like this in my page ?

daveburke
12 years ago
This is how the messages you referred to are displayed on the Post Message page and similarly in other locations like on Member Profile pages.


<YAF:LastPosts ID="LastPosts1" runat="server" Visible="false" />
<div id="DivSmartScroller">
	<YAF:SmartScroller ID="SmartScroller1" runat="server" />
</div>

So you want to look at the LastPosts control, or create a custom version of one for your needs.

Good luck,

Dave

saedabaid
  • saedabaid
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
12 years ago
i think you dont got me ,i want to display posts like this current page according to the query string

the lastpost control after dragging it,it didnt show any thing except the scrollbar,

plz can you show me exacty how to do this ?

squirrel
12 years ago
Additionally, you have created multiple topics in multiple forums regarding the same issue. I would ask that you stick to one post regarding your issue - this will better help others keep your answers in one place.

Regarding your issue - if you are trying to access posts through the querystring, and getting object errors, you most likely don't have all your references in place. You will need the source code to YAF (downloadable via the [url="http://yafnet.codeplex.com"]CodePlex repository[/url]). I would start by going through the code in posts.ascx, posts.ascx.cs, and so on. That file is what renders the post listing for a thread. Unless you are trying to display YAF code in custom pages, why can't you just use the existing YAF pages and send the URL to them as YAF does?


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend