CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 5/15/2004 10:11:48 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 45 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
perropicante
Asp.Net User
Design Time problems and missing namespaces!5/15/2004 10:11:48 PM

0/0

I'm designing a component, and I'd like to have it's properties show up in Visual Studio 2003.

From what I can tell (using the Help menu, as well as the Add/Remove Programs panel), I have .NET Framework 1.1 on my computer.

I've gone through a few articles on the message board, and found posts that seemed promising. One of them made use of the System.Web.UI.Design namespace, which I don't have! I know this is weird, but I can't compile any code that refers to anything under that namespace, nor does it show up in Intellisense autocomplete.

Had I been able to, I would have liked to edit my url property using the default url editor, by calling something like [EditorAttribute(typeof(System.Web.UI.Design.UrlEditor), typeof(UITypeEditor))]

Right now, i'm just struggling to have the property show up in the Properties box at design time.

Oddly, i've added information for the default prefix for my tags when inserting my component into a web page, and those work. But the property just won't show up.

Any thoughts on how I could get it to show? What about getting access to the System.Web.UI.Design namespace...



Here's my code

using System;
using System.Web;
using System.Web.Caching;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
using System.Xml;
using System.Xml.XPath;
using System.Xml.Xsl;
using System.Collections.Specialized;
using System.Text;
using System.Text.RegularExpressions;

[assembly:TagPrefix("NineMedia.Cms", "nm")]
namespace NineMedia.Cms
{
[ToolboxData("<{0}:EditorPanel runat=\"server\" /></{0}:EditorPanel>"), DefaultProperty("BrowserDefaultUrl")]
public class EditorPanel : Control
{
#region Public Properties
/// <summary>
/// The url to load at startup
/// </summary>
[Browsable(true),
Category("Base Urls"),
DefaultValue("about:blank"),
Description("Start page url"),
EditorAttribute(typeof(System.String), typeof(System.Uri)),
PersistenceMode(PersistenceMode.Attribute)
]
public string BrowserDefaultUrl = "about:blank"; #endregion

//[... other code omitted, like rendering methods ...]
}
}
master4eva
Asp.Net User
Re: Design Time problems and missing namespaces!5/15/2004 10:17:01 PM

0/0

Hi,

What you have to do is add a reference to the System.Design assembly. Presto! :-) . And now you have reference to the System.Web.UI.Design namespace.

Cheers,
Justin
-- Justin Lovell
perropicante
Asp.Net User
Re: Design Time problems and missing namespaces!5/16/2004 5:30:33 PM

0/0

Thanks, adding the reference did allow me to change my code to the following without any compilation errors. :)


....
[Browsable(true),
Category("Base Urls"),
DefaultValue("about:blank"),
Description("Start page url"),
EditorAttribute(typeof(System.Web.UI.Design.UrlEditor), typeof(System.Drawing.Design.UITypeEditor)),
PersistenceMode(PersistenceMode.Attribute)
]
....



