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 |
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box. eg: 3 box contain stick as:1,1,1. if u take 1 stick from 3rd numbred box you will any how win the match.
How many ways we can fill a dataset in .Net
what is the extension of SPDS Dynamic cluster tables?
Which design patterns have you used?
What is the difference beween joblib and steplib statements
how can we maintain the previous version scripts to new version.
0 Answers DST Global Solutions,
3. . Explain the Cache memory? What is the advantage of a processor having more cache memory?
what is the difference between "types" and "data" in abap.
it is a language or tools?
How to connect the .accdb database file of microsoft access to the Visual Basic 6.0 forms?
Is strus threadsafe or not?
1. What coding languages are you comfortable with?