Analyze User Control usage and Hyperlinks

This series describes how to analyze ASP.Net source code.

Which page links where

To find hard-coded links in your ASP.Net pages, retrieve the NavigateUrl and DataNavigateUrlFormat properties, like this:

graspx -col 1,5 l NavigateUrl
graspx -col 1,5 l DataNavigateUrlFormatString

Which User Controls are used in my application

To list which page registered which user control, run:

graspx -col 1,5 l Src

If you omit the page name in the output, you can count how many pages reference a given User Control:

graspx -col 5 -count l Src

Which assemblies do your pages rely on?

graspx -col 5 l Assembly

Which Session Fields does your application reference?

graspx -col 5 -count l SessionField

graspx is available for download here.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.