ASP.NET and Data base
Why vacancy field is not filling?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Apr 10, 2013, 2:33 AM
con.Open()
txtvacancies.Text = Val(txtcarder.Text - txtpresent.Text)
str = "INSERT INTO Carder_of_Ministry(Designation,Service_of_Description,Grade,Salary_Code,Carder,Present,Vacancies) VALUES('" + ddldesignation.Text + "','" + ddlinvolveservice.Text + "','" + ddlgrade.Text + "','" + ddlsalarycode.Text + "','" + txtcarder.Text + "','" + txtpresent.Text + "','" + txtvacancies.Text + "' )"
com = New SqlCommand(str, con)
com.ExecuteNonQuery()
con.Close()
End Sub