Posts

Showing posts from November, 2015

MVC application for Starters .

MVC is the framwork for creating Webapplication , in this we have bifercated the different components of the webapplicationas into different categories . M stands for model , which menas the datalayer in the form of a model . V stands for view this is the the html pages which is manupulated using the model and the controller. C which means controller, the controller is the class having multiple methods these methods are used to call the views . Basically the Controller is just a method function of the class inside the controller.MVC dll that is System.Web.MVC which contains the details that how the calling process can be carried by the action method. View are genrated using the Razor Engine which works when a view is called by the user. Razor engine Renders the whole html page and sends It as the response . Lets have a small example of creating MVC application . * Open visual studio. * Click File option. * Click new option. * Click the project option to start creati...

Functions in VB.Net ?

In Vb.net we use procedure in place of function. Procedure is a group of statements which combined together perform a task. VB.net has two types of procedure Functions   Sub Procedure or Subs Funcion returns a value where as sub are non- return type procedure. Function  Example Function FindMax(ByVal num1 As Integer, ByVal num2 As Integer) As Integer    ' local variable declaration */    Dim result As Integer    If (num1 > num2) Then        result = num1    Else        result = num2    End If    FindMax = result End Function Sub Procedure Or Sub's Example    Sub CalculatePay(ByVal hours As Double, ByVal wage As Decimal)       'local variable declaration       Dim pay As Double       pay = hours * wage       Console.WriteLine("Total Pay: {0:C}", pay)    End S...