" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

Default behaviour of the entity datamodel while setting the default value of a field in SQL’s field designer

Posted on November 24th, 2015 by Swati Gupta

What should be the default behavior of LINQ-to-Entities while setting the default value of a field in SQL’s field designer ? Sometimes it’s difficult to come up with a topic that we feel inspired to write about. I am writing about the problem I encountered while working with entity datamodel. After discussing with the team […]

Insert bulk data using XML serialization and XQuery

Posted on November 23rd, 2015 by Priyojit Mondal

Suppose I have a grid showing the entries of all employees (ID, Name, Exp etc.) and I have to store the checked row’s ID , Name, Address, Contact to a different table. So 1000+ row checked at a time will be a common senario. So there is a very simple and efficient way to insert […]

IIS 7.5 deploying errors and their solutions

Posted on November 23rd, 2015 by Smruti Sahoo

While deploying my web project created using VS 2010(.Net 4.0) on OS Windows 7 and IIS 7.5 I got the following errors which took some time to be resolved. I am sharing the information here so if anyone else faces the same situation, the solution is at hand. Error-1 404.2 the page you are requesting […]

Increase LINQ to ENTITY performance using Compiled Query

Posted on November 23rd, 2015 by TUSHAR MISHRA

If you are having an application that executes structurally similar queries many times in the Entity Framework, you can increase the performance by compiling the query once and executing it several times with different parameters. For example if you are building a web application which is going to get thousands of hit per hour by […]

Set tag in ASP.NET 4.0 at the page directory level

Posted on November 23rd, 2015 by Chittaranjan Nahak

<Meta> tag which helps the Search engine to search the page better , Now can be set at the page directory in asp.net 4.0  but in asp.net previous version like 3.5, 3.0, we can not set in the page directory level like <%@ Page Language=”C#” AutoEventWireup=”true” CodeBehind=”Default.aspx.cs” Inherits=”Meta._Default” MetaDescription=”Delete row from datadabse using LINQ” MetaKeywords=”DeleteLINQ” […]

How to disable a label/ non-input type fields in ASP.NET4.0

Posted on November 23rd, 2015 by Chittaranjan Nahak

In ASP.NET 4.0, if we write code as I have reproduced below: <strong> <asp:Label ID=”lblValue” runat=”server” Text=”Test” Enabled=”false”></asp:Label> </strong> <asp:TextBox ID=”txtName” runat=”server” Enabled=”false” Text=”HI”></asp:TextBox> Then it will render it as   <strong> <span id=”lblValue”>Test</span> </strong> <input name=”txtName” type=”text” value=”HI” id=”txtName” disabled=”disabled” /> But it will disable the text box Field but not the label field […]

File Download from the GridView rows in ASP.NET 4.0

Posted on November 23rd, 2015 by Tadit Dash

In .aspx page : —————— – Inside <asp:GridView -> columns tag add one template field like below :- <asp:TemplateField HeaderText=”Screen Shot”> <ItemTemplate> <asp:Image ID=”screenShot” runat=”server” ImageUrl='<%# Eval(“screenshot”) %>’ CssClass=”image” AlternateText=”No Screenshots available”/> <asp:LinkButton ID=”lnkDownload” runat=”server” CommandArgument='<%# Eval(“screenshot”) %>’ CommandName=”cmd”>Download</asp:LinkButton> </ItemTemplate> </asp:TemplateField> – Add one OnRowCommand=”GridView1_RowCommand” event inside <asp:GridView tag. In .cs page : —————— -Define […]

Creating Downloadable PDF in ASP.NET With Client Side Event Call

Posted on November 23rd, 2015 by Priyojit Mondal

Scenario : There will be a button, when user clicks it, a dialog box will open that provides user with two options, either user can directly view or save the pdf file in his/her local machine. The pdf will contain all the details of a perticuler user whose first and last name will be given […]

How To Get The In Place Editor Control From A Particular Cell Of A RadGrid If ItemTemplate Is Used For It

Posted on November 23rd, 2015 by Smruti Sahoo

We can edit the items /rows of a RadGrid in three ways either using a EditFormTemplate / using a new page for its edit mode / by using inplace editor of the RadGrid. If we used item template for the RadGrid to view or edit its data then we have to get the instance of […]