Control Designer Gotcha(spinningtheweb.blogspot.com)

submitted by TronTron(160) 5 years, 6 months ago

How to avoid a common pitfall associated with control designers when developing custom server controls.

3 comments |category: |Views: 5

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by gavinjoycegavinjoyce(25.7k) 5 years, 6 months ago 0

This isn't really a gotcha. If you want to use the namespace, you need to add a reference. If you want to use web services, you have to add a reference to System.Web.Services.

Reply

posted by TronTron(160) 5 years, 6 months ago 0

True, I suppose it's more of a "Tip" than a "Gotcha". I'll change the title of the article to reflect this.

The difference in your example is that the System.Web.Services namespace belongs to the System.Web.Services.dll assembly and a reference is automatically added for a webservice project. However, the System.Web.UI.Design namespace isn't located in a System.Web.UI.Design.dll as I expected. Instead it is found in the System.Design.dll and unlike most web-related namespaces needs to be manually referenced in order to be used.

Reply

posted by simonebsimoneb(5450) 5 years, 6 months ago 0

Hmm, cm'on, let's post something useful.

Reply

information Login or create an account to comment on this story