[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?
Re: [2005] WebControl that selects file
"that familiar box"... or maybe not. :D
Which box do you mean? Is it one of the properties?
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? :)
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)> _
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.
Re: [2005] WebControl that selects file
Is it a server control or web user control?
Re: [2005] WebControl that selects file