Dropdownlist doesnt show up on application server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amitki
    New Member
    • Sep 2008
    • 1

    Dropdownlist doesnt show up on application server

    Hi All,
    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:

    Code:
    <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
    I have kept it both at postback ans notpostabck cases.
    Reply requested..

    regards
    amit
    Last edited by kenobewan; Sep 19 '08, 01:51 PM. Reason: Use code tags
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Suggest try using a separate function for this event and debugging. HTH.

    Comment

    Working...