Gridview row edit, delete and update code in

As Gridview is a data source control which binds data from backend sql server or any other database table. Here is the code which implements edit, delete and update functionality in a single Gridview. Gridview Edit,Update and Delete functionality code: ASPX Code: <asp:GridView ID=”gvDetails” DataKeyNames=”id” runat=”server” AutoGenerateColumns=”false”                  … Read more

Object initializers and Collection initializers in ?

Object initializer in, 4.0 features. Object initializers is one of the most important feature of C # 3.0.What is Object initializers?Using Object initializers we can initialize a object of that type without explicitly invoking the constructor of that particular type. Object initializers:I will explain this with a piece of code:class Student{    public … Read more

What are Application Pages in SharePoint?

Application pages are very important in context of SharePoint. Application pages are stored in layout folder. Unlike site pages (for example, default.aspx), a custom application page is deployed once per Web server and cannot be customized on a site-by-site basis. Application pages are based in the virtual _layouts directory. In addition, they are compiled into … Read more

What is Nullable types in C#

What is nullable type in C# code? Please explain with an example. Nullable types were introduced in C# 2.0.Nullable types are instances of the System.Nullable<T> struct. A nullable type can represent the range of values for its underlying data type, also an additional null value. For example, a Nullable<Int32>, pronounced “Nullable of Int32,” can be … Read more

Executing Server side code in sharePoint or use of PageParserPath

Executing Server side code in sharePoint or use of PageParserPath Application pages in sharepoint behave like pages where they may contain inline server code.  Wheras site pages are rendered as safe mode parser so there is no problem with these type of pages.The problem comes with application pages i.e. pages. SharePoint will not … Read more