Results 1 to 3 of 3

Thread: How can I declare objects of type Dropdownlist in a class. *RESOLVED*

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982

    How can I declare objects of type Dropdownlist in a class. *RESOLVED*

    I have a class that I want to pass a drop down list to as a parameter.
    I cant import the system.web.ui.webcontrols namespace. It doesn't exist

    When I type the . after web ( as in System.Web.) intellisence only gives me three options
    AspNetHostingPermission
    AspNetHostingPermissionAttribute
    AspNetHostingPermissionLevel

    How can I declare objects of type Dropdownlist in a class.
    Last edited by davidrobin; May 20th, 2004 at 06:17 AM.


    Things I do when I am bored: DotNetable

  2. #2
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267
    Check you using/imports/refreances. Make sure you have System.Web.dll in you list. But, actually that shouldn't be an issue if you have any System.Web unless it is something that is part of System.Design.dll or something weird like that.

    System.Web.UI.WebControls.TheControl
    System.Web.UI.HtmlControls.TheControl

    Also, sometimes intelsense craps out.
    Magiaus

    If I helped give me some points.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982
    Thats the little baby.

    VB Code:
    1. System.Web

    Once I added it as a reference all was fine.


    Things I do when I am bored: DotNetable

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width