Ask a Question related to ASP.NET Building Controls, Design and Development.
-
maxcocco #1
Reading a file from a URL at design-time
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
maxcocco Guest
-
Debugging at design time
It appears easy using vs.net to debug servercontrols during runtime but how can I step through code that gets executed at design time. for instance... -
Run/design time packages
Should I include my designers in the same assembly as my controls? This seems to me to be a bit of a mix up of purposes. Do you people typically... -
Design-time problem
Hi there, I have 2 properties "P1" (enum) and "P2" (Color). When I set P1 I change the value of P2. Although the value of P2 is changed in... -
Reading a line at a time from a file
Hey, Just wondering what the best way to do this is? What i specifically want to do is check if a user exists on a unix machine. The best way... -
Design Time Error
Hi oneeye, As you have discovered that won't work in design-time as there is no request context. What you can do is let the user chose the path...



Reply With Quote

