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,169 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

717 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