Friday, June 22, 2012

Parse and TryParse

Parse
   This function will take a string and convert it and then return the integer.
It will throw FormatException if it cant parse
Throw OverflowException if it is too large
Throw ArgumentException if it is null value

TryParse
   This wont throw any exception. It returns a boolean if it was able to successfully parse a number
ex., int.Tryparse(string, out result).

Data Controls


Repeater :

    It contains  Header Template, Item template , alternate
Item template and footer template . it can't support
Selection, editing, sorting and paging. this is read only
and fast.


Datalist :

   It contains Header Template, Item template , alternate
Item template , Edit item template and footer template . it
can't support sorting and paging but supports selection and editing


DataGrid(or GridView) :

It contains Header Template, Item template , alternate Item
template , Edit item template and footer template .it can
support selection, editing , sorting and paging . Mostly
every developer caught used this control  .