h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

IEnumerable Vs Ilist


S.No IEnumerable List
1 Add/Remove Items doen’t support add or remove items from the list. Supports add or remove items from the list.
2 Further Filtering doesn’t support further filtering. Supports further filtering.

CSS Code -- Browser


S.NoProperty NameDescriptionIEFFOperaChormeSafariRemarks
1animationshorthand property for six of the animation properties[animation-name, animation-duration, animation-timing-function, animation-delay, animation-iteration-count, and animation-direction.]NNNNNIn FireFox (-moz).Safari,chorme(-webkit)
2apperance ou to make an element look like a standard user interface element.NNNNNIn FireFox (-moz).Safari,chorme(-webkit)
3back-sidedefines whether or not an element should be visible when not facing the screen.NNNNNSafari(-webkit)
4backgroundshorthand property sets all the background properties in one declaration.YYYYY
5bordersets all the border properties in one declaration.YYYYY
6bottomFor absolutely positioned elements, the bottom property sets the bottom edge of an element to a unit above/below the bottom edge of its containing element.For relatively positioned elements, the bottom property sets the bottom edge of an element to a unit above/below its normal position.YYYYY
7BoxCreate a Box NNNNNIn FireFox (-moz).Safari,chorme(-webkit)
8Caption sidespecifies the placement of a table caption.YYYYY
9clearwhich sides of an element where other floating elements are not allowed.YYYYY
10clipWhat happens if an image is larger than its containing element? - The clip property lets you specify the dimensions of an absolutely positioned element that should be visible, and the element is clipped into this shape, and displayed.YYYYY
11colorspecify color for a TextYYYYY
12ColumnTo specify columns NNYNNIn FireFox (-moz).Safari,chorme(-webkit)
13Contentused with the :before and :after pseudo-elements, to insert generated content.YYYYY
14Counter Incrementincrements one or more counter values.YYYYY
15Counter-resetcreates or resets one or more counters.YYYYY
16Cursortype of cursor to be displayed when pointing on an element.YYYYY
17Directionspecifies the text direction/writing direction.YYYYY
18displayspecifies the type of box an element should generate.YYYYY
19empty-cellwhether or not to display borders and background on empty cells in a table (only for the "separated borders" model).YYYYY
20floatspecifies whether or not a box (an element) should float.YYYYY
21fontsets all the font properties in one declaration.YYYYY
22grid-columnspecifies the width of each column in the grid.NNYNN
23grid-rowspecifies the Height of each row in the grid.NNYNN
24hanging-punctuationwhether a punctuation mark may be placed outside the line box at the start or at the end of a full line of text.NNYNN
25heightsets the height of an element.YYYYY
26iconthe author the ability to style an element with an iconic equivalent.NNYNN
27Keyframeyou can create animations.gradually changing from one set of CSS styles to another.During the animation, you can change the set of CSS styles many times.NNNNNIn FireFox (-moz).Safari,chorme(-webkit)
28leftFor absolutely positioned elements, the left property sets the left edge of an element to a unit left/right the left edge of its containing element.For relatively positioned elements, the left property sets the left edge of an element to a unit left/right its normal position.YYYYY
29letter-spacingincrease or decrease the space between character in a textYYYYY
30line-height specifies the line height.YYYYY
31list-stylesets all the list properties in one declaration.YYYYY
32marginsets all the margin properties in one declaration. This property can have from one to four values.YYYYY
33max-heightsete the max height of the elementsYYYYY
34max-widthsete the max width of the elementsYYYYY
35min-heightsete the min height of the elementsYYYYY
36min-widthsete the min width of the elementsYYYYY
37navspecifies where to navigateNNNNN
38opacityopacity level of the elementYYYYY
39outlinea line that is drawn around elements (outside the borders) to make the element "stand out".YYYYY
40overflowwhat happens if content overflows an element's box.YYYYY
41overflow-xspecifies whether or not to clip the left/right edges of the content - if it overflows the element's content area.YYYYY
42overflow-yspecifies whether or not to clip the top/button edges of the content - if it overflows the element's content area.YYYYY
43paddingsets all the padding properties in one declaration. This property can have from one to four values.YYYYY
44page-breaksets the page-breaking behavior after an element.YYYYY
45perspectivehow many pixels a 3D element is placed from the view. This property allows you to change the perspective on how 3D elements are viewed.NNNNNSafari(-webkit)
46perspective-originwhere a 3D element is based in the x- and the y-axis. This property allows you to change the bottom position of 3D elements.NNNNNSafari(-webkit)
47positiontype of positioning method used for an element (static, relative, absolute or fixed).YYYYY
48punctuation-trimspecifies whether a punctuation character should be trimmed if it appears at the start or end of a line, or adjacent to another fullwidth punctuation character.NNNNN
49quotessets the type of quotation marks for embedded quotations.YYYYY
50resizespecifies whether or not an element is resizable by the user.NYYNY
51rightFor absolutely positioned elements, the right property sets the right edge of an element to a unit to the left/right of the right edge of its containing element.For relatively positioned elements, the right property sets the right edge of an element to a unit to the left/right to its normal position. YYYYY
52rotation rotates a block-level element counterclockwise around a given point defined by the rotation-point property.NNNNN
53rotation-pointThe rotation-point property is a pair of values that defines a point as an offset from the top left border edge.NNNNN
54table-layoutsets the table layout algorithm to be used for a table.YYYYY
55targetshorthand property for setting the target-name, target-new, and target-position properties.NNNNN
56textcreate a text in an element.YYYYY
57topFor absolutely positioned elements, the Top property sets the Top edge of an element to a unit above/below the Top edge of its containing element.For relatively positioned elements, the Top property sets the Top edge of an element to a unit above/below its normal position.YYYYY
58transformapplies a 2D or 3D transformation to an element. This property allows you to rotate, scale, move, skew, etc., elements.NNNNNIn FireFox (-moz-transform).Safari,chorme(-webkit-transform) ,IE(-ms-transform )
59transitionproperty for the four transition properties:transition-property, transition-duration, transition-timing-function, and transition-delay.NNNNNIn FireFox (-moz-transition).Safari,chorme(-webkit-transition) ,Opera(-o-transition )
60vertical-alignvertical alignment of an element.YYYYY
61visibilityspecifies whether or not an element is visible.YYYYY
62widthsets the width of an element.YYYYY
63white-spacespecifies how white-space inside an element is handled.YYYYY
64word-spacing increases or decreases the white space between words.YYYYY
65word-breakspecifies line breaking rules for non-CJK scripts.YNNNY
66word-wrapallows long words to be able to be broken and wrap onto the next line.YYYYY
67Z-indexspecifies the stack order of an element.An element with greater stack order is always in front of an element with a lower stack order.YYYYY

