YAFLogo

Posted by: saedabaid - Sunday, 29 January 2012 13:01:20
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 [h]Object reference not set to an instance of an object. [/h] then what can i do ???

Posted by: saedabaid - Sunday, 29 January 2012 13:12:52
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 [b]Object reference not set to an instance of an object. [/b]

Posted by: saedabaid - Sunday, 29 January 2012 14:49:27
you see this url page http://forum.yetanotherforum.net/yaf_postst[b]14014[/b]_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 it redirects to me to http://forum.yetanotherforum.net/yaf_postmessage.aspx[b]?t=14014&f=37[/b] i want like this in my page ?

Posted by: daveburke - Sunday, 29 January 2012 15:22:08
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. [code=xml]
[/code] So you want to look at the LastPosts control, or create a custom version of one for your needs. Good luck, Dave

Posted by: saedabaid - Sunday, 29 January 2012 15:38:20
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 ?

Posted by: squirrel - Sunday, 29 January 2012 23:28:42
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?