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,160 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

809 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