Solved

Place a hyperlink in the code behind in ASP.NET or VB to link to a function

Posted on 2007-04-08
3
1,146 Views
Last Modified: 2011-10-03
Has anyone placed a hyplerlink in the code behind (VB) part of a web page in VB.NET or ASP.NET to take the programmmer directly to a function or sub procedure?  Say for example, I have a function to do a date conversion and it's way at the bottom of the code, can I place a hyperlink at the top of the page to link to that function?  Thanks
0
Comment
Question by:friskee
3 Comments
 
LVL 24

Expert Comment

by:Jeff Certain
ID: 18873928
Well, aside from the question of whether you ought to have business logic on your UI page... what about the two dropdowns right on top of the IDE? The right-most one allows you to pick the sub/function you want to jump to.

Or am I missing the point?
0
 

Author Comment

by:friskee
ID: 18874016
yes, we could do that, but I'm looking for something in addition to that.  I've made the names of the functons and sub procedures as descriptive as possible as far as their purpose is concerned, but just looking for another way to make them quicker to get to.  If I'm a programmer coming into the program, short on time, and I need to make a quick change... do any of you think this is excessive?
0
 
LVL 15

Accepted Solution

by:
igor_alpha earned 125 total points
ID: 18874109
Hi, friskee!
Problem can be soved using XML Tags for documentation comments

You can place tags "remarks" and "see" under class declaration.
Partial Public Class _Default
    Inherits System.Web.UI.Page

'''<remarks>Powerful function
    ''' <see cref="GridView1_Sorting"/>
    ''' </remarks>
....

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
...
End Sub

...

Protected Sub GridView1_Sorting(ByVal sender As System.Object, ByVal e As System.Web.UI.WebControls.GridViewSortEventArgs) Handles GridView1.Sorting
...
End Sub

///
Then, on clicking function name with "CTRL" key you will automatically navigate to function declaration.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now