dynamic comments box

Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Reply

Join Date: Jul 2009
Posts: 3
Reputation: cmg777 is an unknown quantity at this point 
Solved Threads: 0
cmg777 cmg777 is offline Offline
Newbie Poster

dynamic comments box

 
0
  #1
Jul 3rd, 2009
I need a comments box where users can use a name textbox to input their name and a comments textbox where they can input what they thought about the site or something they need and then a fixed area of text being displayed on the site. An example (Request Layouts):
http://www.freeweblayouts.net/

I've done this in a way before with a guestbook I made that connected to a database and showed the user input using the textboxes as parameters for each column in the database. Would it be good to use the formview instead of the GridView that I used in the Guestbook? Is it better just to use a txt file instead of database?

Thank you for your time
Chris
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,434
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 439
adatapost's Avatar
adatapost adatapost is offline Offline
Nearly a Posting Maven

Re: dynamic comments box

 
0
  #2
Jul 3rd, 2009
FormView control especially used to add/delete/update a table record. GridView has options to view list of rows and edit/delete individually.

Use database if you want to store data for a long time and also you may retrieve it using simple sql statement.
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 3
Reputation: cmg777 is an unknown quantity at this point 
Solved Threads: 0
cmg777 cmg777 is offline Offline
Newbie Poster

Re: dynamic comments box

 
0
  #3
Jul 3rd, 2009
Originally Posted by adatapost View Post
FormView control especially used to add/delete/update a table record. GridView has options to view list of rows and edit/delete individually.

Use database if you want to store data for a long time and also you may retrieve it using simple sql statement.
Oh yea I remember doing a program with FormView. Ok so I should use the DataView. I'm gonna mess around with it till I think I have a problem then maybe I'll post back.

Thanks for now
Chris
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 3
Reputation: cmg777 is an unknown quantity at this point 
Solved Threads: 0
cmg777 cmg777 is offline Offline
Newbie Poster

Re: dynamic comments box

 
0
  #4
Jul 7th, 2009
Originally Posted by adatapost View Post
FormView control especially used to add/delete/update a table record. GridView has options to view list of rows and edit/delete individually.

Use database if you want to store data for a long time and also you may retrieve it using simple sql statement.
Ok I think I got the hang of what is going on I inserted a DataView control and the only issue I have now is I need a SQL statement or some way to limit the data in the small box I need it to display newer data to a certain point then older data would remain hidden.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,434
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 439
adatapost's Avatar
adatapost adatapost is offline Offline
Nearly a Posting Maven

Re: dynamic comments box

 
0
  #5
Jul 7th, 2009
I didn't get your question at post #4. Are you want to show the last record added to the database everytime? Use order by with desc clause on field like ID (automumbered).
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC