You usually see (Sender As Object, e as EventArgs) in a sub when it's called by an 
event, like clicking a button.
 
However, if you were already within a sub and wanted to call another sub, you would 
not need this.  You would only have to supply any parameters that the second sub may 
have.
 
Mark

Mat�as Ni�o ListMail <[EMAIL PROTECTED]> wrote:
Hey guys, 

I'm try to give a crack at learning ASP.NET and while I know this list is mainly 
classic ASP, I'm just going to throw this out there to see if anyone might know...

In ASP.NET I see Sub procedures everywhere with the following parameters: (Sender As 
Object, e as EventArgs). 

Sometimes I see the parameters there, and sometimes I don't. What are they and what do 
they do? For instance, the Sub Page_Load() event sometimes has them in there and 
sometimes doesn't. When should they be included and when not? 

I've searched far and wide to find the answer, but all I can find is code sample 
instances and no explanations. 

Thanks in advance to anyone can that shed some light,
Matias


---------------------------------------------------------------------    
Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post       : [EMAIL PROTECTED]
Subscribe  : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 


Yahoo! Groups SponsorADVERTISEMENT


---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/active-server-pages/
  
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to