Farpoint Spread Sheet

                 Today , we will discuss about Farpoint Technology and his Merits and Demerits of Spreadsheet. 
Introduction:
                      It's just an Excel Sheet. It can support. Net Application windows, Web Application and VB6. Separate dll files for Windows, Web Applications and VB6. I hope, it's replacing for Datagridview. Because both are same.

 History of Farpoint Spread Sheet:
 1991 Spread released as a DLL control as the initial product offering from Farpoint Technologies, Inc.
1990s
Spread VBX released.[1]
Spread ActiveX released.
These components are now known as Spread COM.
2003 Spread for Windows Forms released as a completely new managed C# version prompted by the launch of Visual Studio .NET.
2003 Spread for Web Forms (now Spread for ASP.NET) released.
2006 Spread for BizTalk released.[2]
2009 Farpoint Technologies acquired by GrapeCity

 Merits and Demerits of Farpoint Spread:
Merits:
Easy to Access.
Lock Cells
Different types of Cell Type.  
Separate Celltypes for each Cell.
Support Regular Expression.
Support Charts Controls.
Copy and Paste cells.
Supports Windows Windows Azure AppFabric.
Cell Notes
Support Custom Cell Type.
Child Control.
Splitter Bar
Build in Custom Skin and Styles.
Floating Formula Bar.
Automatic Completion.
PDF Export  
Filter Option
Searching.
Validation
CellSpan.
Client Side Column and Row Resize.
Move Scrollbar (Horizontal and Vertical) with or without User interaction.
Bound and unbound mode.
 Demerits:
 One Event for General Cell Type (like Button Click Event)

Conclusion:
  Thanks for reading this Article. I hope, It is very useful to you. Tomorrow onwards, we will read to use Farpoint in .Net Applicaiton.

State Pattern in VB.net

Today we will discuss about the State Pattern in Vb.net
Description:
    State pattern allows an object to change its behavior depending on the current values of the object. Consider the figure 'State pattern example'. It's an example of a BoxStatusoperation. If the state of the BoxStatus is off and you press the switch the BoxStatus will turn off. If the state of BoxStatus is on and you press the switch the BoxStatus will be off. So in short depending on the state the behavior changes.
