add a text for drodown list in runtime

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ganesh22
    Banned
    New Member
    • Sep 2007
    • 81

    add a text for drodown list in runtime

    Hi,
    The below code is my dropdownlist code now my requirement is i want to add another technologies like sap,oracle into dropdownlist on runtime

    ex:
    String th="Oracle";
    ddlTech.Text=th ;
    like that if i given like this means it showing some error

    <asp:DropDownLi st ID="ddlTech" runat="server" AutoPostBack="T rue" OnSelectedIndex Changed="ddlTec h_SelectedIndex Changed" Font-Names="Verdana" Font-Size="8pt">
    <asp:ListItem >--Select--</asp:ListItem>
    <asp:ListItem>. Net</asp:ListItem>
    <asp:ListItem>J ava</asp:ListItem>
    <asp:ListItem>T esting</asp:ListItem>
    <asp:ListItem>O ther</asp:ListItem>
    </asp:DropDownLis t>
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    This is very basic stuff. Binding or using a datasource would do what you want. I suggest that get a good book or find a course as many of your questions are at this level. We are not here to teach you .net, but to assist with problems once you know the basics. It would be faster for you to use google at this level.

    MODERATOR

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Originally posted by kenobewan
      This is very basic stuff. Binding or using a datasource would do what you want. I suggest that get a good book or find a course as many of your questions are at this level. We are not here to teach you .net, but to assist with problems once you know the basics. It would be faster for you to use google at this level.

      MODERATOR
      Googling's great but I would first check out the MSDN Library for development questions. Whenever I have questions about how a control works I check there.

      -Frinny

      Comment

      • kenobewan
        Recognized Expert Specialist
        • Dec 2006
        • 4871

        #4
        Originally posted by Frinavale
        Googling's great but I would first check out the MSDN Library for development questions. Whenever I have questions about how a control works I check there.

        -Frinny
        An even better idea, if you are looking to learn and not just copy & paste solutions. Has anyone heard of the MCCP (Microsoft Certified Copy & Paster ;)?

        Comment

        Working...