Click here to Skip to main content
15,896,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: ASP.NET publication Pin
Christian Graus17-Mar-08 9:31
protectorChristian Graus17-Mar-08 9:31 
GeneralJavascript Objects and Visual Studio 2008 Pin
GreenGiant8317-Mar-08 8:57
GreenGiant8317-Mar-08 8:57 
Questionhow upload ??? Pin
zeeShan anSari17-Mar-08 8:48
zeeShan anSari17-Mar-08 8:48 
AnswerRe: how upload ??? Pin
Christian Graus17-Mar-08 9:36
protectorChristian Graus17-Mar-08 9:36 
QuestionI need help with web form data to be inserted into database in ASP.NET Pin
ahlaj7717-Mar-08 8:08
ahlaj7717-Mar-08 8:08 
GeneralRe: I need help with web form data to be inserted into database in ASP.NET Pin
Not Active17-Mar-08 8:21
mentorNot Active17-Mar-08 8:21 
General[Message Deleted] Pin
ahlaj7717-Mar-08 9:44
ahlaj7717-Mar-08 9:44 
GeneralRe: I need help with web form data to be inserted into database in ASP.NET Pin
Mark J. Miller17-Mar-08 10:16
Mark J. Miller17-Mar-08 10:16 
Here's where you want to start:

http://msdn2.microsoft.com/en-us/library/ms254937.aspx[^]

Once you've read through that you can use the Request property of your ASP.NET page to get the data being submitted from the user to your web server and update your database. Here's a sample to give you an idea of what you're trying to understand how to do from the documentation above:

<br />
using(SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["sqlserver"].ConnectionString)){<br />
  using(SqlCommand cmd = new SqlCommand("SELECT rowId, FirstName, LastName FROM someTable WHERE rowId = @Id")){<br />
    cmd.Parameters.Add("@Id", SqlDbType.Int);<br />
    cmd.Parameters["@Id"].Value = int.Parse(Request.QueryString["rowId"]);<br />
<br />
    SqlDataReader rdr = cmd.ExecuteReader();<br />
    while(rdr.Read()){<br />
      Response.Write(String.Format("rowId: {0}", rdr[0]));<br />
      Response.Write(String.Format("FirstName: {0}", rdr[1]));<br />
      Response.Write(String.Format("LastName: {0}", rdr[2]));<br />
    }<br />
  }<br />
}<br />


Additionally, lookup the syntax for SELECT, INSERT, UPDATE and DELETE in SQL Server Books Online (aka. BOL).


GeneralRe: I need help with web form data to be inserted into database in ASP.NET [modified] Pin
ahlaj7717-Mar-08 10:40
ahlaj7717-Mar-08 10:40 
GeneralRe: I need help with web form data to be inserted into database in ASP.NET Pin
Not Active17-Mar-08 11:21
mentorNot Active17-Mar-08 11:21 
GeneralRe: I need help with web form data to be inserted into database in ASP.NET Pin
eyeseetee17-Mar-08 23:01
eyeseetee17-Mar-08 23:01 
GeneralRe: I need help with web form data to be inserted into database in ASP.NET Pin
Christian Graus17-Mar-08 10:45
protectorChristian Graus17-Mar-08 10:45 
GeneralRe: I need help with web form data to be inserted into database in ASP.NET Pin
Not Active17-Mar-08 11:13
mentorNot Active17-Mar-08 11:13 
QuestionSQLDATASOURCE Pin
Member 450523617-Mar-08 7:32
Member 450523617-Mar-08 7:32 
GeneralRe: SQLDATASOURCE Pin
Not Active17-Mar-08 7:55
mentorNot Active17-Mar-08 7:55 
GeneralRe: SQLDATASOURCE Pin
Member 450523617-Mar-08 8:21
Member 450523617-Mar-08 8:21 
QuestionHow to retrieve the Value of a Control in a Placeholder after postback Pin
jawe17-Mar-08 6:54
jawe17-Mar-08 6:54 
AnswerRe: How to retrieve the Value of a Control in a Placeholder after postback Pin
Christian Graus17-Mar-08 9:37
protectorChristian Graus17-Mar-08 9:37 
QuestionI made a Virtual Directory on the Fly, but I get a 404 when testing it. What am I doing wrong? Pin
crystal915417-Mar-08 6:44
crystal915417-Mar-08 6:44 
GeneralFlickering of the page Pin
Ekjon17-Mar-08 6:14
Ekjon17-Mar-08 6:14 
GeneralRe: Flickering of the page Pin
Not Active17-Mar-08 6:32
mentorNot Active17-Mar-08 6:32 
GeneralRe: Flickering of the page Pin
Ekjon17-Mar-08 7:44
Ekjon17-Mar-08 7:44 
GeneralRe: Flickering of the page Pin
Not Active17-Mar-08 7:53
mentorNot Active17-Mar-08 7:53 
GeneralRe: Flickering of the page Pin
Ekjon17-Mar-08 9:30
Ekjon17-Mar-08 9:30 
QuestionFile download problem with Response.Cache ??? Pin
Vanamaindia17-Mar-08 3:49
Vanamaindia17-Mar-08 3:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.