Recent Posts

0
Comments

Delete Duplicate Value from SQL Data Table by Stanly

v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} In this article, let’s see how to delete a duplicate record which does not have primary key. For example, in...
Filed under:
1
Comments

Replace null value databind item with default value by Stanly

Here’s the code to set default value to gridview/datalist itemtemplate if it is bound with null value or the dataset returns null value. < asp : TemplateField HeaderText ="Header"> < ItemTemplate > < asp : Label ID ="lbl_amt" runat ="server...
Filed under:
6
Comments

Remove Duplicate Words in C# using Regular Expression by Stanly

Any application which gets input from users or from any other application has the possibility of containing unnecessary and junk values.There are several other option to remove such duplicate values and here i have implemented using Regular Expressions...
Filed under: , ,
8
Comments

Send GridView as Excel attachment in Mail by Stanly

This code illustrates you how to send Gridview content as an Excel Attachment in Email. The Gridview Markup looks like this… <% @ Page Language ="C#" AutoEventWireup ="false" CodeFile ="GridMail.aspx.cs" Inherits ="GridMail" %> <! DOCTYPE html...
Filed under: , , ,
1
Comments

Microsoft Community Contributor Award - 2011 by Stanly

Am glad to share u that I've been awarded the "Microsoft Community Contributor Award - 2011". and here's my notification.... Dear Contributor , Congratulations! We’re pleased to inform you that your contributions to Microsoft online technical communities...
5
Comments

Prevent Flicker from Ajax CollapsiblePanelExtender on Postback by Stanly

Let’s see how to fix the flickering of the CollapsiblePanelExtender when collapsed is set to true ( Collapsed ="true") Here is my CollapsiblePanelExtender < cc1 : CollapsiblePanelExtender ID ="CollapsePanel1" runat ="server" SuppressPostBack ="true...
Filed under: , ,
1
Comments

Ajax AutoComplete Extender Content Overridden Issue by Stanly

While using AutocompleteExtender, we could notice where the other controls are been overridden and the autocomplete extender text being overlapped by the other controls near by.This could be overcome by calling the OnClientShown property of the AutocompleteExtender...
Filed under: , ,
3
Comments

Ajax AutoComplete Extender like Google by Stanly

You might have noticed while searching in Google, the search keywords will be bold. Let’s see how to perform this in ASP.NET. We can do this using JavaScript < script > function BoldChildren(){ var behavior = $find( 'AutoCompleteEx' ); var target...
Filed under: , ,
1
Comments

Convert Url String to Hyperlinks by Stanly

using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System...
Filed under: ,
0
Comments

Implementing Search In Datalist and Highlight Search Text by Stanly

Let us see how to highlight the search keywords to make it easy for the user to identify his search results better. To perform this am using the Regex function to Highlight the search keywords. This is the function used for highlighting .. protected string...
Filed under: , ,
More Posts Next page »