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 |
write a sql qwery which include joining of two tables 4 marks mainframe
what is inprocess and outprocess in vb
how can we implement locks in plsql?
what is adodb??y it is used for connection of V.B and access??what is ado?dao?
What language / script is used to validate web page
WAP to print all prime nos between 1 to 100 without using user input...pls reply within few hours...
when will triggars the at new event in abap and web dybn pro?
iam confused to choose among testing, .net and java can anybody help me????????
How to convert numeric value into words in c#????plz suggest me the coding of this question???
Can anyone send me NIC question papers alongwith answers on nidhi1485@yahoo.co.in? Urgently needed.. Thanks in advance
How to find out the user exit for va01.
if there are n nodes in a binary tree, how many null pointers are there?