ASP.net using a form to insert data into an sql server table

Hi in php i would do a form with an action to lets say a process.php page and in that page i would take the post values and using a mysql_query would do an insertion. now i am lost ,i am trying to create a from and do an inserstion in ASP.net with sql server 2008 using visual studio 2010.

i have defined a sql db in the App_Data folder. basicly what i need (unless there is a better way) is:

  1. how do i get the post values.
  2. how do i insert them into the db.

thanks.

16
задан yossi 21 January 2011 в 18:26
поделиться