Best Way To Attach Blog Post Comments?

Mar 15, 2011

I have a blog page that has 20 posts each page.I'm using Listview for displaying posts. If I want to display comments for each posts, what would be the best way? My database stracture is as follow

-blog (table)
-blogID, postContents (fields)
-blogComments (table)

-blogcommentID, blogID, comments (fields)

Since I have many comments for each posts, I don't think I can join table.Only thing I can think of is that I can use DataReader and loop through the results in Listview Databound events.What would be the best way to achieve this?

View 4 Replies


Similar Messages:

How To Post Comments In Blog Style

Mar 25, 2010

I am working on a project. I need to allow user to comment on pictures - like a blog. For example, if you like a picture, you post your comment on the pictures and say why you like. When the user type a comment in the text box, how do I put it under the pictures? Also, if two people were to post comments, how do I know where the first comment ends and where to start posting the second comments? Also, how do I know when the page is full and start a new page?

View 6 Replies

Social Networking :: Display Facebook Comments And Allow User To Post Comments To Wall

May 7, 2013

How user post comment on my website  using gmail ,fb,yahoo ,hotmail account ...

how to apply this.. [URL] ....

View 1 Replies

SQL Command For Recent Blog Comments

Jul 22, 2010

I have a BlogPost table by which i post blog on my website, this is the structure of BlogPost Table:

BlogPostID int Unchecked
LanguageID int Unchecked
BlogPostTitle nvarchar(200) Unchecked
BlogPostBody nvarchar(MAX) Unchecked
BlogPostAllowComments bit Unchecked
CreatedByID int Unchecked
CreatedOn datetime Unchecked
[code]...

View 13 Replies

Web Forms :: How To Display Comments On Blog

May 7, 2015

I want to display guest comments on web page so here is my asp source page : 

<form id="form1" runat="server">
<div>
<asp:TextBox ID="name" runat="server"></asp:TextBox>
<br />
<br />
<asp:TextBox ID="tb1" runat="server" Width="331px" Height="151px"></asp:TextBox>

[Code] ....

I am using Label to display comments so in Csharp coding to display Comments on web page where One Default Image should be display , Name  , Date , Comments .

View 1 Replies

How To Make The Blog Comments Posted By Users Safe

Mar 10, 2011

I'm in the process of creating a blog engine on my website. Nothing fancy. The user will register some basic information, including the comment itself that is the issue of this question.Inside the comment field, the user can write some text, but there are currently nothing stopping him from writing anything harmful there, that would mess up the page when rendering it with comments

View 2 Replies

Web Forms :: Article Blog Website With Category Comments

Sep 20, 2012

I have a following requirement:

1. Create a blog with content and images.

2. Category for blogs

3. Comments on each blog

4.  Monthly Archives, Recent Blogs and Recent comments. 

View 1 Replies

Forms Data Controls :: SQL Command For Blog Posts With Maximum Comments

Jul 23, 2010

I have a BlogPost table by which i post blog on my website, this is the structure of BlogPost Table:

BlogPostID int Unchecked
LanguageID int Unchecked
BlogPostTitle nvarchar(200) Unchecked
BlogPostBody nvarchar(MAX) Unchecked
BlogPostAllowComments bit Unchecked
CreatedByID int Unchecked
CreatedOn datetime Unchecked
[code]...

View 20 Replies

Write A Page Where User's Can Write A Blog Post And Publish It To The Blog?

Apr 2, 2010

I want to write a page where user's can write a blog post and publish it to the blog. I've downloaded blog engine .NET and looked at the code and I like the way they do it, but it's completely an overkill of what I need. What I need is only a title, author, date, and the blog post it self. I don't even want users to post comments or anything like that. My approach is to save all those blog post information into an xml and then when a page loads it loops around those xml files to show the blog post.

View 1 Replies

User Controls :: Implement User Comments Form For Blog Using XML?

May 7, 2015

how can i make a simple user comments form using xml. comments entered by the user should be saved in xml.

format of the form:

name: email:comments:

View 1 Replies

MVC :: Details & Comments Post On Same Page

Nov 11, 2010

I have a details page, which lists the selected Restaurant. I want to be able to add comments at the bottom and display them. I have managed to add comments but only on a different page, i am struggling to get both the datails and the Comment create on the same form. This is what i have:

Controller
[Code]....

View Model
[Code]....

View
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BestRestaurant.ViewModels.RestaurantDetailsViewModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
Details
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Details</h2>
<fieldset>
<legend>Fields</legend>
<div>R_ID</div>
<div><%: Model.Restaurant.R_ID%></div>
<div>R_Name</div>
<div><%: Model.Restaurant.R_Name %></div>....................

View 1 Replies

Develope A Post And Comments Template Like Facebook?

Aug 24, 2010

i want to develope desgin like facebook .where i have posts and comments will pick from the database that i inserted earlier.what will be the best possible way to do in the same template.

View 4 Replies

Controls :: Schedule And Post Comments To Facebook Wall

Sep 11, 2012

I can able to post now FB comment post from asp.net system but if i want to schedule some message from my sytem what can i do ? How can i store FB account ?

View 1 Replies

Social Networking :: Post Comments To Google Plus Wall From Web Application

Sep 5, 2012

I want to create one system in asp.net

I can post my Google +  wall and schedule it from my system also i can replay comment.

View 1 Replies

Editing Web.config Comments

Sep 30, 2010

I have this

Code:

