PDA

View Full Version : Calling VB.Net code from ASP


perpetualpr
01-19-2005, 10:36 AM
Hi,
Can someone please tell me how to call a function in my VB.Net project (that I stored on the server) from an Asp script?Do I have to use Asp.Net to do this or will Asp script work? Sample code would help a lot.

Thanks
-Doug


Douglas Schofield

bruce
01-19-2005, 11:41 AM
don't think you can access a vb.net class w/ asp.

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

perpetualpr
01-20-2005, 05:53 AM
I have an ASP.Net program that is crashing when it executes the commmand



Dim l_ImageFile As System.Drawing.Image = System.Drawing.Image.FromFile(l_str_input_file)


So maybe the question is... How do I access GDI+ classes?




Douglas Schofield

Michael
01-21-2005, 02:20 AM
Nope you cant call vb.net function from ASP.

what is the error message you are getting, for one I think you are missing a New statement in there, but I think you are going
to have a hard time accessing GDI methods in ASP.Net, in otherwords, im "Pretty" sure you cant.

you are talking about calling GDI methods which talk directly to the hardware here, accessing them via a web browser, I dont think you can.

cheers
Michael