How to display gridview details to labels dynamically?

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









Related Tutorials/Questions & Answers:
How to display gridview details to labels dynamically?
to write a program to display the employee details..
Advertisements
display table details when selecting table name in drop down liat
how to display?
how to display?
how to display?
how to access the details - Java Beginners
How to Display Username After Login in JSP
how to display?
ModuleNotFoundError: No module named 'labels'
labels,textfields,buttons
how to code-updating some details n some details r unchanged
Labels in Struts 2.0 - Struts
how to display image with listview
how to develop student details using springs
How to display string or character
How to display date in JSP?
ModuleNotFoundError: No module named 'chord-labels'
ModuleNotFoundError: No module named 'unwrap-labels'
ModuleNotFoundError: No module named 'chord-labels'
ModuleNotFoundError: No module named 'crr-labels'
how to get the details of username&password of mysql - JDBC
HOW TO DISPLAY TABLEEEE
How to extract details from XML? - JSP-Servlet
how to retrive other details with an image - Swing AWT
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 'django-taggit-labels'
ModuleNotFoundError: No module named 'sanitize-ml-labels'
ModuleNotFoundError: No module named 'django-taggit-labels'
ModuleNotFoundError: No module named 'docker-auto-labels'
how to display the email message in jsp
Dynamically adding textbox and labels
How to display windows virtual keyboard
how to display response in request page
How to display transfer speed with rsync?
how to display pdf file on browser
how to display records from database
how to display the image in center - Ajax
how to display data in excel sheet?
How to display nested ArrayList in JSF
how to send email please give me details with code in jsp,servlet
HOW TO STORE MULTIPLE EMPLOYEE DETAILS TO XML FILE USING JSP?
How to display multiple images in jsp
Export Extjs Gridview data to excel in jsp
display
How to display button as a link in vaadin?

Ads