• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 330
  • Last Modified:

How to call C# function in ASPX

I have 1 funcyion wtite C#. I want to call in ASP.
Help me

Thank you.
0
thang74us
Asked:
thang74us
1 Solution
 
InactiveXCommented:
Do you want to call it from an asp page or an aspx page ?
This distinction is crucial
0
 
karlossosCommented:
put the function in your codebehind page Ie: yourpage.aspx.cs
then call it from the normal page Ie: <% call function(); %>
or make you buttons runat="server" or whatever event activates it and call it from the handler also a function in the codebehind page.
0
 
SThorogoodCommented:
You will need to register the .NET (C#) assembly as a COM object. See here:

http://weblogs.asp.net/dneimke/archive/2004/01/31/65330.aspx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now