Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Changing Private Sub Upload() ?
Old 07-13-2008, 01:20 PM Changing Private Sub Upload() ?
Extreme Talker

Posts: 216
Trades: 0
I have received help when I asked how to add a 2nd Input Box to the freeASPupload script. Most of the help I received was in the form of modifying the code in the uploadtester.asp file. And it worked successfully.

Part of this modification included changing:

"Private Sub Upload()
to
Public Sub Upload()"

in the freeASPupload.asp file. Which I did.

My question is, can you please tell me if there are any ramifications to
changing Private Sub Upload() to Public Sub Upload() ?

Is this particular Private to Public change bad, good, or insignificant?
I guess I'm asking, is there a downside to making this particular change?

Thanks.
chrisj is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-13-2008, 03:24 PM Re: Changing Private Sub Upload() ?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Nope.

Using public simply means the method can be accessed from other pages where the class is declared.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-14-2008, 08:57 PM Re: Changing Private Sub Upload() ?
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Insignificant. The downside to broadening the access modifier is that calling code will have one more method to decide amongst. That means you have to use descriptive names, like Upload, to do an upload.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Changing Private Sub Upload() ?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.39577 seconds with 12 queries