We pass data to the method using arguments.When we call the method we pass arguments which are assigned to the parameters defined by the method.After executing the logic method can return values to the caller using the return statement. For example the following method accepts two parameters and returns the sum of the parameters as […]
Archives for June 2015
Conditional Preprocessor directives in C#
C# Preprocessor directives are commands for the compiler so they affect the build process.Since they affect the build process so they are useful in several common scenarios.Here we will look into some of the Conditional Preprocessor directives in C#.Conditional Preprocessor directives are used to include or exclude portions of code in the build. When writing […]
HTML5 new input types
One of the main design goals of HTML 5 is to reduce the dependency on third party libraries and plugins.HTML 5 includes many of the features which are commonly required by the client so that instead of relying on the client side frameworks and libraries we can directly use the HTML 5 native features. One […]
Writing a simple jQuery plugin
jQuery is the most popular and commonly used JavaScript library.It makes it relatively easy to implement common functionalities .Also unlike JavaScript we don’t need to write lot of code for the common operations.Its sometimes referred to as “Do more write less” library. Though jQuery provides lots of commonly functionality, out of the box, which is sufficient in most […]
jQuery document ready vs window onload
One of the common requirements while working with web applications is to execute some script as soon as the web page loads. As the javascript or jQuery executes on the browser so we have to ensure that the document or the web page is loaded by the browser before the script can be executed.Two common ways to […]