ASP.NET and Data base
Why vacancy field is not filling?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Apr 9, 2013, 10:33 PM EDT
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