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">
<asp:Parameter Name="Postingid" Type="Int32" />
<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="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

Similar Messages:

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

Web Forms :: How To Make A Forum, Step By Step , In The Forum People Show Their Picture And User Name

Feb 27, 2011

i do knot know how to make a forum, step by step , in the forum people show their picture and user name

View 3 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:


View Model

<%@ 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">
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div><%: Model.Restaurant.R_ID%></div>
<div><%: Model.Restaurant.R_Name %></div>....................

View 1 Replies

Displaying Comments And Images On Web Page

Sep 9, 2012

I am new in ... 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

AJAX :: Code Comments Functionality Into A Web Page

Apr 19, 2010

how I would code a comments functionality into a web page. So a user can leave a comment on a page and rate it, out of 5, for instance. How would this look in terms of C Sharp??

View 1 Replies

Facebook Comments Plugin Not Working On Aspx Page?

Jan 24, 2011

I'm trying to get the facebook comments plugin working on my aspx page..but it is not appearing on the page.

I am using the Facebook.NET api from codeplex for authorization. I inserted the code that was generated from the Facebook Comments plugin page...

<div id="fb-root"></div>
<script src="{MyApp's ID}&amp;xfbml=1"></script>
<fb:comments numposts="15" width="425" publish_feed="true"></fb:comments>

I can see that the script is retrieved by inspecting the resulting html code in firebug...but can't figure out why the plugin is not being rendered...

View 1 Replies

Web Forms :: Preview Forum By Popup Page On Button Click?

Mar 16, 2010

I have never before used pop up in I am trying to code for Preview of forum on button click event. I am able to do successfully to open window but can't retrive data to display from parent page. So what is the way to retrive data from (contols) of parent page on the Child(popup) page. I already know to get data from textbox at parent page by below code.


View 1 Replies

Architecture :: Creating A Comments Page For Users To Review And Comment On An Article?

Dec 12, 2010

I am trying to create a comments page for users to review and comment on an article. I have 2 buttons on each comments posted by users; "Like" and "Don't Like". I am stuck with how to track which user voted already for a given comment. I am thinking of two options and would like to know if they are they way to go or is there a better solution.

Option 1: I have created a table in my database with stores, the comment id, the userid of the user who rated it and the value "like" or "don't like". So each time I have to query my table to find out if this user indeed vote for a given comment. The table unfortunately grows exponentially!!

Option 2: I store the commentid, userid, and "like" or "don't like" value in a cookie on the client's machine. I read the cookie and find out if the user has already voted on a comment. This is proving to be VERY quirky with cookie expiration, growing cookie size and also multiple users on the same machine.

In either way, my test case of ~1500 users, and 2 Million comments, this is getting to be HEAVY on both methods. Is there anything better?

View 3 Replies

Want To Create A Forum Like "forum" In My Application?

Dec 20, 2010

I want to Create a forum like " forum" in My Application.So i want to know that easy flow of making forum list in my Application and how to store it in database.I dont want to make my page loading time is slow. .

View 6 Replies

Rewrite The Url In Forum?

Apr 5, 2010

I have a forum on my website

what i need to do is to rewrite the url :



[URL] to dogracer players

Is there any quick way to achieve this.

The rewrite should be dynamic because each posts in the forum should have a rewritten url

View 5 Replies

Is There A Forum For Asp Classic

Nov 23, 2010

Just two many pages to re-write. A Microsoft consultant informed us it would cost about $750,000 to rewrite all of our pages. The school district's budget is only $67,500 so this is out of the question. Therefore I am going to have to stick to asp Classic.

View 1 Replies

How To Create A Forum Like Structure In ASP C#

Jun 29, 2010

i want to create a forum like page in ASP ,C# where user can enter some question.
Administrator reply this question,according to if user does not satisfied with the solution then in same thread he may ask for further clearance.for example the forum of ( the current page)

View 5 Replies

Building A Forum Site?

Jun 20, 2010

I need assistance on the following issues, i am trying to create a site which involve forum , i need code for the following. or i need schema and data type for

1. last post


3. replies

4. user onlines post

6. thread.

7.last post like less than 5 minutes

View 14 Replies

How To Create A Simple Forum

Jan 6, 2011

Hey guys, i have some problem here. How can i create a simple forum in using wat toolbox?

View 12 Replies

Php - '' And '' Two Different Web Sites?

Sep 4, 2010

There is a website and it has a Forum link on its home page which leads to

I found out that the main site has been developed using the .NET Framework, and the forum has been built using PHP based vBulletin.

Are these two different domains? In other words, is the Forum some folder inside the Visual Studio Project running as part of the ASP.NET website? Or is " a link to an altogether different website?

View 7 Replies

Architecture :: Want To Built Like Asp Forum?

Mar 12, 2010

This is my doubt.For example, select "Getting started" forum in site. It lists lots of threads.Whenever i click on the thread new page will be open. For example if i click a thread means it will opens a page "" and if i click another thread means it will open other page "".

My question is for each thread is there team maintains separate pages like (1535090.aspx, 1535453.aspx etc). Whats the logic behind this one?Please explain. I'm also try to want built the forum like this.

View 7 Replies

Editing Web.config Comments

Sep 30, 2010

I have this


<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

Create Forum Discussion Panel?

Mar 6, 2010

i wanna create a forum discussion panel for my webapplication just like ASP.Net forum....there i can apply background on each post...and that should be very user frendly....where user click on the reply button of thread than reply box should appear just bottom of that thread...and that reply box should open very stylist just like sliding.

View 2 Replies

Building And Using A Utility Class For Forum?

Jan 6, 2011

I think this may be a question for the architecture forum, but it feels a bit newb to me, so here goes.

I'm trying to write a utility class to use throughout my C# ASP.NET websites. I am having trouble getting intellisense to see the methods in my class. What I'm doing is creating a static class and putting it in a namesapce and with a using directive, importing that class into the code-behind of my web form. But it's not working. I would also like to minimize the visibility of the code i.e. use the least accessible access modifier necessary for use in my util class.


View 6 Replies

Access :: How To Show Category And Forum

Aug 25, 2010

I would like to make script that show category and all its forum that 's why I have created table 'cat' ( id , CAT_TITLE )( table for category) and an other table for forum name ' s 'forum' ( id , name,CAT_ID)

my question how I can show category and the forum by using repeater or another control like

View 2 Replies

C# - Integrating A Discussion Forum Into An .NET Site

Jan 30, 2010

I have an ASP.NET WebForms public business site. I want to integrate a discussion forum into my site. However, I don't want people to have to log in twice. Can someone recommend a ready made discussion forum solution that I can drop into my site, yet be able to customize with my login infrastructure?

View 1 Replies

How To Create The Forum Database In Sqlserver

Feb 25, 2011

how to create the forum database in sqlserver. what tables & columns are required in it .

View 3 Replies

C# - NOSQL Database Selection For Forum?

Oct 20, 2010

i am developing a FORUM i am using, c# language for code. I have read a article about NoSql i inspired a lot from there advantage over RDBMS (sql) so i was thinking that should i use NoSql concept for Forum DataBase or not. I am not a expert in database. So can u suggest me should i use NoSql? Currently I am using sql(rdbms).

View 1 Replies

How To Add DotNetNuke Forum To Default C# Website

Jun 21, 2010

I'm trying to add Forum module to my Web Site , so I add dlls, components and modules and :


so how can add the forum from DNN to my page ? or how to fix this error

View 1 Replies

Copyrights 2005-15, All rights reserved