Ejemplo n.º 1
0
 protected void btnBook_Click(object sender, EventArgs e)
 {
     try
     {
         objDistributor.UserId     = Convert.ToInt32(lblConsumerNo.Text);
         objDistributor.AgencyName = lblAgencyName.Text;
         objDistributor.AgentId    = Convert.ToInt32(Session["AgentId"]);
         string s = objDistributor.UserBookGas();
         lblMsg.Text = s;
     }
     catch (Exception ex)
     {
         lblMsg.Text = ex.Message.ToString();
     }
 }