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
Similar Messages:
May 7, 2013
How user post comment on my website using gmail ,fb,yahoo ,hotmail account ...
how to apply this.. [URL] ....
View 1 Replies
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
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
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
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
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="http://connect.facebook.net/en_US/all.js#appId={MyApp's ID}&xfbml=1"></script>
<div>
<fb:comments numposts="15" width="425" publish_feed="true"></fb:comments>
</div>
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
Mar 16, 2010
I have never before used pop up in asp.net. 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.
[Code]....
View 1 Replies
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
Dec 20, 2010
I want to Create a forum like "asp.net 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
Apr 5, 2010
I have a forum on my website
what i need to do is to rewrite the url :
[URL]
to
[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
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
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 asp.net ( the current page)
View 5 Replies
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
2. views
3. replies
4. user onlines
5.total post
6. thread.
7.last post like less than 5 minutes
View 14 Replies
Jan 6, 2011
Hey guys, i have some problem here. How can i create a simple forum in asp.net? using wat toolbox?
View 12 Replies
Sep 4, 2010
There is a website www.example.net and it has a Forum link on its home page which leads to forum.example.com/content.
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 www.example.net running as part of the ASP.NET website? Or is "forum.example.com/content a link to an altogether different website?
View 7 Replies
Mar 12, 2010
This is my doubt.For example, select "Getting started" forum in asp.net 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 "http://forums.asp.net/t/1535090.aspx" and if i click another thread means it will open other page "http://forums.asp.net/t/1535453.aspx".
My question is for each thread is there asp.net 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
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
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
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.
[code]....
View 6 Replies
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 http://forums.asp.net/
View 2 Replies
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
Feb 25, 2011
how to create the forum database in sqlserver. what tables & columns are required in it .
View 3 Replies
Oct 20, 2010
i am developing a FORUM i am using asp.net, 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
Jun 21, 2010
I'm trying to add Forum module to my Web Site , so I add dlls, components and modules and :
[Code]....
so how can add the forum from DNN to my page ? or how to fix this error
View 1 Replies