TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   MySQL & Databases (http://www.talkphp.com/mysql-databases/)
-   -   Inserting New Row With ASP.NET? (http://www.talkphp.com/mysql-databases/3719-inserting-new-row-asp-net.html)

StevenF 12-05-2008 02:04 AM

Inserting New Row With ASP.NET?
 
Hi everyone,

I know this is a PHP forum, but I need to ask an asp.net related question:

I am creating a forum, in asp.net and I have the basics working:
  • Shows the forums from Database
  • When a sub-forum is clicked, the threads related to that forum are shown
  • When you select a thread, it shows the posts in that thread.
  • Login/Register section as well

ASP.NET seems a lot more hassle than PHP just now. I need users to be able to add new topics/posts to the database. In PHP, I would just create a form, and have the details posted into the database using an INSERT query. But, I have no idea how to do this in ASP.NET.

Could anyone shed some light on this for me please?

CoryMathews 12-05-2008 01:13 PM

Create a formview set its default mode to insert, then add a datasouce to it with an insert query how you want it. After that is done for each text box bind it to the field you want it to update.

zxt3st 12-06-2008 12:19 AM

have a try in google.

Inserting New Row With ASP.NET?

Village Idiot 12-06-2008 12:57 AM

This really covers a lot of ground, you are asking us how to handle forms and work with SQL in asp.net. This would probably be covered in tutorials, have you tried google?

zxt3st 12-06-2008 02:17 AM

Quote:

Originally Posted by t3st (Post 20263)
have a try in google.

Inserting New Row With ASP.NET?

Google Search Link Above.

StevenF 12-06-2008 11:41 AM

Thanks for you help guys.

I knew it was form based, but not entirely sure how to do it. I have a seperate blank page, "New Thread" page, which should have a form with Title in it. That data should then be posted into the database.

I'll have a look when I get back from work. Thanks.

PHP is so much easier... :(

zxt3st 12-07-2008 11:51 PM

why not try to convert it to php? hehe.

StevenF 12-08-2008 12:21 AM

Hehe, if only.

I\'ve solved this problem, now I have another:

http://www.talkphp.com/lounge/3732-q...html#post20328

:-/


All times are GMT. The time now is 08:31 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0