![]() |
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:
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? |
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.
|
|
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?
|
Quote:
|
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... :( |
why not try to convert it to php? hehe.
|
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