Create a Class file in the Vb.net Project
Enum BoxStatus
BoxOn = 1
BoxOff = 2
End Enum
Public Shared defaultBoxstatus As BoxStatus = BoxStatus.BoxOff
Public Function displayMessage() As String
If BoxStatus.BoxOn = defaultBoxstatus Then
Return "Box is on"
Else
Return "Box is off"
End If
End Function
Public Sub Pressswitch()
If defaultBoxstatus = BoxStatus.BoxOn Then
defaultBoxstatus = BoxStatus.BoxOff
Else
defaultBoxstatus = BoxStatus.BoxOn
End If
End Sub
Dim Clas As New Class1()
Clas.Pressswitch()
MessageBox.Show(Clas.displayMessage())

Get SQL Server Name in C#.net

Today we will discuss about Get SQL Server Name in C#.net
Get SQL Server Name:
 Add Three References in your Project
·         Microsoft .SqlServer.ConnectionInfo
·         Microsoft .SqlServer.management.Sdk.sfc
·         Microsoft .SqlServer.Smo


Declare namespace:


using Microsoft.SqlServer.Management.Smo;

Drag and Drop ComboBox in your form.
DataTable dataTable1 = SmoApplication.EnumAvailableSqlServers(false); cmbServerName1.ValueMember = "Name"; cmbServerName1.DataSource = dataTable1;

Check Password in Vb.net

Today,we will discuss about the Password Checking using regular Expression in VB.net
Here is a Sample code for Password Checking using Regular Expression in VB.Net


Dim reg As Regex
 reg = New Regex("^(?=.*d)(?=.*[a-z])(?=.*[A-Z]).{6,10}$")
     Dim mat As Match = reg.Match(TextBox1.Text)
     If mat.Success = False Then
         MessageBox.Show("Please enter at least one upper case letter, one lower case letter, and one numeric digit.")
         TextBox1.Text = ""
     End If

Use Ternary Operator in Business Layer in C#.Net

      Today we will discuss about the Ternary Operator in Business Layer in C#.Net.
Example for Ternary Operator :
Create a One Class for Business Layer called BLEmp.cs
Copy and paste in the BLEmp.cs File

Private static string _EmpName;
        public static string EmpName
        {
            get { return _EmpName == string.Empty ? "please Enter Name" : _EmpName; }
            set
            { _EmpName = value;   }
        }
 
Drag and Drop TextBox and Button on the form.
Copy and Paste this code in the Button Click Event
 
BLEmp.EmpName = textBox1.Text;
MessageBox.Show(BLEmp.EmpName); 

State Pattern in VB.net

Today we will discuss about the State Pattern in Vb.net.
Description:
    State pattern allows an object to change its behavior depending on the current values of the object. Consider the figure 'State pattern example'. It's an example of a

Box Status operation. If the state of the Box Status is off and you press the switch the BoxStatus will turn off. If the state of BoxStatus is on and you press the switch the Box Status will be off. So

in short depending on the state the behavior changes.
Create a Class file in the Vb.net Project


Enum BoxStatus
      BoxOn = 1
      BoxOff = 2
  End Enum
Public Shared defaultBoxstatus As BoxStatus = BoxStatus.BoxOff
Public Function displayMessage() As String
        If BoxStatus.BoxOn = defaultBoxstatus Then
            Return "Box is on"
        Else
            Return "Box is off"
        End If
End Function
Public Sub Pressswitch()
        If defaultBoxstatus = BoxStatus.BoxOn Then
            defaultBoxstatus = BoxStatus.BoxOff
        Else
            defaultBoxstatus = BoxStatus.BoxOn
End If
End Sub
Dim Clas As New Class1()
  Clas.Pressswitch()
  MessageBox.Show(Clas.displayMessage()) 

Display Crystal Report title -- Programmatically in VB.net

Today , we will see the Display Crystal Report title -- Programmatically in VB.net
Here is a Code:
Create a Text Object in the Design View.
Call this code in the Crystal report viewer Load event.  

Dim cry As CrystalReport1 = New CrystalReport1()
Dim txtHeader As CrystalDecisions.CrystalReports.Engine.TextObject = cry.Section1.ReportObjects("txtHeader") Dim txtAddress1 As CrystalDecisions.CrystalReports.Engine.TextObject = cry.Section1.ReportObjects("txtAddress1") Dim txtAddress2 As CrystalDecisions.CrystalReports.Engine.TextObject = cry.Section1.ReportObjects("txtAddress2") Dim txtAddress3 As CrystalDecisions.CrystalReports.Engine.TextObject = cry.Section1.ReportObjects("txtAddress3") txtHeader.Text = "IBM" txtAddress1.Text = "OMR Road" txtAddress2.Text = "Chennai" Me.CrystalReportViewer1.ReportSource = cry

Query for getting Table name from database

Today , we will discuss about getting Table name from Database
select table_name from INFORMATION_SCHEMA.tables where Table_Type='BASE TABLE'