Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Public Private Function


Message #1 by "TechGroups India" <techegroups@r...> on 14 Mar 2001 08:00:13 -0000
I am trying to learn subroutines in ASP+ pages.

I was wondering what will be the use of Public , Private

keywords for Sub and Function. as i feel on Web only 1 page is going to 

execute, so where i will share Sub and Functions.



Can anyone Explain or direct me to any URL on this.



Jignesh.



Message #2 by "Dave Sussman" <davids@i...> on Thu, 15 Mar 2001 16:27:22
The reason for Public Sub/Function in a web page is because everything 

in .NET is an object, even ASP.NET pages. In a page it's not a big issue 

most of the time, but comes into its own when creating user controls 

(small reusable bits of pages), where you can load them dynamically and 

they behave like normal objects. You can set their properties or call 

their methods (any that are marked Public).



Dave





> I am trying to learn subroutines in ASP+ pages.

> I was wondering what will be the use of Public , Private

> keywords for Sub and Function. as i feel on Web only 1 page is going to 

> execute, so where i will share Sub and Functions.

> 

> Can anyone Explain or direct me to any URL on this.

> 

> Jignesh.

> 


  Return to Index