I am retrieving data from database table.
By giving input as 1 in
textbox1(voucherno)-->damagedetail = web.getdamageddetail(Convert.ToInt32(voucherno.Text)); I want get branchno as output in textbox2(branchno)
branchno.Text = damagedetail.branchno.ToString(); but am getting error
Object reference is not set into instance of an object.
Check my second line.
Is second line coding correct?