Move to user defined function in asp.net code? -
i have aspx.cs code in code when programmer enters page load method, after checking condition, want jump here:
datatable dt = flight.insertbooking(objbook.id, convert.toint32(viewstate["totalfare"]), objbook.recommission, objbook.commission, title, fname, lname, phone, phone, email, address, "-", "-", country, pincode, objbook.bookingid, objbook.pnrno, bookrequest.source.tostring(), objbook.msg, bookrequest.farerule[0].departuredate, objbook.markup, objbook.adminmarkup, bookrequest.origin, bookrequest.destination, bookrequest.promotionalplantype.tostring(), bookrequest.faretype, bookrequest.remarks, bookrequest.sessionid, isoneway, convert.tostring(viewstate["trnid"]), fltype, objbook.bookingstatus, objbook.status, passengers, request.userhostaddress); if (dt.rows.count > 0)
wrap code in function , call 😊
Comments
Post a Comment