Form data to DLL function

N

NewEnglandCamper

Another ASP.NET (using C#) Newbie here.

I need to pass form data from my ASP.NET generated page to a C# library
(which I'm am also writing). I've tried using HTTPRequest without no
success.

What is the best approach to complete this? Any sample code? Any ideas?

The code is restricted so I can't post it.

thanks!

BC
 
S

Scott Allen

If this is a class library, you can reference the library from your
asp.net project and use the types from the library directly. Create
new instances of the types and call methods passing the data as
parameters.
 
E

Eliyahu Goldin

You can use session variables. In the dll this will do:

System.Web.HttpContext.Current.Session["myVariable"]

Eliyahu
 

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

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top