Pages

Subscribe:

Ads 468x60px

Tuesday, March 13, 2012

how to call methods in asp.net using c#

In this web programming tutorial we will learn that how we can call or invoke our methods in asp.net using c#.
Invoking your methods is straightforward—you simply type the name of the method, followed
by parentheses. If your method returns data, you have the option of using the data it
returns or just ignoring it:
// This call is allowed.
MyMethodNoReturnedData();
// This call is allowed.
MyMethodReturnsData();
// This call is allowed.
int myNumber;
myNumber = MyMethodReturnsData();

No comments:

Post a Comment