<httpRuntime maxRequestLength="10240" executionTimeout="120"/>

in the web.config file of an application - so that file uploads of 10mb are allowed. The default - shown in the web.config.comments file - is 4096 or 4mb Today a user uploaded a file that was 4.55 mb and the app fell over. The server event log shows this warning:Post size exceeded allowed limits About 10 minutes later another email was sent with a 3.33 mb attachment. Again, it fell over and this time the server event log shows:

HttpException ... Request timed out

As it happens, on both occasions the files were uploaded to the server correctly and all the emails got sent - according to log files on the Exchange server. So, what happened? I figure I'll increase the file upload and timeout in the web.config file. Should I also increase the file upload in the web.config.comments file that affects the whole server? How do you edit the web.config.comments file? Just open it in Notepad, make the changes and save?

View 2 Replies

Comments Forum In A Web Page

Oct 10, 2010

i have this forum page on my website. I want when users leave comment, the old comments should be at the bottom and new comments at the top. The code for that is below:

<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString2 %>"
DeleteCommand="DELETE FROM [forum] WHERE [Postingid] = @Postingid"
InsertCommand="INSERT INTO [forum] ([UserName], [TheDateTime], [Subject], [Message]) VALUES (@UserName, @TheDateTime, @Subject, @Message)"
SelectCommand="SELECT * FROM [forum] "
UpdateCommand="UPDATE [forum] SET [UserName] = @UserName, [TheDateTime] = @TheDateTime, [Subject] = @Subject, [Message] = @Message WHERE [Postingid] = @Postingid">
<DeleteParameters>
<asp:Parameter Name="Postingid" Type="Int32" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="UserName" Type="String" />
<asp:Parameter Name="TheDateTime" Type="String" />
<asp:Parameter Name="Subject" Type="String" />
<asp:Parameter Name="Message" Type="String" />
</InsertParameters>
<UpdateParameters>
<asp:Parameter Name="UserName" Type="String" />
<asp:Parameter Name="TheDateTime" Type="String" />
<asp:Parameter Name="Subject" Type="String" />
<asp:Parameter Name="Message" Type="String" />
<asp:Parameter Name="Postingid" Type="Int32" />...........................

View 1 Replies

URL - How To Create A Blog In MVC

Nov 23, 2010

I have created a blog application with ASP.NET MVC and MSSQL. I must say, i really enjoyed the process of creating an application with ASP.NET MVC. Clean URLS(with URL routing), No view States and so on.

BUT i was wondering how would this would have been done if i choose web-form style coding? will the aspx would be created in the fly as i create a article.(take this url for ex: [URL]) though the URL is not clean but still makes sense. if yes then what about its corresponding cs file? if no how is the URL so clean?

View 4 Replies

Create A Blog Using 3.5?

Feb 1, 2010

Is there a way to create a blog using asp.net 3.5 in Microsoft Visual Web developer 2008 or 2010? Also, how do I make commenting, replying and posting only available to the user of my website?

View 9 Replies

How To Read A Blog

Jan 12, 2010

I want to get content of my blog in my web site how can i do this.I have used dataset and its method XMlread but it doesn't word my blog's url ishttp://hari-ghan.blogspot.com

View 3 Replies

Javascript - Adding Comments Like Facebook With C#?

Jan 19, 2011

I'm developing an blog using ASP.NET, and I want that the user can be able to add comments.

So I want to implement the of facebook on adding comments.

The comment will be stored in the database, so I will be able to load it with the page if the user goes to another web page.

how can I do this thing ( Ajax, Javascript, jQuery, Ajax Toolkit ) ?

EDIT:

I found this :

<body>
<form id="form1" runat="server">
<p>
<textarea id="textArea">

View 2 Replies

Security :: Get Membership User Comments?

Apr 26, 2010

I'm trying to get the comments section for a user, to populate a text box which can be updated. I'm getting the "Object reference not set to an instance of an object" error. Why is this occurring?

[Code]....

View 2 Replies

Displaying Comments And Images On Web Page

Sep 9, 2012

I am new in vb.net ... I am working on a project where users are able to post comments and also to be able to upload images. I am able to save the comments and also able to save the images to the database as a binary.

I am able to show the comments thru a listview as a user adds the comments, but how can i show the comments and the images. this would be similar like "Facebook"

View 1 Replies

VS 2010 - Displaying Comments In Inner HTML

Feb 20, 2012

I have to display some HTML from our system and do by using

DivOutline.InnerHtml = outlinetext;

where outlinetext is a string of HTML

However the string contains code as below

"<!--[if !supportLists]-->"

which for some reason also gets displayed.

I think it could be because the actual string is

("<!--[

but even when I try

outlinetext.Replace("<", "<");

the text does not seem to get replaced

How to make the comments not display or why the string.replace function cannot pict out "<" when I can see it is definately in the string?

View 2 Replies

C# - Where Should Create Development Blog

Aug 13, 2010

I'm looking for a blogging site to host my ASP.Net/C# (and possibly other web related programming) technical blog - where should I create such blog?

BTW, it's a shame that SO does not offer blogging services.

Note: I would create it on [URL], but it requires to be a highly active member on their site.

View 3 Replies

Web Forms :: Want To Make Dot Net Blog?

Apr 20, 2010

Guys I want to make a blog like http://www.hanselman.com/blog

is there is any solution like wordpress in dot net ? or we have to write our own code in it

what hanselman is using

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved