I am getting error after publishing a website. At debug mode it works fine.
Any body can help me that what is the reason.
----------------------------------------------------------------------------------------------
and error comes when i add or cleare item of DropDownList(dd l_dist.) if i remove these lines then error comes on dataset asignment line.
Please help me to understand the problem...
Any body can help me that what is the reason.
Code:
Private Sub fill_ddl_Dist(ByVal _query As String)
Dim con As Connection
con = New Connection
Dim ds As DataSet = con.GetRecord(_query)
' ddl_Dist.Items.Clear()
ddl_Dist.Items.Add("All")
'For Each row As DataRow In ds.Tables(0).Rows
' ddl.Items.Add(row(0).ToString)
'Next
For i As Integer = 0 To ds.Tables(0).Rows.Count - 1
ddl_Dist.Items.Add(ds.Tables(0).Rows(i).Item(0).To String)
Next
End Sub
and error comes when i add or cleare item of DropDownList(dd l_dist.) if i remove these lines then error comes on dataset asignment line.
Please help me to understand the problem...
Comment