943,640 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 615
  • ASP.NET RSS
Jul 3rd, 2009
0

dynamic comments box

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cmg777 is offline Offline
3 posts
since Jul 2009
Jul 3rd, 2009
0

Re: dynamic comments box

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.
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008
Jul 3rd, 2009
0

Re: dynamic comments box

Click to Expand / Collapse  Quote originally posted by adatapost ...
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cmg777 is offline Offline
3 posts
since Jul 2009
Jul 7th, 2009
0

Re: dynamic comments box

Click to Expand / Collapse  Quote originally posted by adatapost ...
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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cmg777 is offline Offline
3 posts
since Jul 2009
Jul 7th, 2009
0

Re: dynamic comments box

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).
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: pass id wont work
Next Thread in ASP.NET Forum Timeline: Handler attached to Button.Click inside Gridview not firing





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC