|
-
Mar 28th, 2008, 01:37 PM
#1
Thread Starter
Fanatic Member
[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!
-
Mar 28th, 2008, 02:46 PM
#2
Re: [2005] WebControl that selects file
"that familiar box"... or maybe not. 
Which box do you mean? Is it one of the properties?
-
Mar 28th, 2008, 02:49 PM
#3
Thread Starter
Fanatic Member
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!
-
Mar 28th, 2008, 03:12 PM
#4
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)> _
-
Mar 31st, 2008, 11:12 AM
#5
Thread Starter
Fanatic Member
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!
-
Mar 31st, 2008, 03:12 PM
#6
Re: [2005] WebControl that selects file
Is it a server control or web user control?
-
Mar 31st, 2008, 03:30 PM
#7
Thread Starter
Fanatic Member
Re: [2005] WebControl that selects file
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|