Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
dear sir i am starting coding with asp.net.....how we can take help with source code which are given by your great website.that is how i can add the functionality which is given by in source code.
Posted
Comments
[no name] 19-Oct-12 7:54am    
Are you sure what you need? Please be more spefic about what u need. Which functionality ?Which source code? if you want to start learning ASP.net you can simply write the same in google
ashvin sharma 19-Oct-12 8:04am    
thanks sir for your great reply. sir i want to create a web site with minimum functionality...so what should i do?
[no name] 19-Oct-12 8:30am    
For starters, stop accepting poorly written code posted as solutions to your question. Especially when they have nothing to do with the question you asked. Second get a book on ASP.NET programming and go through it. Search this site for some tutorials. Go to www.asp.net and go through some tutorials.

SqlConnection myconn;
SqlCommand mycomm;
//string m;
s = WebConfigurationManager.ConnectionStrings["DatabaseConnectionString"].ConnectionString;
myconn = new SqlConnection(s);
myconn.Open();
mycomm = new SqlCommand("update insertmarks set first='" + TextBox1.Text + "', secound='" + TextBox2.Text + "', third='" + TextBox3.Text + "', fourth='" + TextBox5.Text + "', sixth='" + TextBox8.Text + "', seventh='" + TextBox9 + "', eighth='" + TextBox10.Text + "' where rollno='" + TextBox1.Text + "'", myconn);
SqlCommand cmd = new SqlCommand(m, myconn);
cmd.Parameters.AddWithValue("@first", TextBox2.Text);
cmd.Parameters.AddWithValue("@secound", TextBox3.Text);
// cmd.Parameters.AddWithValue("@total", TextBox4.Text);
cmd.Parameters.AddWithValue("@third", TextBox5.Text);
//cmd.Parameters.AddWithValue("@fourth", TextBox6.Text);
// cmd.Parameters.AddWithValue("@total", TextBox7.Text);
cmd.Parameters.AddWithValue("@fifth", TextBox8.Text);
cmd.Parameters.AddWithValue("@sixth", TextBox9.Text);
cmd.Parameters.AddWithValue("@total", TextBox10.Text);
cmd.Parameters.AddWithValue("@seventh", TextBox11.Text);
cmd.Parameters.AddWithValue("@eighth", TextBox12.Text);
cmd.Parameters.AddWithValue("@rollno", TextBox12.Text);

//cmd.Parameters.AddWithValue("@total", TextBox13.Text);
cmd.ExecuteNonQuery();
myconn.Close();
mycomm.ExecuteNonQuery();
}
 
Share this answer
 
Comments
[no name] 19-Oct-12 7:57am    
And what does this poorly written code have to do with anything?
SqlConnection myconn;
       SqlCommand mycomm;
       //string m;
       s = WebConfigurationManager.ConnectionStrings["DatabaseConnectionString"].ConnectionString;
       myconn = new SqlConnection(s);
       myconn.Open();
       mycomm = new SqlCommand("update insertmarks set first='" + TextBox1.Text + "', secound='" + TextBox2.Text + "', third='" + TextBox3.Text + "', fourth='" + TextBox5.Text + "', sixth='" + TextBox8.Text + "', seventh='" + TextBox9 + "', eighth='" + TextBox10.Text + "' where rollno='" + TextBox1.Text + "'", myconn);
       SqlCommand cmd = new SqlCommand(m, myconn);
       cmd.Parameters.AddWithValue("@first", TextBox2.Text);
       cmd.Parameters.AddWithValue("@secound", TextBox3.Text);
       // cmd.Parameters.AddWithValue("@total", TextBox4.Text);
       cmd.Parameters.AddWithValue("@third", TextBox5.Text);
       //cmd.Parameters.AddWithValue("@fourth", TextBox6.Text);
       // cmd.Parameters.AddWithValue("@total", TextBox7.Text);
       cmd.Parameters.AddWithValue("@fifth", TextBox8.Text);
       cmd.Parameters.AddWithValue("@sixth", TextBox9.Text);
       cmd.Parameters.AddWithValue("@total", TextBox10.Text);
       cmd.Parameters.AddWithValue("@seventh", TextBox11.Text);
       cmd.Parameters.AddWithValue("@eighth", TextBox12.Text);
       cmd.Parameters.AddWithValue("@rollno", TextBox12.Text);

       //cmd.Parameters.AddWithValue("@total", TextBox13.Text);
       cmd.ExecuteNonQuery();
       myconn.Close();
       mycomm.ExecuteNonQuery();
   }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900