Saturday, 18 October 2014

Create an N-tier Architecture application.

In this Architecture we have multiple application . Where we bi-fercate a single application into multiple application .
Generally we use a single application to have the data model and the multiple application.
But for a N-tier architecture the application is divided into multiple application
like

DAL (Data Access Layer )
BAL (Business Access Layer )
Presentation Layer( It include MVC , ASP.Net )

Here we have a concept  in which we use a wrapper class where wrapper class represents the DataBase.

if we have a table in data base table like Employee the attributes are Emp_id , Emp_name , Emp_age , Emp_address

then you will have to make a class in your class library .

we have to make a GET or SET function with the use of encapsulation method .

Saturday, 11 October 2014

Type conversion in Visual Basic.

There are many different type of casting by which we can convert the data from one format to another.

CBool - converting to boolean .
CByte - converting to Byte .
CInt - converting to int .
CLng - Converting to long .
CDes- converting to decimal .
CStr - converting to string.
CUint - converting to int .
CUlng - convertingto ultra long .

Wednesday, 8 October 2014

How to add constructor to a clasS in VB.NET

While making  the class create a function named "new"

public class  NameOfTheClass

public sub new ()
End sub

public Sub new( str As String , Str1 As String )
End Sub
End class



This is a small example to show how to make the constructor

how to initialize variables in VB.NET

VB is a very basic language. Its has a very was history .Is not type safe is C#.NET.
VB was created for the ease and flexibility in programming.

NOW, initializing variable in VB.

Dim var As Integer 
Dim str As String  

Here we have initialize two different variable to int  and string Data Type.
We do not need to write semicolon (;) in the end of  the code a VB script .

Tuesday, 7 October 2014

What to choose from Inherits or Implements in VB

Its very simple to understand that ,
when we are having two  class  CLS1 & CLS2
then we have to use INHERITS

but in case we are having a class and a interface  CLAS1 & INTERFACE
then wee have to use  IMPLEMENTS 

Tuesday, 30 September 2014

AngularJs is a Framework of the Jscrit to work in a better way .

A basic knowledge of HTML,cssand JScript is requiredbefore starting angular js.
ng-directives are uses to extentHTML content.
and we need to download the AngualrJs
CLICK HERE
After adding the AngularJs to your web page it will automatically gets loaded to your web page .
'ng-app' directive is added to div which tells the js that div is the owner of the AngularJs  applicaion

<div ng-app="">
------
------
</div> 

"ng-model" it binds the inserted values with a variable name

<p>The name of the User is <input type="text" ng-model="first_name"/></p>

here the firstname is the variable is which the value is being entered
now we will bind this value to any other component . which is called as two way binding
this can be get by 'ng-bind'

<p>The name of the User is <input type="text" ng-model="first_name"/>>/p>
<p ng-bind='first_name'>
</p>

Links from making the animation in XAML.