However, the property still does not show up at design time :( . I've refreshed the link to the assembly I'm importing, and nothing changes. Am I missing an attribute for this to work?

master4eva
Asp.Net User
Re: Design Time problems and missing namespaces!5/16/2004 5:52:10 PM

0/0

I am not with you when you say that "the property still does not show up at design time". What are you referring to -- the actual property member or the behaviour that the EditorAttribute should have provided?
-- Justin Lovell
AndrewSeven
Asp.Net User
Re: Design Time problems and missing namespaces!5/19/2004 8:09:48 PM

0/0

*** edited by: master4eva ***
Please enclose your code in < code ></ code> tags (without the spaces). This will make your code easier to read online; therefore, encouraging a response to be faster. It is to your own benefit for your question to be answered in future.

I have already done the editing to include the < code ></ code> tags for this post.
*********


You can just use a public variable, you must use a property.

public string _BrowserDefaultUrl = "about:blank";
public string BrowserDefaultUrl
{
get{...}
set {...}
}
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Microsoft SQL Server 2005 Integration Services Authors: Kirk Haselden, Trey Johnson, Pages: 717, Published: 2006
Expert One-on-One Visual Basic 2005 Design and Development Authors: Rod Stephens, Pages: 620, Published: 2007
Pro WF: Windows Workflow in .NET 3.0 Authors: Bruce Bukovics, Pages: 709, Published: 2007
Pro ASP. Net 3. 5 Server Controls and AJAX Components Authors: Rob Cameron, Dale Michalk, Pages: 740, Published: 2008
Interactive Systems: Design, Specifications, and Verification : 9th International Workshop, DSV-IS 2002, Rostock, Germany, June 12-14, 2002 : Revised Papers Authors: Peter Forbrig, School of Management, Université catholique de Louvain, University of Rostock, Department of Computer Science, Pages: 0, Published: 2002
Beginning ASP.NET in VB.NET: From Novice to Professional Authors: Matthew MacDonald, Pages: 983, Published: 2004
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Web Design in a Nutshell: A Desktop Quick Reference Authors: Jennifer Niederst, Jennifer Niederst Robbins, Pages: 618, Published: 2001
Visual Basic .NET: Your Visual Blueprint for Building Versatile Programs on the .NET Framework Authors: Richard Bowman, Pages: 352, Published: 2002

Web:
How to avoid CF2 design-time problems - Resco Forums How to avoid CF2 design-time problems MobileForms Toolkit, Thread Starter: Pavol Zajac Started: 02-14-2006 2:24 AM Replies: 15 ...
System.Windows.Forms.Design Namespace Design namespace contains classes that support design-time configuration and behavior for Windows Forms .... Missing Class, Last Edit 2:08 AM by G1 ...
microsoft.public.dotnet.framework.compactframework: create design ... Nov 1, 2004 ... copy the runtime library project file to a new design time ... not exist in the class or namespace 'System.ComponentModel' (are you missing ...
Troubleshooting Java CAPS Design-time Components (Troubleshooting ... Troubleshooting Java CAPS Design-time Components. The following sections provide suggestions on troubleshooting common problems encountered when developing ...
Re: TOOL: .NET CollectionGen: A new design-time co: msg#00562 ... NET CollectionGen: A new design-time code generator for VS.NET ... namespace ' Microsoft' (are you missing an assembly reference?) ...
Damon Payne: Hand waving software architect - Run time is design ... What namespaces, classes, interfaces, and attributes we are accustomed to from “ full framework” design time support have made it into Silverlight? ...
NamespaceDiscussion - Atom Wiki Dec 23, 2003 ... No one can see every possible future need at design time. Disallowing the use of namespaces will create more problems in the long run and ...
Be Communities by Bentley: C#.Net/TextMod/Bentley.Microstation ... Re: C#.Net/TextMod/Bentley.Microstation.Addin namespace missing .... I can even see the textmod form in a design view which wasn't possible earlier. ...
.NET Designtime Datasource (for Combobox) - Stack Overflow However this variable does not show. The only object which appears in my project namespace is Form1. What am I missing? Public Class Time Private _timeValue ...
Expression Blend and Design : Using Design-Time Attributes to ... NET Framework allows you to use design-time attributes. ... The type or namespace name 'Category' could not be found (are you missing a using directive or ...

Videos:
Zero Configuration networking with Bonjour Google TechTalks November 2, 2005 Dr. Stuart Cheshire, Apple Computer http://www.stuartcheshire.org/ ABSTRACT The desirability of making ...
django: Web Development for Perfectionists with Deadlines Google TechTalks April 26, 2006 Jacob Kaplan-Moss ABSTRACT Django is one of the premier web frameworks for Python, and is often compared ...




Search This Site:










dotnetnuke xxl disclaimer

error handling blues..

re: what do you think of this for hosting?

custom modules

dnn users in connecticut?

documents module - edit missing from individual documents

dnn display for 800x600

dnn 3012, problem to create lists and sub lists in host/litst

remove module from dnn

datagrids and css styles

proper way to uninstall ??

flash in skin

child portal tab-redirect

white bars

how do i see what changes were in dnn 3.1.0?

images as items in datagrid

registered but didnt receive verification code email

css and modules

2.0 error reporting

rss feeds

dnn 3.0 register

hashtable insert failed. load factor too high.

error in register/user account

has anyone use infragistics controls to write custome modules?

problems with sql server

application errors not being emailed

why has "an error has occurred."?

serveruptime negative time values.

vendor / banner position question

dotnetnuke.ui.webcontrols

  Privacy | Contact Us
All Times Are GMT