Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 11th, 2005, 03:13 AM
Registered User
 
Join Date: Oct 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to khaledriyal Send a message via Yahoo to khaledriyal
Default How to call C# COM overloaded functions from ASP?

Hi..
i created a C# COM wrapper for my application using Enterpriseservices, but a problem arised when i tried to overload some functions and call them from my ASP page.
for example i had these 3 functions:
public bool Add_Edit_Book(string Data ,string strXML,long ProID,string ErrorInfo,ref long intNewProID)

public bool Add_Edit_Book(string Data ,string strXML,long ProID,string ErrorInfo)

public bool Add_Edit_Book(string Data ,string strXML,long ProID)

the problem is when calling them from ASP.
i can only call the first one that appeared in my code!!
i made my search and found that i can call the 2nd and the 3rd like.
Add_Edit_Book_2(....)
Add_Edit_Book_3(....)
respectively.
but this will cause a lot of problem knowing that the application in ASP that uses this COM has already been written without this name differences.
so is there any other way to make these 3 overloads have same name when called from and ASP page?

Appreciate your help and thanks in advance :)








Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto call VBA functions using Java kotaiah Java Basics 2 June 20th, 2007 10:13 AM
Dynamically call javascript functions austinf Javascript 1 May 13th, 2006 07:31 AM
call functions of dll Digon Classic ASP Basics 1 December 13th, 2005 06:12 AM
C# Overloaded Method argument problem Scott Rider C# 1 January 3rd, 2005 06:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.