Author: sg48asp | Posted on: 10/2/2009 8:05:07 AM | Views : 362

 I have a dropdown list that selects a student and a gridview that I would like to populate based on the selected student.
 
When the student is selected the page posts back and the id of the selected student is correctly written to a test label.
 
However the gridview does not get populated with any data.
 
I have run the select query in sql server and it works correctly.
 
Why is gridview not getting databound? TIA - Steve
<%@ Page Language="VB" MasterPageFile="~/sfcas.master" Title="Student Class history" Debug="true" enableViewStateMac="false" AutoEventWireup="true" %> <script runat="server"> Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) End Sub Protected Sub ddlStudents_SelectedIndexChanged(ByVal s ...

Go to the complete details ...