User Profile
Collapse
-
i got answer in some other way.. thank you.. -
...Code:protected void insrtbtn_Click(object sender, EventArgs e) { dataTable.Rows.Add(procode.Text, pnamedrp.SelectedItem.Text, protypee.SelectedItem.Text, proprice.Text, proqunty.Text, amt.Text + ""); salegrid.DataSource = dataTable; salegrid.DataBind(); setupTable(); updateTotal(); con.Open(); string query5 = "select prostock fromLeave a comment:
-
...Code:string query5 = "select prostock from inventory where Proname='" + pnamedrp.Text + " ' and prostock=prostock<75"; { Response.Write("<script>alert('Purchase Product')</script>"); } SqlCommand comd = new SqlCommand("insert into sales values(@billno,@Cid,@Proid,@Proname,@protype,@sellingprice,@quantity,@cost)", con);Leave a comment:
-
mine is sql server 2000.and the particular field must have primary key or its optionalLeave a comment:
-
how to add auto generate number using sql
I have an asp.net project with sql backend.
I generate auto number using the code which has been given already, but it shown an error caused by giving the line in my code:
The error is......Code:"Select @@identity;" in
No activity results to display
Show More
Leave a comment: