How to transfer data across pages in asp.net? -
i designing page using asp.net. there 2 pages named 'view hotel' , 'edit hotel'. when admin views list of hotels on 'view hotel' page , clicks on edit button there, information of hotel hotel id has fetched 'edit hotel' page , displayed in text boxes editing.
how go doing it? how bind data in tables text boxes?
in edit button click event ,
response.redirect("youreditpageurl.aspx?hotelid=" + yourhotelid );
in hotel edit page's loading
protected void page_load(object sender, eventargs e) { if (!ispostback) { string myhotelid = request.querystring["hotelid"].tostring(); } }
Comments
Post a Comment