p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 (http://p2p.wrox.com/forumdisplay.php?f=252)
-   -   Overloading Greeting Card Resize Method (http://p2p.wrox.com/showthread.php?t=69492)

tmahmud July 20th, 2008 12:32 PM

Overloading Greeting Card Resize Method

I am trying to create create overload so that I can save the image in different name and not over write the existing the image. On notes it says to use the overload but I am not sure how to implement that. Do I write it in the code behind or in the imaging class itself? A sample snippet will be very much appreciated?

Thank you,

Imar July 20th, 2008 05:46 PM

Hi there,

Simply create a copy of the existing method in the same class, add the keyword Overloads and one or more extra parameters (like ByVal overwrite As Boolean) and you're good to go. From then, you can call the new method by supplying additional parameters.

For more info:


Hope this helps,


Imar Spaanjaars
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.

All times are GMT -4. The time now is 09:45 PM.

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