locked
Any one can give advice RRS feed

  • Question

  • User-1122356997 posted

    Am trying to develop a message board like the one in this site, and one can advice me how to make the front end where a user can make the post and others can reply to that post and so on. at the back end am using MS SQL+ LINQ

    My problem is how to render the posts what control, ...

    Thannsk in advance

    Saturday, June 5, 2010 10:47 AM

Answers

All replies

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, June 5, 2010 11:36 AM
  • User-1122356997 posted

    thanks for the advice, it seems that the Datalist is good chice for such implementation , I started using it , but now am facing problem of accessing a nested property "column " as am using LINQ to SQL where I get the childComments for the the parent comment, in debug mode in the code behind I can access but when i go for the

    <%# DataBinder.Eval(Container.DataItem, "comment1") %> this is the parent comment from the comment table


    <%# DataBinder.Eval(Container.DataItem, "Childcomment") %> from the reply table "dont work" it will not be recognized ?

    whie I can see it in debuging mode 

    any nice advice like the first one


    Thanks in advance


    Monday, June 7, 2010 8:05 AM
  • User1052258516 posted

    What is you Linq statement? 

    Monday, June 7, 2010 8:58 AM
  • User-1122356997 posted

    public static IQueryable<DataAccessLayer.Comment> GetComment_Replies()
        {
            LinksDataContext dc = new LinksDataContext();
            DataLoadOptions options = new DataLoadOptions();
            options.LoadWith<DataAccessLayer.Comment>(u => u.comments_Replies);
            dc.LoadOptions = options;


            return dc.Comments;
        }

    Monday, June 7, 2010 6:48 PM
  • User-1122356997 posted

    THis is my linq

    public static IQueryable<DataAccessLayer.Comment> GetComment_Replies()
        {
            LinksDataContext dc = new LinksDataContext();
            DataLoadOptions options = new DataLoadOptions();
            options.LoadWith<DataAccessLayer.Comment>(u => u.comments_Replies);
            dc.LoadOptions = options;


            return dc.Comments;
        }


    Monday, June 7, 2010 6:49 PM