how do you generate source code for the automatic generation
for receipt number
Answer / raviarsenal
C # in form load paste this code
try
{
SqlConnection con = new SqlConnection
(@"Data Source=.\sqlexpress;Initial
Catalog=Hospital;Integrated Security=True");
con.Open();
q = "select Billno from PatientBill";
SqlCommand cmd = new SqlCommand(q, con);
SqlDataReader dr = cmd.ExecuteReader();
while (dr.Read())
{
bill = Convert.ToInt32(dr
["Billno"].ToString());
}
txtbillno.Text = (bill + 1).ToString();
dr.Close();
cmd.Dispose();
con.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
Is This Answer Correct ? | 0 Yes | 0 No |
what are methods we have in connection pooling
Find out the roles which gives access to all tables in SAP? Thanks in advance.
Tips for blog integration by www.esteemwebsolutions.com. Can Any body suggest me to how to make wonderful questions on web integration..
How to call dll API sub routine in VB Form.
preorder of A*(B+C)/D-G
WHat is execution in manual testing and when will we start execution and what language we use in execution
why we use abstract word in abstract window toolkit in java language.
What is the Super Class of Exception in java?
11 Answers Andesa Services, Benchmark, CitiGroup, CMC, Evergent, KOT Systems, Value Labs, Vijay infoart Solutions,
EXPLAIN UNARY OPEARATORS
This is the portal and portlet interview question API: is JSR 168 API Server: is ibm web sphere portal server6.0 IDE: is RAD 7.0 Question:In normal struts what is the actionservlet? Ans:org.apache.struts.action.ActionServlet. But What is the actionservlet in strutsportlet?
what are other resources are needed for this mantis?
what are the steps for creating prompt table dynamically for the specified field