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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -