ASP .Net
To Export Pdf file
28/02/2012 16:49
//We have to download iTextSharp assambly(that id dll file).
//And put these header file in our page
using iTextSharp.text;
using iTextSharp.text.pdf;
using iTextSharp.text.html;
using iTextSharp.text.html.simpleparser;
//We have to create gridview(any control)...
GridView Process in asp.net
20/02/2012 10:06
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VendorDetails.aspx.cs" Inherits="SMS.VendorDetails" %>
<%@register Src="~/Header.ascx" TagName="header" TagPrefix="uc1" %>
<%@register Src="~/Footer.ascx" TagName="footer" TagPrefix="uc2" %>
<!DOCTYPE...
Check single selection radio button in gridview in asp.net
20/02/2012 09:56
protected void rbActiveTest_CheckedChanged(object sender, EventArgs e)
{
GridViewRow row = (GridViewRow)((RadioButton)sender).NamingContainer;
foreach (GridViewRow...
alert message
18/02/2012 15:38
public void ExecAlert(string message)
{
ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('" + message + "');", true);
...
upload excel file to sql
18/02/2012 11:58
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using System.Data;
using System.Data.OleDb;
using System.Data.SqlClient;
using...
set serial number in gridview
18/02/2012 11:49
protected void gvCustDet_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
...
Textbox for DOB with validation
25/05/2011 18:31
<td>
Date of...
Accordion control sample
25/05/2011 18:29
<asp:Accordion ID="MyAccordion" runat="server" SelectedIndex="0" HeaderCssClass="accordionHeader"
HeaderSelectedCssClass="accordionHeaderSelected"...
accordion stylesheet
25/05/2011 18:25
/* Accordion */
.accordionHeader
{
border: 1px solid #333;
color: #F4F4F4;
background-color: #999999;
font-family: Arial, Sans-Serif;
font-size: 12px;
font-weight:...