Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > UrlEditor for just a path, not a file?

Reply
Thread Tools

UrlEditor for just a path, not a file?

 
 
WALDO
Guest
Posts: n/a
 
      10-15-2004
I figured out how to use a System.Web.UI.Design.UrlEditor to produce a
dialog from either a winform or directly from the property grid
already.

My question is is there a base class or service in which I can produce
nearly the same dialog, but select a path, rather than select a file?
I want to use it to generate a path where images/scripts are stored
and let the control append the file names to that path, then resolve
them at runtime.
 
Reply With Quote
 
 
 
 
Victor Garcia Aprea [MVP]
Guest
Posts: n/a
 
      10-23-2004

Hi Waldo,

Take a look at the System.Windows.Forms.Design.FolderNameEditor, this may be
the closest built-in thing you can get for what you want,

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://clariusconsulting.net/vga
My profile: http://aspnet2.com/mvp.ashx?vga


"WALDO" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
>I figured out how to use a System.Web.UI.Design.UrlEditor to produce a
> dialog from either a winform or directly from the property grid
> already.
>
> My question is is there a base class or service in which I can produce
> nearly the same dialog, but select a path, rather than select a file?
> I want to use it to generate a path where images/scripts are stored
> and let the control append the file names to that path, then resolve
> them at runtime.



 
Reply With Quote
 
 
 
 
WALDO
Guest
Posts: n/a
 
      10-26-2004
Thanks, Victor.

As I understand that class, it's only going to get me local machine
files. Not excatly what I'm looking for (unless there's something I'm
missing).

I decided to bulid my own UrlPathEditor. I can figure out how to get the
folder structure from the current project. What I would like to be able
to do now is query the webserver for its actual folder structure. Is
that something that's possible?

For the most part, if the web path you're looking to select is within
the project, it works great. But I want to be able to use it to select
paths like '/aspnet_client'. Since that's not in the project, I want to
be able to query the structure of the webserver. Is that possible? Are
there security concerns? Is there a service I can use that already takes
care of that?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
UrlEditor not working maxcocco ASP .Net Building Controls 0 05-17-2006 03:13 PM
use UrlEditor in Component Editor forms Kevin Marshall ASP .Net Building Controls 6 08-23-2004 09:03 AM
System.Web.UI.Design.UrlEditor Peter Ehli ASP .Net Building Controls 0 08-22-2004 08:34 PM
UrlEditor from a CollectionEditor again gozza ASP .Net Building Controls 1 02-03-2004 03:11 AM
Invoking another Editor (UrlEditor) from an Editor (CollectionEditor) gozza ASP .Net Building Controls 1 02-02-2004 05:01 AM



Advertisments