I have a dropdownlist which I make visible after the sel index change of another dropdownlist and then populate some data from db into it.
This runs perfect on my machine( local host) but when I copy it on the application server, the dropdownlist list is not visible at all.
I am using VS 2003.
Please suggest what can be the resolution as I just dont know how to do it now, tried so many things.
please find the code:
Expand|Select|Wrap|Line Numbers
- <asp:dropdownlist id="CboDataFrame" runat="server" BackColor="White" Width="448px" Enabled="true" Visible="false"></asp:dropdownlist>
- Code behind: page load event:
- If cboCountry.SelectedValue.Trim.ToUpper = "CASPIAN_SEA" Then
- CboDataFrame.Enabled = True
- Me.CboDataFrame.Visible = True
- Me.testing.Value = "4"
- Dim str1() As String = Split(Request.Params("__EVENTTARGET"), ";")
- Select Case str1(0) : Case "CboDataFrame" : End Select
- 'code to be placed here for loading the cboDataframe upon selection of caspian sea in cboCountry.
- strSQL = "SELECT COUNTRY_NAME FROM ADMIN_DATA_FRAME"
- Dim Ds As DataSet = ws.ExecuteAdminQuery(strSQL, CommonUtils.DEV_SCHEMA_NAME)
- Dim ctryDataRow As DataRow
- Me.CboDataFrame.Items.Clear()
- For Each ctryDataRow In Ds.Tables(0).Rows
- Me.CboDataFrame.Items.Add(ctryDataRow("COUNTRY_NAME"))
- Next
- 'CboDataFrame.AutoPostBack = True
- Ds.Dispose() : Ds = Nothing
- Else
- Me.CboDataFrame.Items.Clear()
- CboDataFrame.Enabled = False
- CboDataFrame.Visible = False
- End If
Reply requested..
regards
amit