HighTechTalks DotNet Forums  

Reading a file from a URL at design-time

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss Reading a file from a URL at design-time in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
maxcocco
 
Posts: n/a

Default Reading a file from a URL at design-time - 07-19-2006 , 05:23 AM






Im' building a custom menu control based on a XML file.
I've added the following property:

private string _xmlSourceUrl;

[Category("Data"),
DefaultValue(""),
Description("XmlDataSource_DataFile"),
Editor("System.Web.UI.Design.XmlDataFileEditor, System.Design,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
typeof(UITypeEditor))]
public string XmlSourceUrl
{
get { return _xmlSourceUrl; }
set { _xmlSourceUrl = value; }
}

which works fine.

When I pick the url for the XML file, I get a value like
"~/xml/menu.xml".
How can i read this file at design-time, so that i can update the
preview of my control?

Thanx,
Max


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.