How to display gridview details to labels dynamically?

Ads
 

How to display gridview details to labels dynamically?

I am using SQLDataSource to connect to MySQL. I have a gridview that retrieves information from MySQL database based on a selected id(dropdownlist). I need to display the gridview results on labels. I used lbDate.Text = GridView1.Rows(0).Cells(0).Text to display however, it always displays the details of the previously selected id. Which means it displays the information wrong information. What I understand is that it does the page load method( lbDate.Text = GridView1.Rows(0).Cells(0).Text) before it retrieves the new information, that's why it always shows the previous info. Can anyone help me. Thanks

View Answers

April 17, 2012 at 3:19 PM

Ads









Related Tutorials/Questions & Answers:
How to display gridview details to labels dynamically?
to write a program to display the employee details..
Advertisements
how to display?
how to display?
how to display?
how to display?
How to Display Username After Login in JSP
how to code-updating some details n some details r unchanged
display table details when selecting table name in drop down liat
how to develop student details using springs
how to display image with listview
How to display string or character
How to display date in JSP?
HOW TO DISPLAY TABLEEEE
How to display the current time
How to display date in JSP?
How to display a file for 24 hours?
how to display multiple images on browser
how to display multiple images on browser
ModuleNotFoundError: No module named 'labels'
labels,textfields,buttons
How to display windows virtual keyboard
how to display response in request page
How to display transfer speed with rsync?
how to display records from database
how to send email please give me details with code in jsp,servlet
how to display data in excel sheet?
HOW TO STORE MULTIPLE EMPLOYEE DETAILS TO XML FILE USING JSP?
How to display multiple images in jsp
How to display button as a link in vaadin?
How to display the data column on jsp

Ads