Click here to Skip to main content
12,398,181 members (53,577 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# VB ASP.NET VB.NET
Hi, I am new to web development, i need to develop a comment box, and save those comments in database , so that i can retrieve them and display them on my web.
My server does not support php or anyother special scriptin, so i believe that i have to code in javascript or asp.net, can anyone please help me with the code for doing this, as to how to implement a comment box and save the comments.
Posted 9-Nov-11 19:17pm
bkthebest1.5K
Updated 9-Nov-11 19:19pm
Prerak Patel141.7K
v2

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Make a simple Asp webpage

On that page drag one textbox and one button

set Textbox's TextMode property ="MultiLine"

On button click event you'll have to insert the comment in DB
(I'm supposing your DB have a table with two fields id and comment id is autoincrement)

//Open Connection
//Make Command
//Execute the command like this
//Insert into Table values('"+textbox.Text+"')";


You can get help on insertion from
here[^]
  Permalink  
Comments
bkthebest 10-Nov-11 2:43am
   
thanks for reply..
but i want make a comment box like facebook myself.
solution you provide is the simple one.
means when user logged in then he can his own posts or comments from others like facebook...
please help
Member 9629966 12-Aug-13 1:12am
   
nice code
hansoctantan 10-Nov-11 3:02am
   
try textarea instead of textbox
Member 11093128 14-Oct-14 18:35pm
   
mm
Syed Salman Raza Zaidi 10-Nov-11 8:14am
   
For this you'll have to make a profile page and on that page you'll have to provide a repeater or datalist control to display comments and textbox and button for posting them this is just like orkut's scrap book, i hope you've understand what i want to say :)
Member 1927936 12-Feb-14 8:45am
   
how this comment box moves to selected reply
Member 11093128 14-Oct-14 18:35pm
   
/.,.,.
sarfaraz chohan 18-Oct-14 23:57pm
   
hgghghjghjgjgjhgc
bkthebest 12-Nov-11 2:20am
   
hi syed.
i found a code in php.
could you please help me to convert it into asp.net
Member 11209567 7-Nov-14 23:21pm
   
sdfsd

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 19 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100