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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -