Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

Is there any way:
1. To get list of all Web Forms used in Web site and also
2. To get all Stored Procedures used in each Web Forms

when we run application.

I want to produce an html report in a Web Form of that website which shows all Forms in that WebSite and all Stored Procedures in each Forms.

If you have a solution than please suggest me.

Thanks.
Posted

Quote:
To get list of all Web Forms used in Web site and also


You are gonna have to crawl the website (i.e. read the html source) by firing HttpRequests or by using WebClient to get all the URLs in a web page and then filter the ones with ".aspx" extensions. Most likely the navigation menu in a website would always have those urls in the anchor tags in their "href" attribute. You are gonna have to read those.

Quote:
To get all Stored Procedures used in each Web Forms


This cannot be done. Since any server side code would be the C#/VB code behind that you won't get access to unless its your own web site on your server in which case, why would you even need such a automated program in the first place? you can just look into the code directly and jot down the SPs in a notepad with a pen.
 
Share this answer
 
Comments
fjdiewornncalwe 11-Oct-12 15:53pm    
+5. Just added a little to the concepts you bring up in your answer. Cheers.
I.explore.code 11-Oct-12 16:37pm    
cheers for that Marcus!
Adding to the Answer from Aman.A (Solution 1):

If this is your own site for which you have access to the source, then adding a simple SiteMap would take care of your first issue. If this is someone else's site, then the question is why do you need to? If it turns out that there is a valid reason (which is very likely) then you would have to crawl the site as Aman has explained already.

For the Stored Procedures, again I'll say that if this is your own site, then you simply have to go through all the pages in your site and note all the procedures being called. Building an automated system for this is pretty much pointless. If the site you want to map is not your own and you don't have access to the source, then you are out of luck for good reason. If I write a site, I do not at any time want my server side architecture to be available to the public for its perusal. It is the exact reason there are layers built between the UI and background resources.
 
Share this answer
 
Comments
I.explore.code 11-Oct-12 16:39pm    
+5 for SiteMap! :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900