Passing Parameters to a Function

P

Paul Allan

I am new to ASP.net (intermediate ASP developer). I am developing a ASP.net
web application and I am having some difficulty calling and passing
parameters to a function that is declared in my "codebehind" page.



Function declaration:

Sub MyFunction(ByVal sender As Object, ByVal e As System.EventArgs)

I want to receive and process parameters here.

End Sub



I know that I am calling the function by it's address (using a delegate).



The function call (called from an anchor tag when the user clicks it):

<a HREF='www.myURL.com' ID='ExampleTag' onserverclick='MyFunction("want to
pass parameters here")' runat=server></a>



I am assuming that the "e" argument that is defined in MyFunction should
receive any parameters, but how do I pass them for this to happen?



Any help would be appreciated.



Thanks,



Paul.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top