saedabaid
  •  saedabaid
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
2012-01-29T12:01:20Z
i want to diaply post according to the querystring,
simply i dragged the DisplayPost control and dropped it in my page
like this
<uc6:DisplayPost ID="DisplayPost1" runat="server" />
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
2012-01-29T12:12:52Z
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

<uc6:DisplayPost ID="DisplayPost1" runat="server" />

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
2012-01-29T13:49:27Z
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
it redirects to me to http://forum.yetanotherf...net/yaf_postmessage.aspx ?t=14014&f=37

i want like this in my page ?
daveburke
2012-01-29T14:22:08Z
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
2012-01-29T14:38:20Z
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
2012-01-29T22:28:42Z
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 CodePlex repository ). 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 

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved