Click here to Skip to main content
15,884,838 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi Friends..
How To Load A Dynamic Page That Contains The Data Retrieve From The Database Where ID =@id Using ASP.Net (C#) WebForms?

I Have 3 ImageButtons When I Click On 1st Image Button Then It Has to Display The New Page Dynamically With The Data Retrieving From Database Of 1st Record..
similary same for 2nd and 3rd Image Buttons...If I Click On 2nd Image Button It Has To Display The New Page Dynamically With The Data Retrieving Form Database Of 2nd Record And similar with 3rd Image Button..

Pls Help Me.......
Posted

1 solution

1. Place an 3 image buttons on the page
2. Add 3 click events for image buttons
3. In the events run the select query using SqlCommand and fetch the required details
4. if required store the details in a session and redirect to the new page.
5. In Page_Load of new page fetch details from Session and display.

Hope it helps.

Regards.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900