The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Global Controls via the Web.config

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Scott Watermasysk

Posts: 661
Nickname: scottwater
Registered: Aug, 2003

Scott Watermasysk is an ASP.NET developers. He wrote the .Text blog engine.
Global Controls via the Web.config Posted: Aug 29, 2004 11:06 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Scott Watermasysk.
Original Post: Global Controls via the Web.config
Feed Title: ScottW's ASP.NET WebLog
Feed URL: /error.aspx?aspxerrorpath=/blog/rss.aspx
Feed Description: ASP.NET and Blogging
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Scott Watermasysk
Latest Posts From ScottW's ASP.NET WebLog

Advertisement

I was just chatting with Steve Smith (from IRAQ) about how to register custom controls in 2.0.

In ASP.Net 1.x you needed to add a page directive to every .aspx page in your application (or .ascx). In ASP.Net 2.0, you can define this at the web.config level.

After you add this section to your web.config, you should have complete intellisense access to it from your .aspx pages. In addition, as you will see in the sample above, you can also declare user controls the same way.

Read: Global Controls via the Web.config

Topic: Charles Petzold on .Net Rocks Previous Topic   Next Topic Topic: Firefox tweak program built in .NET

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use