asp.net C# calling VB dll function

R

ray

Hi All,

I have a DLL created by VB.net with the following function:

Public Shared Function Upload(ByRef thePage As Page) As String

I have no problem calling from a VB.net ASPX page, but having problem
with C# page with the following call:

protected void Page_Init(object sender, EventArgs e)
{
string msg = "";
msg = UploadLIB.Upload(ref Page);
}

Compiler Error Message: CS0206: A property or indexer may not be passed
as an out or ref parameter

Thanks for help.

Ray
 

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,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top