Results 1 to 7 of 7

Thread: [RESOLVED] [2005] WebControl that selects file

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Location
    Chicago, IL
    Posts
    514

    Resolved [RESOLVED] [2005] WebControl that selects file

    Heya everyone,

    I've been searchin online for an answer to my issue. My current project is going to feature a lot of rollover buttons, something that doesn't exist as an ASP.NET control. Obviously that left me a market to make one!

    I made a quickie one (it is very simple, with a postbackurl, target, and 3 image url's).

    I'm trying to do something that I've never done before, however. I'm new to WebControl development, and I want the URL properties (for defining the image on hover, normal, and down), to pop-up that familiar box that allows you to select files from your website. How can I implement that?
    Warren Ayen
    Senior C# Developer
    DLS Software Studios (http://www.dlssoftwarestudios.com/)

    I use Microsoft Visual Studio 2005, 2008, working with Visual Basic and Visual C#
    Hey! If you like my post, or I solve your issue, please Rate Me!

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] WebControl that selects file

    "that familiar box"... or maybe not.

    Which box do you mean? Is it one of the properties?

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Location
    Chicago, IL
    Posts
    514

    Re: [2005] WebControl that selects file

    When you're in design view and you put an ASP.NET image control down and click that little button for the property "ImageURL", a dialog comes up asking you to select a file from the project.

    How do I do that?
    Warren Ayen
    Senior C# Developer
    DLS Software Studios (http://www.dlssoftwarestudios.com/)

    I use Microsoft Visual Studio 2005, 2008, working with Visual Basic and Visual C#
    Hey! If you like my post, or I solve your issue, please Rate Me!

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] WebControl that selects file

    I'm half sure that setting the EditorAttribute attribute on the property you want browsable will work for you, but I have not tested this from a server control. I believe that these attributes work if you're doing it from a server control rather than web user control

    Code:
    <System.ComponentModel.Editor(GetType(System.Drawing.Design.UITypeEditor), GetType(Drawing.Design.UITypeEditor)), System.ComponentModel.Browsable(True), System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Always)> _

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Location
    Chicago, IL
    Posts
    514

    Re: [2005] WebControl that selects file

    No, that doesn't work, unfortunately. I'm sure it can be done, but I can't find a way. Thanks for the suggestion, though.
    Warren Ayen
    Senior C# Developer
    DLS Software Studios (http://www.dlssoftwarestudios.com/)

    I use Microsoft Visual Studio 2005, 2008, working with Visual Basic and Visual C#
    Hey! If you like my post, or I solve your issue, please Rate Me!

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] WebControl that selects file

    Is it a server control or web user control?

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Location
    Chicago, IL
    Posts
    514

    Re: [2005] WebControl that selects file

    Server control
    Warren Ayen
    Senior C# Developer
    DLS Software Studios (http://www.dlssoftwarestudios.com/)

    I use Microsoft Visual Studio 2005, 2008, working with Visual Basic and Visual C#
    Hey! If you like my post, or I solve your issue, please Rate Me!

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