Posted on: 5/21/2014 5:07:27 AM | Views : 373

HI everyone,
i have page in which there are some text boxes , dropdownlist , submit button and gridview. after filling the text box and selecting a value from dropdownlist im inserting the values to the db. the inserted values are pouplating in the gridview. on the gridview selected index change event im filling the textboa,dropdownlist with the values from the db.evrything is working fine except the dropdownlist. the dropdownlist is always showing the first value , means index zero.
here is my codes
Protected Sub gvcomments_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles gvcomments.SelectedIndexChanged Dim a As String a = gvcomments.SelectedRow.Cells(1).Text lblmessage.Text = a lblmessage.Visible = True Session("commentid") = a Dim yy As SqlDataReader busiinsp.Gridid = Decimal.Parse(a) yy = busiinsp.filldata() ...

Go to the complete details ...