/dev/null [tony lombardo]

Anything and everything ASP.NET and more. Expect to see tips and tricks, opinions on new technology, and fun code samples, along with the occasional rant.
Quick Tip - Migrating TagPrefixes to Web.config

I've written about moving the <%@ Register TagPrefix ... %> directives out of your ASPX pages, and into your web.config.  But one thing I never talked about was - how to do that step.  I always did it manually, but about a year ago, I remember talking with one of the developers on the Project Upgrade Utility.. Well, that discussion to my surprise spawned off a lovely feature..  So here's the simple 2 step process

1) Launch the Infragistics Project Upgrade utility

image

2) Open the options dialog by click on the File menu, and selecting the Settings menu item.  In the options dialog, check off "Add register tags to web.config" (optionally, choose "Add  all assemblies to web.config" which will add assembly references as well).

image 

After saving your settings, the next time you run the Infragistics Project Upgrade utility, it will remove all Infragistics <%@ Register .. %> directives from your ASPX pages, and replace them with the appropriate TagPrefix nodes in your web.config.  Using the settings above, the upgrade utility will also add all Infragistics assembly references to your web.config. 

Posted: 23 Jun 2008, 16:30
Filed under: ,

Comments

Zack Jones said:

That's a neat trick. It is possibile to do an "inplace" upgrade where your project isn't upgraded from one version of NA to another but the assembly information is moved from the pages to the web.config file?

# June 24, 2008 8:46 AM

Tony Lombardo said:

@Zack Jones - Yes, you can 'upgrade' to the same version.

# June 24, 2008 9:15 AM

Ntc Info Tec said:

Dear Sir/Madam,

we are using infra 8.1.. i saw the online web sample help. i tried to use Quick Tip.. but can't use this..

<igx:QuickTip>

so please advice me.

With Regards

NTC

# August 13, 2008 3:29 AM

Tony Lombardo said:

@Ntc - the igx:QuickTip is a custom control created just for the samples browser.  It's not part of NetAdvantage for ASP.NET, so there isn't any documentation available for it.  It's contained in the Infragistics.Guidance.dll which can be found in the bin directory of the samples.

# August 19, 2008 4:16 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS