Monday, June 14, 2010

Export ASP.Net GridView to PDF and XLS using iTextSharp

http://www.aspsnippets.com/Articles/Export-ASP.Net-GridView-to-PDF-with-Custom-Columns-Widths-using-iTextSharp.aspx

http://sourceforge.net/projects/itextsharp/

Adding Custom Header in Gridview

protected void gViewEdit_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.Header)
{
GridView gView = (GridView)sender;
GridViewRow gViewRow = new GridViewRow(0, 0, DataControlRowType.Header, DataControlRowState.Insert);
TableCell tblCell = new TableCell();
tblCell.Text = "Admission Report";
tblCell.ColumnSpan = 13;
tblCell.HorizontalAlign = HorizontalAlign.Center;
tblCell.Font.Size = 16;
tblCell.Font.Bold = true;
gViewRow.Cells.Add(tblCell);
gView.Controls[0].Controls.AddAt(0, gViewRow);
}
}

Wednesday, May 5, 2010

CheckBoxList Validator

An ASP.NET 2.0 Validator Web Control for CheckBoxes and CheckBoxLists
http://scottonwriting.net/sowblog/posts/10039.aspx

Wednesday, July 1, 2009

Can’t Play Flv files from Windows 2003 Server

Steps To Follow.

1. Open the site to configure in IIS. Right click and select "Properties"
2. Click the HTTP Headers Tab, select “File Types” under the MIME Map section, and then click "New Type". Enter the following:
1. Associated Extension box: .flv
2. MIME Type box: flv-application/octet-stream
3. Click "OK" and close the IIS Properties box
4. You may need to restart IIS( start->run->iisreset).

Tuesday, May 5, 2009

Rename MSSQL Server Database Name

ERROR: The database could not be exclusively locked to perform the operation.

SOLUTION:

ALTER DATABASE SET SINGLE_USER WITH ROLLBACK IMMEDIATE
GO
SP_RENAMEDB ,
Go
ALTER DATABASE SET MULTI_USER -- set back to multi user
GO

Monday, April 13, 2009

HDML

HDML - Handheld Device Markup Language
http://developer.openwave.com/dvl/tools_and_sdk/phone_simulator/choosing.htm

Image Gallery


http://www.outcut.de/MooFlow/MooFlow.html
http://net.tutsplus.com/articles/web-roundups/50-excellent-image-galleries-you-can-use-today/
http://jqueryfordesigners.com/slider-gallery/comment-page-8/