<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;C08ASXc9fSp7ImA9WhRaEU4.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262</id><updated>2012-02-13T03:17:28.965-08:00</updated><category term="Rdlc" /><category term="CSS" /><category term="CheckBoxList" /><category term="Linq" /><category term="Javascript" /><category term="TreeView" /><category term="DataSet" /><category term="blog Trick" /><category term="GridView" /><category term="Sql Server" /><category term="Rich-text Editors" /><category term="DetailsView" /><category term="Asp.net" /><category term="DataTable" /><category term="Jquery" /><category term="RadioButtonList" /><category term="Asp.net C#" /><category term="Chart Control" /><category term="Java Script" /><title>Code Snippets</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://hamidseta.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>59</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/blogspot/wmBMe" /><feedburner:info uri="blogspot/wmbme" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;A0IMRnkzeyp7ImA9WhRbGE0.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-8580456266964096640</id><published>2012-02-09T08:44:00.000-08:00</published><updated>2012-02-09T09:46:27.783-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-09T09:46:27.783-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linq" /><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net C#" /><title>Order By Class List&lt;&gt; in C#</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/kPsC2F1HtoObbPEhN4pzHCtxHEw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kPsC2F1HtoObbPEhN4pzHCtxHEw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/kPsC2F1HtoObbPEhN4pzHCtxHEw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kPsC2F1HtoObbPEhN4pzHCtxHEw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;Order by Ascending and Descending class List&amp;lt;&amp;gt; in C# :&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Introduction :&lt;/b&gt; In this article i will explain you how to &lt;b&gt;sort class collection ( List&amp;lt;&amp;gt; of class ) in linq c#&lt;/b&gt; . I done the easy code to understand how to uses &lt;b&gt;Order by Ascending and Descending of class list in linq c#&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Class example for sorting class List&amp;lt;&amp;gt; In c#: &lt;/b&gt;Following is the user class example with  constructor in c#.
&lt;pre&gt;
public class User
{
    public int UserId { get; set; }
    public string Firstname { get; set; }
    public User(int userId, string firstname)
    {
        UserId = userId;
        Firstname = firstname;
    }
}
&lt;/pre&gt;
&lt;b&gt;Ascending and Descending Sorting class list in linq C#:&lt;/b&gt;
&lt;pre&gt;List&amp;lt;User&amp;gt; UserList = new List&amp;lt;User&amp;gt;(); 

UserList.Add(new User(1, "bimal"));
UserList.Add(new User(2, "punit"));
UserList.Add(new User(3, "amit"));

UserList = UserList.OrderBy(x =&amp;gt; x.Firstname).ToList();  //Ascending Sorted the class list using linq.
UserList = UserList.OrderByDescending(x =&amp;gt; x.Firstname).ToList();  // Descending Sorted the class list using linq.

&lt;/pre&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-8580456266964096640?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/QBZWsCTCemo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/8580456266964096640/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2012/02/order-by-class-list-in-c.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/8580456266964096640?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/8580456266964096640?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/QBZWsCTCemo/order-by-class-list-in-c.html" title="Order By Class List&lt;&gt; in C#" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2012/02/order-by-class-list-in-c.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkENSXo_cSp7ImA9WhRbGE0.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-8469166228672145131</id><published>2012-02-09T08:14:00.000-08:00</published><updated>2012-02-09T08:24:58.449-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-09T08:24:58.449-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net C#" /><category scheme="http://www.blogger.com/atom/ns#" term="DetailsView" /><title>Add,Update,delete DetailsView in asp.net c#</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/IS6SGuGrLA2Nin7lPG5Vbf5YTNM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IS6SGuGrLA2Nin7lPG5Vbf5YTNM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/IS6SGuGrLA2Nin7lPG5Vbf5YTNM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IS6SGuGrLA2Nin7lPG5Vbf5YTNM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;Add,Update,Delete,paging with DetailsView in asp.net c#&lt;/b&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-brKONj1T1Pc/TzPwYBEwgsI/AAAAAAAAAYs/ODDq65gqL1I/s1600/DetailView.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://2.bp.blogspot.com/-brKONj1T1Pc/TzPwYBEwgsI/AAAAAAAAAYs/ODDq65gqL1I/s320/DetailView.jpg" width="287" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b&gt;Introduction:&lt;/b&gt; In this article i will show you how to &lt;b&gt;bind DetailsView in asp.net c#&lt;/b&gt; . I have implemented all operation like &lt;b&gt;paging ,add ,edit and delete in DetailsView in asp.net c#&lt;/b&gt; .

In following i have written the Css class to format the DetaildView.
&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Html Code for DetailsView in asp.net :&lt;/b&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DetailView.aspx.cs" Inherits="HamidSite.DetailView" %&amp;gt;

&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head id="Head1" runat="server"&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
    &amp;lt;style type="text/css"&amp;gt;
        .DetailsViewClass
        {
            font-family: verdana,arial,sans-serif;
            font-size: 11px;
            color: #333333;
            border-width: 1px;
            border-color: #999999;
            border-collapse: collapse;
            border-style: solid;
        }
        .Header
        {
            background: #b5cfd2;
            border-width: 1px;
            padding: 8px;
            border-style: solid;
            border-color: #999999;
        }
        .Foter
        {
            background: #dcddc0;
            border-width: 1px;
            padding: 8px;
            border-style: solid;
            border-color: #999999;
        }
        .btn
        {
            background: #ffffff;
            border-width: 1px;
            padding: 2px;
            border-style: solid;
            border-color: #999999;
            font-family: verdana,arial,sans-serif;
            font-size: 11px;
        }
        .textbox
        {
            border-width: 1px;
            padding: 1px;
            border-style: solid;
            border-color: #999999;
            font-family: verdana,arial,sans-serif;
            font-size: 11px;
            width: 100px;
        }
    &amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form id="form1" runat="server"&amp;gt;
    &amp;lt;div&amp;gt;
        &amp;lt;asp:DetailsView ID="DetailsViewExample" AllowPaging="true" AutoGenerateRows="false"
            runat="server" Height="50px" CssClass="DetailsViewClass" CellPadding="4" OnPageIndexChanging="DetailsViewExample_PageIndexChanging"
            OnItemCommand="DetailsViewExample_ItemCommand1" OnItemUpdating="DetailsViewExample_ItemUpdating"
            OnModeChanging="DetailsViewExample_ModeChanging" OnItemInserting="DetailsViewExample_ItemInserting"
            Width="270px" OnItemDeleting="DetailsViewExample_ItemDeleting"&amp;gt;
            &amp;lt;Fields&amp;gt;
                &amp;lt;asp:TemplateField HeaderText="First Name"&amp;gt;
                    &amp;lt;ItemTemplate&amp;gt;
                        &amp;lt;asp:Label ID="lblID" Text='&amp;lt;%# Eval("ID") %&amp;gt;' Visible="false" runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;
                        &amp;lt;asp:Label ID="lblFirstName" Text='&amp;lt;%# Eval("FirstName") %&amp;gt;' runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;
                    &amp;lt;/ItemTemplate&amp;gt;
                    &amp;lt;EditItemTemplate&amp;gt;
                        &amp;lt;asp:Label ID="lblIDEdit" Text='&amp;lt;%# Eval("ID") %&amp;gt;' Visible="false" runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;
                        &amp;lt;asp:TextBox ID="txtFirstname" Text='&amp;lt;%# Eval("FirstName") %&amp;gt;' runat="server" CssClass="textbox"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;
                    &amp;lt;/EditItemTemplate&amp;gt;
                &amp;lt;/asp:TemplateField&amp;gt;
                &amp;lt;asp:TemplateField HeaderText="Last Name"&amp;gt;
                    &amp;lt;ItemTemplate&amp;gt;
                        &amp;lt;asp:Label ID="lblLastName" Text='&amp;lt;%# Eval("LastName") %&amp;gt;' runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;
                    &amp;lt;/ItemTemplate&amp;gt;
                    &amp;lt;EditItemTemplate&amp;gt;
                        &amp;lt;asp:TextBox ID="txtLastName" Text='&amp;lt;%# Eval("LastName") %&amp;gt;' runat="server" CssClass="textbox"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;
                    &amp;lt;/EditItemTemplate&amp;gt;
                &amp;lt;/asp:TemplateField&amp;gt;
                &amp;lt;asp:TemplateField HeaderText="City"&amp;gt;
                    &amp;lt;ItemTemplate&amp;gt;
                        &amp;lt;asp:Label ID="lbldob" Text='&amp;lt;%# Eval("City") %&amp;gt;' runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;
                    &amp;lt;/ItemTemplate&amp;gt;
                    &amp;lt;EditItemTemplate&amp;gt;
                        &amp;lt;asp:TextBox ID="txtCity" Text='&amp;lt;%# Eval("City") %&amp;gt;' runat="server" CssClass="textbox"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;
                    &amp;lt;/EditItemTemplate&amp;gt;
                &amp;lt;/asp:TemplateField&amp;gt;
                &amp;lt;asp:TemplateField HeaderText="Address"&amp;gt;
                    &amp;lt;ItemTemplate&amp;gt;
                        &amp;lt;asp:Label ID="lblAddress" Text='&amp;lt;%# Eval("Address") %&amp;gt;' runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;
                    &amp;lt;/ItemTemplate&amp;gt;
                    &amp;lt;EditItemTemplate&amp;gt;
                        &amp;lt;asp:TextBox ID="txtAddress" Text='&amp;lt;%# Eval("Address") %&amp;gt;' runat="server" CssClass="textbox"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;
                    &amp;lt;/EditItemTemplate&amp;gt;
                &amp;lt;/asp:TemplateField&amp;gt;
                &amp;lt;asp:TemplateField HeaderText="Pin No"&amp;gt;
                    &amp;lt;ItemTemplate&amp;gt;
                        &amp;lt;asp:Label ID="lblPinNo" Text='&amp;lt;%# Eval("PinNo") %&amp;gt;' runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;
                    &amp;lt;/ItemTemplate&amp;gt;
                    &amp;lt;EditItemTemplate&amp;gt;
                        &amp;lt;asp:TextBox ID="txtPinNo" Text='&amp;lt;%# Eval("PinNo") %&amp;gt;' runat="server" CssClass="textbox"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;
                    &amp;lt;/EditItemTemplate&amp;gt;
                &amp;lt;/asp:TemplateField&amp;gt;
                &amp;lt;asp:TemplateField HeaderText="Mobile No"&amp;gt;
                    &amp;lt;ItemTemplate&amp;gt;
                        &amp;lt;asp:Label ID="lblMobileNo" Text='&amp;lt;%# Eval("MobileNo") %&amp;gt;' runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;
                    &amp;lt;/ItemTemplate&amp;gt;
                    &amp;lt;EditItemTemplate&amp;gt;
                        &amp;lt;asp:TextBox ID="txtMobileNo" Text='&amp;lt;%# Eval("MobileNo") %&amp;gt;' runat="server" CssClass="textbox"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;
                    &amp;lt;/EditItemTemplate&amp;gt;
                &amp;lt;/asp:TemplateField&amp;gt;
                &amp;lt;asp:CommandField Visible="true" ShowInsertButton="true" ShowCancelButton="true"
                    ShowDeleteButton="true" ShowEditButton="true" /&amp;gt;
            &amp;lt;/Fields&amp;gt;
            &amp;lt;PagerStyle CssClass="Foter" /&amp;gt;
            &amp;lt;FieldHeaderStyle Width="80px" CssClass="Header" /&amp;gt;
        &amp;lt;/asp:DetailsView&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/pre&gt;
&lt;b&gt;C# Code for DetailsView in asp.net c# :&lt;/b&gt;
&lt;br /&gt;
&lt;pre&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

namespace HamidSite
{
    public partial class DetailView : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                bindDetailtView();
            }
        }
        private void bindDetailtView()
        {
            try
            {
                DataSet Ds = GetDataSet("Select * from Employee");
                DetailsViewExample.DataSource = Ds;
                DetailsViewExample.DataBind();
            }
            catch (Exception ex) { throw ex; }
        }
        private DataSet GetDataSet(string Query)
        {
            DataSet Ds = new DataSet();
            try
            {
                string strCon = @"Data Source=ServerName;Initial Catalog=Test;Integrated Security=True";
                SqlConnection Con = new SqlConnection(strCon);
                SqlDataAdapter Da = new SqlDataAdapter(Query, Con);
                Da.Fill(Ds);

            }
            catch (Exception) { }
            return Ds;
        }
        private void ExecuteQuery(string Query)
        {
            try
            {
                string strCon = @"Data Source=ServerName;Initial Catalog=Test;Integrated Security=True";
                SqlConnection Con = new SqlConnection(strCon);
                Con.Open();
                SqlCommand cmd = new SqlCommand(Query, Con);
                cmd.ExecuteNonQuery();
                Con.Close();
            }
            catch (Exception) { }
        }
        protected void DetailsViewExample_PageIndexChanging(object sender, DetailsViewPageEventArgs e)
        {
            DetailsViewExample.PageIndex = e.NewPageIndex;
            bindDetailtView();
        }
        protected void DetailsViewExample_ItemCommand1(object sender, DetailsViewCommandEventArgs e)
        {
            switch (e.CommandName.ToString())
            {
                case "Edit":
                    DetailsViewExample.ChangeMode(DetailsViewMode.Edit);
                    bindDetailtView();
                    break;
                case "Cancel":
                    DetailsViewExample.ChangeMode(DetailsViewMode.ReadOnly);
                    bindDetailtView();
                    break;
                case "New":
                    DetailsViewExample.ChangeMode(DetailsViewMode.Insert);
                    bindDetailtView();
                    break;
            }
        }
        protected void DetailsViewExample_ModeChanging(object sender, DetailsViewModeEventArgs e)
        {
        }
        protected void DetailsViewExample_ItemUpdating(object sender, DetailsViewUpdateEventArgs e)
        {
            TextBox txtFirstname = (TextBox)DetailsViewExample.FindControl("txtFirstname");
            TextBox txtLastName = (TextBox)DetailsViewExample.FindControl("txtLastName");
            TextBox txtCity = (TextBox)DetailsViewExample.FindControl("txtCity");
            TextBox txtAddress = (TextBox)DetailsViewExample.FindControl("txtAddress");
            TextBox txtPinNo = (TextBox)DetailsViewExample.FindControl("txtPinNo");
            TextBox txtMobileNo = (TextBox)DetailsViewExample.FindControl("txtMobileNo");
            Label lblIDEdit = (Label)DetailsViewExample.FindControl("lblIDEdit");

            string Query = "Update Employee Set FirstName='" + txtFirstname.Text + "' ,LastName ='" + txtLastName.Text + "' ,City ='" + txtCity.Text + "',Address='" + txtAddress.Text + "',PinNo='" + txtPinNo.Text + "',MobileNo='" + txtMobileNo.Text + "' where ID =" + lblIDEdit.Text;
            ExecuteQuery(Query);
            DetailsViewExample.ChangeMode(DetailsViewMode.ReadOnly);
            bindDetailtView();
        }
        protected void DetailsViewExample_ItemInserting(object sender, DetailsViewInsertEventArgs e)
        {
            TextBox txtFirstname = (TextBox)DetailsViewExample.FindControl("txtFirstname");
            TextBox txtLastName = (TextBox)DetailsViewExample.FindControl("txtLastName");
            TextBox txtCity = (TextBox)DetailsViewExample.FindControl("txtCity");
            TextBox txtAddress = (TextBox)DetailsViewExample.FindControl("txtAddress");
            TextBox txtPinNo = (TextBox)DetailsViewExample.FindControl("txtPinNo");
            TextBox txtMobileNo = (TextBox)DetailsViewExample.FindControl("txtMobileNo");
            string Query = "Insert into Employee ([FirstName] ,[LastName] ,[City] ,[Address] ,[PinNo] ,[MobileNo]) values ('" + txtFirstname.Text + "' ,'" + txtLastName.Text + "' ,'" + txtCity.Text + "','" + txtAddress.Text + "','" + txtPinNo.Text + "','" + txtMobileNo.Text + "')";
            ExecuteQuery(Query);
            DetailsViewExample.ChangeMode(DetailsViewMode.ReadOnly);
            bindDetailtView();
        }
        protected void DetailsViewExample_ItemDeleting(object sender, DetailsViewDeleteEventArgs e)
        {
            Label lblID = (Label)DetailsViewExample.FindControl("lblID");
            string Query = "Delete from Employee where ID =" + lblID.Text;
            ExecuteQuery(Query);
            bindDetailtView();
        }
    }
}&lt;/pre&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-8469166228672145131?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/wmrYMpwkihg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/8469166228672145131/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2012/02/addupdatedelete-detailsview-in-aspnet-c.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/8469166228672145131?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/8469166228672145131?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/wmrYMpwkihg/addupdatedelete-detailsview-in-aspnet-c.html" title="Add,Update,delete DetailsView in asp.net c#" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-brKONj1T1Pc/TzPwYBEwgsI/AAAAAAAAAYs/ODDq65gqL1I/s72-c/DetailView.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2012/02/addupdatedelete-detailsview-in-aspnet-c.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEYHQXk6eCp7ImA9WhRUGEg.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-5035500283626716928</id><published>2012-01-29T08:47:00.000-08:00</published><updated>2012-01-29T08:55:30.710-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-29T08:55:30.710-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="GridView" /><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net C#" /><title>Export gridview to excel in Asp.net</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/M_0d7jDleqFgwNts0lidR2IlGYk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/M_0d7jDleqFgwNts0lidR2IlGYk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/M_0d7jDleqFgwNts0lidR2IlGYk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/M_0d7jDleqFgwNts0lidR2IlGYk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;Export gridview to excel in Asp.net :
&lt;/b&gt;&lt;br /&gt;
&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-0Yc6cwvc1cs/TyV4RztNWsI/AAAAAAAAAYU/tpQq8MkEZ58/s1600/GridView.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="216" src="http://4.bp.blogspot.com/-0Yc6cwvc1cs/TyV4RztNWsI/AAAAAAAAAYU/tpQq8MkEZ58/s320/GridView.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-7mY0_n9tWp4/TyV4X0IhgGI/AAAAAAAAAYg/B9df92J-01o/s1600/GridViewExported.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-7mY0_n9tWp4/TyV4X0IhgGI/AAAAAAAAAYg/B9df92J-01o/s320/GridViewExported.jpg" width="293" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;
&lt;/br&gt;
&lt;b&gt;Introduction :&lt;/b&gt; In this article i will show you how to &lt;b&gt;export GridView to excel file&lt;/b&gt;. Many times we require to &lt;b&gt;export the GridView to excel shee&lt;/b&gt;t file.I have here written following &lt;b&gt;code in asp.net c# to export the gridview control to excel sheet&lt;/b&gt; file.&lt;br /&gt;
&lt;/br&gt;
&lt;b&gt;Html code for gridview export to excel sheet :&lt;/b&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;asp:GridView ID="GridViewExample" runat="server" AutoGenerateColumns="False" BackColor="White"
    BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4"&amp;gt;
    &amp;lt;Columns&amp;gt;
        &amp;lt;asp:TemplateField HeaderText="City Name" SortExpression="Name" FooterStyle-Width="200px"
            ItemStyle-Width="200px"&amp;gt;
            &amp;lt;ItemTemplate&amp;gt;
                &amp;lt;asp:Label ID="lblCityName" Text='&amp;lt;%#Bind("Name")%&amp;gt;' runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;
            &amp;lt;/ItemTemplate&amp;gt;
            &amp;lt;FooterStyle Width="200px"&amp;gt;&amp;lt;/FooterStyle&amp;gt;
            &amp;lt;ItemStyle Width="200px"&amp;gt;&amp;lt;/ItemStyle&amp;gt;
        &amp;lt;/asp:TemplateField&amp;gt;
        &amp;lt;asp:TemplateField HeaderText="STD Code" SortExpression="STDCode" FooterStyle-Width="100px"
            ItemStyle-Width="100px"&amp;gt;
            &amp;lt;ItemTemplate&amp;gt;
                &amp;lt;asp:Label ID="lblSTDCOde" Text='&amp;lt;%#Bind("STDCode")%&amp;gt;' runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;
            &amp;lt;/ItemTemplate&amp;gt;
            &amp;lt;FooterStyle Width="100px"&amp;gt;&amp;lt;/FooterStyle&amp;gt;
            &amp;lt;ItemStyle Width="100px"&amp;gt;&amp;lt;/ItemStyle&amp;gt;
        &amp;lt;/asp:TemplateField&amp;gt;
    &amp;lt;/Columns&amp;gt;
    &amp;lt;FooterStyle BackColor="#99CCCC" ForeColor="#003399" /&amp;gt;
    &amp;lt;HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" /&amp;gt;
    &amp;lt;PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" /&amp;gt;
    &amp;lt;RowStyle BackColor="White" ForeColor="#003399" /&amp;gt;
    &amp;lt;SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" /&amp;gt;
    &amp;lt;SortedAscendingCellStyle BackColor="#EDF6F6" /&amp;gt;
    &amp;lt;SortedAscendingHeaderStyle BackColor="#0D4AC4" /&amp;gt;
    &amp;lt;SortedDescendingCellStyle BackColor="#D6DFDF" /&amp;gt;
    &amp;lt;SortedDescendingHeaderStyle BackColor="#002876" /&amp;gt;
&amp;lt;/asp:GridView&amp;gt;
&amp;lt;asp:Button ID="btnExport" BackColor="#003399" Text="Export To Excel" runat="server"
    OnClick="btnExport_Click" /&amp;gt;
&lt;/pre&gt;
&lt;b&gt;C# Code to export the gridview to excel sheet :
&lt;/b&gt;&lt;br /&gt;
&lt;pre&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.IO;

namespace HamidSite
{
    public partial class GridviewExportToExcel : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindGridView();
            }
        }

        private void BindGridView()
        {
            try
            {
                DataTable Dt = GetDataTable("Select Name ,stdcode from citytable");
                GridViewExample.DataSource = Dt;
                GridViewExample.DataBind();

            }
            catch (Exception)
            {
                throw;
            }
        }
        private DataTable GetDataTable(string Query)
        {
            DataSet Ds = new DataSet();
            try
            {
                string strCon = @"Data Source=ServerName;Initial Catalog=Test;Integrated Security=True;";  //Conntection String
                SqlConnection Con = new SqlConnection(strCon);
                SqlDataAdapter Da = new SqlDataAdapter(Query, Con);
                Da.Fill(Ds);
            }
            catch (Exception) { }
            return Ds.Tables[0];
        }

        protected void btnExport_Click(object sender, EventArgs e)
        {
            Response.Clear();
            Response.AddHeader("content-disposition", "attachment;filename=GridViewExample.xls");
            Response.Charset = "";
            Response.ContentType = "application/vnd.xls";

            StringWriter StringWriter = new System.IO.StringWriter();
            HtmlTextWriter HtmlTextWriter = new HtmlTextWriter(StringWriter);

            GridViewExample.RenderControl(HtmlTextWriter);
            Response.Write(StringWriter.ToString());
            Response.End();
        }
        public override void VerifyRenderingInServerForm(Control control)
        {
        }
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-5035500283626716928?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/PRPVEpsc6xI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/5035500283626716928/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2012/01/export-gridview-to-excel-in-aspnet.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/5035500283626716928?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/5035500283626716928?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/PRPVEpsc6xI/export-gridview-to-excel-in-aspnet.html" title="Export gridview to excel in Asp.net" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-0Yc6cwvc1cs/TyV4RztNWsI/AAAAAAAAAYU/tpQq8MkEZ58/s72-c/GridView.jpg" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2012/01/export-gridview-to-excel-in-aspnet.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkcAQHc8eCp7ImA9WhRUGE8.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-1173280372354690169</id><published>2012-01-28T23:58:00.000-08:00</published><updated>2012-01-29T00:00:41.970-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-29T00:00:41.970-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="CSS" /><title>Css Class for textbox in asp.net</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0JAdoZK2Lhi3zhy-PnGg3daZk7c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0JAdoZK2Lhi3zhy-PnGg3daZk7c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0JAdoZK2Lhi3zhy-PnGg3daZk7c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0JAdoZK2Lhi3zhy-PnGg3daZk7c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;Css Class for textbox in asp.net&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Introduction &lt;/b&gt;: In this i will show you &lt;b&gt;Css Class for textbox in asp.net&lt;/b&gt; . You just need &lt;b&gt;apply cssClass  that on textbox&lt;/b&gt; .&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;
Css Class for TextBox :&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;style type="text/css"&amp;gt;
    .txtclass
    {
        font-family: Tahoma,Arial, Helvetica, sans-serif;
        font-size: 11px;
        color: #000000;
        font-weight: normal;
        text-decoration: none;
        border: 1px solid #888888;
    }
&amp;lt;/style&amp;gt;&lt;/pre&gt;
&lt;/br&gt;
&lt;b&gt;Apply Css Class to textbox as follow :&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;asp:TextBox ID="txtname" CssClass="txtclass" runat="server"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-1173280372354690169?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/9t5B6K1AjUo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/1173280372354690169/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2012/01/css-class-for-textbox-in-aspnet.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/1173280372354690169?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/1173280372354690169?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/9t5B6K1AjUo/css-class-for-textbox-in-aspnet.html" title="Css Class for textbox in asp.net" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2012/01/css-class-for-textbox-in-aspnet.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkAAQXo9eyp7ImA9WhRUF0g.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-4516878712949105070</id><published>2012-01-28T03:37:00.000-08:00</published><updated>2012-01-28T03:39:00.463-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-28T03:39:00.463-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Jquery" /><title>Detect Browser in Jquery</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/eHUdXvj_YlDGFhdYZEKfnoCCfo0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eHUdXvj_YlDGFhdYZEKfnoCCfo0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/eHUdXvj_YlDGFhdYZEKfnoCCfo0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eHUdXvj_YlDGFhdYZEKfnoCCfo0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;Detect Browser in Jquery&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Introduction :&lt;/b&gt; In this article i will show &lt;b&gt;how to detect browser in Jquery&lt;/b&gt; . Many times we require &lt;b&gt;to detect browser&lt;/b&gt; and need to do code accordingly as per browser. By using following code &lt;b&gt;you can detect Internet Explorer Browser ,Mozila Browser ,Safari Browser  In Jquery&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Jquery Code to Detect Browser :
&lt;/b&gt;&lt;br /&gt;
&lt;pre&gt;   
&amp;lt;script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script src="Scripts/jquery-1.4.1.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type="text/javascript"&amp;gt;
    $(document).ready(function () {
        if ($.browser.msie) { alert('Internet Explorer and Version is ' + $.browser.version) }
        if ($.browser.safari) { alert('Safari Browser .') }
        if ($.browser.mozilla) { alert('Mozila Browser and Version is ' +  $.browser.version) }
    });    
&amp;lt;/script&amp;gt;
&lt;/pre&gt;

&lt;br /&gt;
&lt;br /&gt;
&lt;fieldset&gt;
&lt;legend&gt;Related Other posts&lt;/legend&gt;
&lt;br /&gt;
&lt;table&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/sorting-paging-add-update-delete-in.html" target="_blank"&gt;Sorting, Paging, Add, Update, Delete in GridView&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/check-uncheck-all-checkbox-in-treeview.html" target="_blank"&gt;Check / Uncheck all checkbox in treeview using jquery&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/bind-image-in-datalist-control-in.html" target="_blank"&gt;Image In Datalist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html" target="_blank"&gt;Merge docs files in c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/bind-treeview-in-apsnet-c-using-dataset.html" target="_blank"&gt;Bind Treeview in asp.net c# using dataset&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/checkboxlist-example-in-aspnet-c.html" target="_blank"&gt;CheckboxList example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html" target="_blank"&gt;Send mail in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation using jquery in asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/fieldset&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-4516878712949105070?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/JMYdVJh-6pU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/4516878712949105070/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2012/01/detect-browser-in-jquery.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/4516878712949105070?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/4516878712949105070?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/JMYdVJh-6pU/detect-browser-in-jquery.html" title="Detect Browser in Jquery" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2012/01/detect-browser-in-jquery.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0AHQno9eCp7ImA9WhRUF0k.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-4330277548114787063</id><published>2012-01-28T00:34:00.001-08:00</published><updated>2012-01-28T01:08:53.460-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-28T01:08:53.460-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="GridView" /><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net C#" /><title>Sorting, Paging, Add, Update, Delete in GridView asp.net c#</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/JELejXGTOr2mPT7JSeAdE9Hhcac/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JELejXGTOr2mPT7JSeAdE9Hhcac/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/JELejXGTOr2mPT7JSeAdE9Hhcac/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JELejXGTOr2mPT7JSeAdE9Hhcac/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;Sorting, Paging, Add, Update, Delete in GridView asp.net c#&lt;/b&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-NN7JceoNCx8/TyO3NsBvWzI/AAAAAAAAAYI/yMATm1tMZTs/s1600/GridView_Example.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="183" src="http://3.bp.blogspot.com/-NN7JceoNCx8/TyO3NsBvWzI/AAAAAAAAAYI/yMATm1tMZTs/s320/GridView_Example.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;b&gt;Introduction &lt;/b&gt;: In this article i will show &lt;b&gt;full functional Gridview with Sorting, Paging , Add ,Update ,delete operation&lt;/b&gt; .The &lt;b&gt;GridView control&lt;/b&gt; is used to display the values of a data source in a table. It is very useful asp.net control .Here I have written the code for Sorting , Paging , Update , Delete , Add with footer row .&amp;nbsp;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
The Code for &lt;b&gt;All operations in GridVeiw&lt;/b&gt; that i have written is very easy understand and easy to implement in you application .&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;
Html Code For Gridview with Sorting, Paging , Add ,Update ,delete operation In Asp.net:&amp;nbsp;&lt;/b&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;table&amp;gt;
    &amp;lt;tr&amp;gt;
        &amp;lt;td&amp;gt;
            &amp;lt;asp:Label ID="lblmsg" runat="server" ForeColor="Red"&amp;gt;&amp;lt;/asp:Label&amp;gt;
        &amp;lt;/td&amp;gt;
    &amp;lt;/tr&amp;gt;
    &amp;lt;tr&amp;gt;
        &amp;lt;td&amp;gt;
            &amp;lt;asp:GridView AllowSorting="True" AllowPaging="True" PageSize="3" ID="GVCity" runat="server"
                AutoGenerateColumns="False" OnRowCommand="GVCity_RowCommand" OnPageIndexChanging="GVCity_PageIndexChanging"
                OnSorting="GVCity_Sorting" BackColor="White" BorderColor="#CC9966" BorderStyle="None"
                BorderWidth="1px" CellPadding="4"&amp;gt;
                &amp;lt;Columns&amp;gt;
                    &amp;lt;asp:TemplateField HeaderText="City Name" SortExpression="Name" FooterStyle-Width="200px"
                        ItemStyle-Width="200px"&amp;gt;
                        &amp;lt;ItemTemplate&amp;gt;
                            &amp;lt;asp:Label ID="lblCityName" Text='&amp;lt;%#Bind("Name")%&amp;gt;' runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;
                            &amp;lt;asp:Label ID="lblCityId" Visible="false" Text='&amp;lt;%#Bind("CityId")%&amp;gt;' runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;
                        &amp;lt;/ItemTemplate&amp;gt;
                        &amp;lt;EditItemTemplate&amp;gt;
                            &amp;lt;asp:TextBox ID="txtEditCityName" Text='&amp;lt;%#Bind("Name")%&amp;gt;' runat="server"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;
                            &amp;lt;asp:Label ID="lblCityIdEdit" Visible="false" Text='&amp;lt;%#Bind("CityId")%&amp;gt;' runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;
                            &amp;lt;asp:RequiredFieldValidator ID="rfvEditCityname" ValidationGroup="Edit" runat="server"
                                SetFocusOnError="true" Display="Dynamic" ControlToValidate="txtEditCityName"
                                ErrorMessage="Please , Enter City Name."&amp;gt;&amp;lt;/asp:RequiredFieldValidator&amp;gt;
                        &amp;lt;/EditItemTemplate&amp;gt;
                        &amp;lt;FooterTemplate&amp;gt;
                            &amp;lt;asp:TextBox ID="txtFooterCityName" runat="server"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;
                            &amp;lt;asp:RequiredFieldValidator ID="rfvFooterCityname" ValidationGroup="Footer" runat="server"
                                SetFocusOnError="true" Display="Dynamic" ControlToValidate="txtFooterCityName"
                                ErrorMessage="Please , Enter City Name."&amp;gt;&amp;lt;/asp:RequiredFieldValidator&amp;gt;
                        &amp;lt;/FooterTemplate&amp;gt;
                        &amp;lt;FooterStyle Width="200px"&amp;gt;&amp;lt;/FooterStyle&amp;gt;
                        &amp;lt;ItemStyle Width="200px"&amp;gt;&amp;lt;/ItemStyle&amp;gt;
                    &amp;lt;/asp:TemplateField&amp;gt;
                    &amp;lt;asp:TemplateField HeaderText="STD Code" SortExpression="STDCode" FooterStyle-Width="100px"
                        ItemStyle-Width="100px"&amp;gt;
                        &amp;lt;ItemTemplate&amp;gt;
                            &amp;lt;asp:Label ID="lblSTDCOde" Text='&amp;lt;%#Bind("STDCode")%&amp;gt;' runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;
                        &amp;lt;/ItemTemplate&amp;gt;
                        &amp;lt;EditItemTemplate&amp;gt;
                            &amp;lt;asp:TextBox ID="txtEditSTDCOde" Text='&amp;lt;%#Bind("STDCode")%&amp;gt;' runat="server"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;
                        &amp;lt;/EditItemTemplate&amp;gt;
                        &amp;lt;FooterTemplate&amp;gt;
                            &amp;lt;asp:TextBox ID="txtFooterSTDCOde" runat="server"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;
                        &amp;lt;/FooterTemplate&amp;gt;
                        &amp;lt;FooterStyle Width="100px"&amp;gt;&amp;lt;/FooterStyle&amp;gt;
                        &amp;lt;ItemStyle Width="100px"&amp;gt;&amp;lt;/ItemStyle&amp;gt;
                    &amp;lt;/asp:TemplateField&amp;gt;
                    &amp;lt;asp:TemplateField&amp;gt;
                        &amp;lt;HeaderTemplate&amp;gt;
                            Actions
                        &amp;lt;/HeaderTemplate&amp;gt;
                        &amp;lt;FooterTemplate&amp;gt;
                            &amp;lt;table cellpadding="2"&amp;gt;
                                &amp;lt;tr&amp;gt;
                                    &amp;lt;td&amp;gt;
                                        &amp;lt;asp:ImageButton ID="imgBtnAdd" CssClass="imgButton" ImageUrl="~/Images/save.png"
                                            runat="server" CommandName="AddSave" ValidationGroup="Footer" ToolTip="Save"
                                            CausesValidation="true" /&amp;gt;
                                        &amp;lt;asp:ImageButton ID="ImageBtnCancel" CssClass="imgButton" runat="server" ImageUrl="~/Images/cancel.gif"
                                            CommandName="AddCancel" ToolTip="Cancel" CausesValidation="false" /&amp;gt;
                                    &amp;lt;/td&amp;gt;
                                &amp;lt;/tr&amp;gt;
                            &amp;lt;/table&amp;gt;
                        &amp;lt;/FooterTemplate&amp;gt;
                        &amp;lt;EditItemTemplate&amp;gt;
                            &amp;lt;table cellpadding="2"&amp;gt;
                                &amp;lt;tr&amp;gt;
                                    &amp;lt;td&amp;gt;
                                        &amp;lt;asp:ImageButton ID="imgBtnEditSave" AlternateText="Save" CssClass="imgButton" runat="server"
                                            CommandName="EditSave" ToolTip="Save" ValidationGroup="Edit" CausesValidation="true"
                                            ImageUrl="~/Images/save.png" /&amp;gt;
                                        &amp;lt;asp:ImageButton ID="ImageEditCancel" AlternateText="Cancel" CssClass="imgButton"
                                            runat="server" CommandName="EditCancel" CausesValidation="false" ImageUrl="~/Images/cancel.gif"
                                            ToolTip="Cancel" /&amp;gt;
                                    &amp;lt;/td&amp;gt;
                                &amp;lt;/tr&amp;gt;
                            &amp;lt;/table&amp;gt;
                        &amp;lt;/EditItemTemplate&amp;gt;
                        &amp;lt;ItemTemplate&amp;gt;
                            &amp;lt;table cellpadding="2"&amp;gt;
                                &amp;lt;tr&amp;gt;
                                    &amp;lt;td&amp;gt;
                                        &amp;lt;asp:ImageButton ID="imgLanEdit" ImageUrl="~/Images/edit.gif" CssClass="imgButton"
                                            runat="server" CommandName="CityEdit" ToolTip="Edit" /&amp;gt;
                                        &amp;lt;asp:ImageButton ID="ImgBtnDelete" ImageUrl="~/Images/delete.gif" CssClass="imgButton"
                                            runat="server" CommandName="CityDelete" ToolTip="Delete" /&amp;gt;
                                    &amp;lt;/td&amp;gt;
                                &amp;lt;/tr&amp;gt;
                            &amp;lt;/table&amp;gt;
                        &amp;lt;/ItemTemplate&amp;gt;
                    &amp;lt;/asp:TemplateField&amp;gt;
                &amp;lt;/Columns&amp;gt;
                &amp;lt;FooterStyle BackColor="#FFFFCC" ForeColor="#330099" /&amp;gt;
                &amp;lt;HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" /&amp;gt;
                &amp;lt;PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" /&amp;gt;
                &amp;lt;RowStyle BackColor="White" ForeColor="#330099" /&amp;gt;
                &amp;lt;SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" /&amp;gt;
                &amp;lt;SortedAscendingCellStyle BackColor="#FEFCEB" /&amp;gt;
                &amp;lt;SortedAscendingHeaderStyle BackColor="#AF0101" /&amp;gt;
                &amp;lt;SortedDescendingCellStyle BackColor="#F6F0C0" /&amp;gt;
                &amp;lt;SortedDescendingHeaderStyle BackColor="#7E0000" /&amp;gt;
            &amp;lt;/asp:GridView&amp;gt;
        &amp;lt;/td&amp;gt;
    &amp;lt;/tr&amp;gt;
    &amp;lt;tr&amp;gt;
        &amp;lt;td&amp;gt;
            &amp;lt;asp:Button ID="imgExperiencetInsert" runat="server" Text="Insert Record" OnClick="imgExperiencetInsert_Click" /&amp;gt;
        &amp;lt;/td&amp;gt;
    &amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;&lt;/pre&gt;

&lt;b&gt;C# Code For Gridview with Sorting, Paging , Add ,Update ,delete operation In Asp.net:&amp;nbsp;&lt;/b&gt;
&lt;br /&gt;
&lt;pre&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

namespace HamidSite
{
    public partial class GridviewExample : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lblmsg.Text = "";
            if (!IsPostBack)
            {
                BindGridView();
            }
        }
        private string SortDirection
        {
            get
            {
                if (ViewState["SortDirection"] != null)
                    return (String)ViewState["SortDirection"];
                else return "ASC";
            }
            set
            {
                ViewState["SortDirection"] = value;
            }
        }
        private string SortExpression
        {
            get
            {
                if (ViewState["SortExpression"] != null)
                    return ViewState["SortExpression"].ToString();
                else return null;
            }
            set
            {
                ViewState["SortExpression"] = value;
            }
        }
        private void BindGridView()
        {
            try
            {
                DataTable Dt = GetDataTable("Select Name ,stdcode ,Cityid from citytable");
                DataView DV = Dt.DefaultView;

                if (SortExpression != null)
                {
                    DV.Sort = SortExpression + " " + SortDirection;
                }

                GVCity.DataSource = DV;
                GVCity.DataBind();
                if (DV.Count == 0)
                {
                    imgExperiencetInsert.Visible = false;
                }
                else
                {
                    imgExperiencetInsert.Visible = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
        private DataTable GetDataTable(string Query)
        {
            DataSet Ds = new DataSet();
            try
            {
                string strCon = @"Data Source=Servername;Initial Catalog=Test;Integrated Security=True;";  //Conntection String
                SqlConnection Con = new SqlConnection(strCon);
                SqlDataAdapter Da = new SqlDataAdapter(Query, Con);
                Da.Fill(Ds);
            }
            catch (Exception) { }
            return Ds.Tables[0];
        }
        private int ExecuteQuery(string Query)
        {
            int RowAffected = 0;
            try
            {
                string strCon = @"Data Source=Servername;Initial Catalog=Test;Integrated Security=True;";  //Conntection String
                SqlConnection Con = new SqlConnection(strCon);
                Con.Open();
                SqlCommand cmd = new SqlCommand(Query, Con);
                RowAffected = (int)cmd.ExecuteNonQuery();
                Con.Close();
            }
            catch (Exception) { }
            return RowAffected;
        }
        /// &lt;summary&gt;
        /// Edit , Update , Delete , Cancel in Gridview using RowCommand in c# Code.
        /// &lt;/summary&gt;        
        protected void GVCity_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            switch (e.CommandName)
            {
                case "AddCancel":
                    GVCity.EditIndex = -1;
                    imgExperiencetInsert.Enabled = true;
                    GVCity.ShowFooter = false;
                    BindGridView();
                    break;
                case "AddSave":

                    GridViewRow grvAdd = ((GridViewRow)((DataControlFieldCell)((ImageButton)e.CommandSource).Parent).Parent);
                    TextBox txtFooterCityName = (TextBox)grvAdd.FindControl("txtFooterCityName");
                    TextBox txtFooterSTDCOde = (TextBox)grvAdd.FindControl("txtFooterSTDCOde");

                    string InsertQuery = "Insert into cityTable(Name,STDCode) Values('" + txtFooterCityName.Text.Trim() + "','" + txtFooterSTDCOde.Text.Trim() + "')";
                    if (ExecuteQuery(InsertQuery) &amp;gt; 0)
                    {
                        lblmsg.Text = "City Inserted Successfully";
                        imgExperiencetInsert.Enabled = true;
                    }

                    GVCity.ShowFooter = false;
                    BindGridView();

                    break;
                case "CityDelete":
                    GridViewRow grv = ((GridViewRow)((DataControlFieldCell)((ImageButton)e.CommandSource).Parent).Parent);

                    if (grv != null)
                    {
                        Label lblCityId = (Label)grv.FindControl("lblCityId");
                        String DeleteQuery = "Delete from cityTable where cityid =" + lblCityId.Text;
                        
                        if (ExecuteQuery(DeleteQuery) &amp;gt; 0)
                        {
                            lblmsg.Text = "City Deleted Successfully";

                        }
                        BindGridView();
                        break;
                    }

                    break;
                case "CityEdit":
                    GridViewRow grvEdit = ((GridViewRow)((DataControlFieldCell)((ImageButton)e.CommandSource).Parent).Parent);
                    GVCity.EditIndex = grvEdit.RowIndex;
                    BindGridView();
                    break;

                case "EditSave":
                    GridViewRow grvSaveEdit = ((GridViewRow)((DataControlFieldCell)((ImageButton)e.CommandSource).Parent).Parent);

                    TextBox txtEditCityName = (TextBox)grvSaveEdit.FindControl("txtEditCityName");
                    TextBox txtEditSTDCOde = (TextBox)grvSaveEdit.FindControl("txtEditSTDCOde");
                    Label lblCityIdEdit = (Label)grvSaveEdit.FindControl("lblCityIdEdit");

                    string queryUpdate = "update cityTable set Name = '" + txtEditCityName.Text.Trim() + "', STDCode ='" + txtEditSTDCOde.Text.Trim() + "' where cityid=" + lblCityIdEdit.Text;
                    if (ExecuteQuery(queryUpdate) &amp;gt; 0)
                    {
                        lblmsg.Text = "City Updated Successfully";
                        imgExperiencetInsert.Enabled = true;
                    }
                    
                    GVCity.EditIndex = -1;
                    BindGridView();

                    break;
                case "EditCancel":
                    GVCity.EditIndex = -1;
                    BindGridView();
                    break;
            }
        }
        protected void imgExperiencetInsert_Click(object sender, EventArgs e)
        {
            imgExperiencetInsert.Enabled = false;
            GVCity.ShowFooter = true;
            GVCity.EditIndex = -1;
            BindGridView();
        }
        protected void GVCity_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            GVCity.PageIndex = e.NewPageIndex;
            BindGridView();
        }
        /// &lt;summary&gt;
        /// Gridview Sorting Code in c#
        /// &lt;/summary&gt;       
        protected void GVCity_Sorting(object sender, GridViewSortEventArgs e)
        {
            if (SortExpression != null)
            {
                if (SortExpression == e.SortExpression &amp;amp;&amp;amp; SortDirection == "ASC")
                    SortDirection = "DESC";
                else
                    SortDirection = "ASC";
            }
            SortExpression = e.SortExpression;
            BindGridView();
        }
    }
}
&lt;/pre&gt;

&lt;br /&gt;
&lt;br /&gt;
&lt;fieldset&gt;
&lt;legend&gt;Related Other posts&lt;/legend&gt;
&lt;br /&gt;
&lt;table&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/sorting-paging-add-update-delete-in.html" target="_blank"&gt;Sorting, Paging, Add, Update, Delete in GridView&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/check-uncheck-all-checkbox-in-treeview.html" target="_blank"&gt;Check / Uncheck all checkbox in treeview using jquery&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/bind-image-in-datalist-control-in.html" target="_blank"&gt;Image In Datalist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html" target="_blank"&gt;Merge docs files in c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/bind-treeview-in-apsnet-c-using-dataset.html" target="_blank"&gt;Bind Treeview in asp.net c# using dataset&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/checkboxlist-example-in-aspnet-c.html" target="_blank"&gt;CheckboxList example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html" target="_blank"&gt;Send mail in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation using jquery in asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/fieldset&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-4330277548114787063?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/VmyEaEAalh8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/4330277548114787063/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2012/01/sorting-paging-add-update-delete-in.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/4330277548114787063?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/4330277548114787063?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/VmyEaEAalh8/sorting-paging-add-update-delete-in.html" title="Sorting, Paging, Add, Update, Delete in GridView asp.net c#" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-NN7JceoNCx8/TyO3NsBvWzI/AAAAAAAAAYI/yMATm1tMZTs/s72-c/GridView_Example.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2012/01/sorting-paging-add-update-delete-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0ABSH8ycSp7ImA9WhRUF0k.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-930883339289681927</id><published>2012-01-25T22:48:00.000-08:00</published><updated>2012-01-28T01:09:19.199-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-28T01:09:19.199-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net C#" /><title>Pass arguments to String.Format method in c#</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/nYpjnOJuvML8xE1XRAvA1jmsnNM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nYpjnOJuvML8xE1XRAvA1jmsnNM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/nYpjnOJuvML8xE1XRAvA1jmsnNM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nYpjnOJuvML8xE1XRAvA1jmsnNM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;Pass arguments to String.Format method in c#&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Introduction :&lt;/b&gt; In this article i will show you how &lt;b&gt;to pass the arguments to String.Format method in c#&lt;/b&gt; .
You need to &lt;b&gt;pass comma separated list of arguments to the string.Format method&lt;/b&gt; .There must be argument for each of the place holders .&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Following is the example of String.Format in c# :&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;

&lt;br /&gt;
&lt;pre&gt; string Name ="Seta Hamid ";
 string Country ="India";          
 Response.Write( String.Format("My Name is {0}. I am from {1}.", Name, Country));
&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;Output of the string.Format C#.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;
&lt;br /&gt;
&lt;pre&gt;My Name is Seta Hamid . I am from India. 
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;fieldset&gt;
&lt;legend&gt;Related Other posts&lt;/legend&gt;
&lt;table&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/pass-arguments-to-stringformat-method.html" target="_blank"&gt;Pass arguments to String.Format method in c#&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/get-recursive-all-childs-by-parentid-in.html" target="_blank"&gt;Get Recursive all childs by parentid in sql server &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html" target="_blank"&gt;Merge word document files in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation Using Jquery in Asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/doc-file-to-rtf-format-in-aspnet-c.html" target="_blank"&gt;DOC file to RTF format in asp.net C#.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html" target="_blank"&gt;Send mail in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation using jquery in asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/fieldset&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-930883339289681927?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/aXbFVx8WdJc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/930883339289681927/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2012/01/pass-arguments-to-stringformat-method.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/930883339289681927?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/930883339289681927?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/aXbFVx8WdJc/pass-arguments-to-stringformat-method.html" title="Pass arguments to String.Format method in c#" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2012/01/pass-arguments-to-stringformat-method.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A04HR30yeSp7ImA9WhRUFUU.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-8555316064741514553</id><published>2012-01-12T06:54:00.000-08:00</published><updated>2012-01-26T06:58:56.391-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-26T06:58:56.391-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Sql Server" /><title>Get Recursive all childs by parentid in sql server</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/rrcS_nov9VIiyj5XATnGd_d3dk8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rrcS_nov9VIiyj5XATnGd_d3dk8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/rrcS_nov9VIiyj5XATnGd_d3dk8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rrcS_nov9VIiyj5XATnGd_d3dk8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;

Get Recursive all childs by parentid in sql server&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;b&gt;Introduction &lt;/b&gt;: In this article i will show you&lt;b&gt; how to get all recursive childs by parentid in sql server&lt;/b&gt; .To get all childs i have used &lt;b&gt;recursive query using with CTE&lt;/b&gt; ( Common Table Expressions ) . It is very simple to with parentid and childId relationship table.I have written query for &lt;b&gt;getting recursive child records in sql server&lt;/b&gt; is as follow .&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Table design for Relationship :&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-gq4bbUZqARY/Tw7z8bx5l6I/AAAAAAAAAXw/ZhYPCy_vSzk/s1600/Tabledesign_ParentChild.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-gq4bbUZqARY/Tw7z8bx5l6I/AAAAAAAAAXw/ZhYPCy_vSzk/s1600/Tabledesign_ParentChild.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Query for get all childs by parentid in sql server :&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &lt;/b&gt;&lt;br /&gt;
&lt;pre&gt;declare @ParentId as int;
set @ParentId =  1;

WITH RecursiveTable (ProductId, ParentId,ProductName, Level)
AS
(    
    SELECT      MaintTab.ProductId, 
                MaintTab.ParentId, 
                MaintTab.ProductName ,
                0 AS Level
    FROM ProductTable AS MaintTab
    WHERE ParentId = @ParentId
    
    UNION ALL
    
    SELECT  MaintTab.ProductId, 
                MaintTab.ParentId, 
                MaintTab.ProductName ,
                LEVEL + 1
    FROM ProductTable AS MaintTab
        INNER JOIN RecursiveTable Rtab ON
        MaintTab.ParentId = Rtab.ProductId
)
SELECT * FROM RecursiveTable
&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;Output of query :&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-Lv7LuD1lrCU/Tw70J0MEglI/AAAAAAAAAX4/HfhNqwmrDsc/s1600/QueryResult.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-Lv7LuD1lrCU/Tw70J0MEglI/AAAAAAAAAX4/HfhNqwmrDsc/s1600/QueryResult.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;

&lt;fieldset&gt;
&lt;legend&gt;Related Other posts&lt;/legend&gt;
&lt;table&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/pass-arguments-to-stringformat-method.html" target="_blank"&gt;Pass arguments to String.Format method in c#&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/get-recursive-all-childs-by-parentid-in.html" target="_blank"&gt;Get Recursive all childs by parentid in sql server &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html" target="_blank"&gt;Merge word document files in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation Using Jquery in Asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/doc-file-to-rtf-format-in-aspnet-c.html" target="_blank"&gt;DOC file to RTF format in asp.net C#.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html" target="_blank"&gt;Send mail in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation using jquery in asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/fieldset&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-8555316064741514553?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/QGDCXvqVrkE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/8555316064741514553/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2012/01/get-recursive-all-childs-by-parentid-in.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/8555316064741514553?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/8555316064741514553?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/QGDCXvqVrkE/get-recursive-all-childs-by-parentid-in.html" title="Get Recursive all childs by parentid in sql server" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-gq4bbUZqARY/Tw7z8bx5l6I/AAAAAAAAAXw/ZhYPCy_vSzk/s72-c/Tabledesign_ParentChild.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2012/01/get-recursive-all-childs-by-parentid-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0ANQ3g5eCp7ImA9WhRUF0k.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-9101661056576628697</id><published>2012-01-11T10:28:00.000-08:00</published><updated>2012-01-28T01:09:52.620-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-28T01:09:52.620-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Chart Control" /><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net C#" /><title>Chart Control in asp.net 4.0</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/sqNFoFS6mQtuKsidFKA4fJ-Z-34/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sqNFoFS6mQtuKsidFKA4fJ-Z-34/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/sqNFoFS6mQtuKsidFKA4fJ-Z-34/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sqNFoFS6mQtuKsidFKA4fJ-Z-34/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;Chart Control in asp.net 4.0&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Introduction &lt;/b&gt;: In this article i will show you&lt;b&gt; how to add Chart control in asp.net 4.0&lt;/b&gt; and &lt;b&gt;how to bind chart control in asp.net with Datase&lt;/b&gt;t .You just need to drag the chart control in aspx page so following assembly will be register in your web page and corresponding httpHandlers will be added in web config too .&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-HXviW9jzWjQ/Tw3Xw4OV3fI/AAAAAAAAAXo/-gn8HIeqkWg/s1600/ChartControl.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="186" src="http://4.bp.blogspot.com/-HXviW9jzWjQ/Tw3Xw4OV3fI/AAAAAAAAAXo/-gn8HIeqkWg/s320/ChartControl.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %&amp;gt;&lt;/pre&gt;
&lt;b&gt;Code For Bind Chart Control In asp.net  :
&lt;/b&gt;I have following complete html and code behind code for binding &lt;b&gt;Chart control in c# asp.net&lt;/b&gt;. I have here created &lt;b&gt;Bar chart control in asp.net&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;HTML Code For Chart Control In asp.net :&lt;/b&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChartControl.aspx.cs" Inherits="HamidSite.ChartControl" %&amp;gt;

&amp;lt;%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %&amp;gt;
&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head runat="server"&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form id="form1" runat="server"&amp;gt;
    &amp;lt;div&amp;gt;
        &amp;lt;asp:Chart ID="ChartControlTest" runat="server" Width="706px" Height="367px"&amp;gt;
            &amp;lt;Series&amp;gt;
                &amp;lt;asp:Series Name="SeriesTest" IsValueShownAsLabel="true" Legend="LegendTest" ChartArea="ChartAreaTest"
                    XValueMember="MonthName" YValueMembers="Amount"&amp;gt;
                &amp;lt;/asp:Series&amp;gt;
            &amp;lt;/Series&amp;gt;
            &amp;lt;ChartAreas&amp;gt;
                &amp;lt;asp:ChartArea Name="ChartAreaTest" Area3DStyle-LightStyle="Simplistic" AlignmentStyle="AxesView"
                    BorderDashStyle="Solid" Area3DStyle-Enable3D="true"&amp;gt;
                &amp;lt;/asp:ChartArea&amp;gt;
            &amp;lt;/ChartAreas&amp;gt;            
        &amp;lt;/asp:Chart&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;
C# Code For Chart Control in asp.net :&lt;/b&gt;
&lt;br /&gt;
&lt;pre&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

namespace HamidSite
{
    public partial class ChartControl : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindChartControl();
            }
        }
        private void BindChartControl()
        {
            DataSet Ds = GetDataSet("Select MonthName , Amount from OrderTable");
            ChartControlTest.DataSource = Ds; 
            ChartControlTest.DataBind(); 
        }
        private DataSet GetDataSet(string Query)
        {
            DataSet Ds = new DataSet();
            try
            {
                string strCon = @"Data Source=ServerName;Initial Catalog=Test;Integrated Security=True;";  //Conntection String
                SqlConnection Con = new SqlConnection(strCon);
                SqlDataAdapter Da = new SqlDataAdapter(Query, Con);
                Da.Fill(Ds);
            }
            catch (Exception) { }
            return Ds;
        }
    }
}
&lt;/pre&gt;

&lt;fieldset&gt;
&lt;legend&gt;Related Other posts&lt;/legend&gt;
&lt;table&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/pass-arguments-to-stringformat-method.html" target="_blank"&gt;Pass arguments to String.Format method in c#&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/get-recursive-all-childs-by-parentid-in.html" target="_blank"&gt;Get Recursive all childs by parentid in sql server &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html" target="_blank"&gt;Merge word document files in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation Using Jquery in Asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/doc-file-to-rtf-format-in-aspnet-c.html" target="_blank"&gt;DOC file to RTF format in asp.net C#.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html" target="_blank"&gt;Send mail in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation using jquery in asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/fieldset&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-9101661056576628697?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/N61nrz0SBuI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/9101661056576628697/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2012/01/chart-control-in-aspnet-40.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/9101661056576628697?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/9101661056576628697?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/N61nrz0SBuI/chart-control-in-aspnet-40.html" title="Chart Control in asp.net 4.0" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-HXviW9jzWjQ/Tw3Xw4OV3fI/AAAAAAAAAXo/-gn8HIeqkWg/s72-c/ChartControl.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2012/01/chart-control-in-aspnet-40.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A04MR3w4eCp7ImA9WhRUFUU.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-4940203261653964659</id><published>2012-01-11T07:03:00.000-08:00</published><updated>2012-01-26T06:59:46.230-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-26T06:59:46.230-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Jquery" /><title>Set hidden field's value on button's click in Jquery</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ibtRSm5hN1lHmryq45xRLJd9a0I/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ibtRSm5hN1lHmryq45xRLJd9a0I/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ibtRSm5hN1lHmryq45xRLJd9a0I/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ibtRSm5hN1lHmryq45xRLJd9a0I/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;Set hidden field's value on button's click in Jquery &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Introduction &lt;/b&gt;: In this i will show you how to &lt;b&gt;set value of hidden field's value on button click usinng Jquery&lt;/b&gt; . It is very easy to &lt;b&gt;set value of hidden field's value using Jquery&lt;/b&gt; .I have written two way to &lt;b&gt;set value of hidden field using Jquer&lt;/b&gt;y . In first way you can write code in $(document).ready() function and second you can directly assign to on click of button .&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;HTML Code for Set hidden field's value on button's click in Jquery :&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;
&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; AutoEventWireup=&amp;quot;true&amp;quot; CodeBehind=&amp;quot;JqueryValidation.aspx.cs&amp;quot; Inherits=&amp;quot;HamidSite.JqueryValidation&amp;quot; %&amp;gt;

&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;
&amp;lt;head runat=&amp;quot;server&amp;quot;&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
    &amp;lt;script src=&amp;quot;Scripts/jquery-1.4.1-vsdoc.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src=&amp;quot;Scripts/jquery-1.4.1.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src=&amp;quot;Scripts/jquery-1.4.1.min.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src=&amp;quot;Scripts/jquery.validate.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script type=&amp;quot;text/javascript&amp;quot;  &amp;gt;
        $(document).ready(function () {
            $(&amp;quot;#submit1&amp;quot;).click(function () {
                $('#hiddenTest').val('Test-2');
                alert($('#hiddenTest').val());
            });
        });
  &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
    &amp;lt;div&amp;gt;
            &amp;lt;input type=&amp;quot;hidden&amp;quot; id=&amp;quot;hiddenTest&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;
            &amp;lt;input id=&amp;quot;submit&amp;quot; type=&amp;quot;submit&amp;quot; value=&amp;quot;test-1&amp;quot; onclick=&amp;quot;$('#hiddenTest').val('Test-1');alert($('#hiddenTest').val());&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;            
            &amp;lt;input id=&amp;quot;submit1&amp;quot; type=&amp;quot;submit&amp;quot; value=&amp;quot;test-2&amp;quot;  runat=&amp;quot;server&amp;quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;/br&gt;

&lt;fieldset&gt;
&lt;legend&gt;Related Other posts&lt;/legend&gt;
&lt;table&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/pass-arguments-to-stringformat-method.html" target="_blank"&gt;Pass arguments to String.Format method in c#&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/get-recursive-all-childs-by-parentid-in.html" target="_blank"&gt;Get Recursive all childs by parentid in sql server &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html" target="_blank"&gt;Merge word document files in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation Using Jquery in Asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/doc-file-to-rtf-format-in-aspnet-c.html" target="_blank"&gt;DOC file to RTF format in asp.net C#.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html" target="_blank"&gt;Send mail in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation using jquery in asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/fieldset&gt;

&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-4940203261653964659?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/dwc91bZLCDM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/4940203261653964659/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2012/01/set-hidden-fields-value-on-buttons.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/4940203261653964659?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/4940203261653964659?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/dwc91bZLCDM/set-hidden-fields-value-on-buttons.html" title="Set hidden field's value on button's click in Jquery" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2012/01/set-hidden-fields-value-on-buttons.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C08HQHcyfyp7ImA9WhRUF0k.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-1264785194693773437</id><published>2012-01-10T07:55:00.000-08:00</published><updated>2012-01-28T01:10:31.997-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-28T01:10:31.997-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="TreeView" /><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net C#" /><title>Check / Uncheck all checkbox in treeview using jquery in asp.net</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/uSA4pXH9JfSmT95ObKYS6iEbBhs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uSA4pXH9JfSmT95ObKYS6iEbBhs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/uSA4pXH9JfSmT95ObKYS6iEbBhs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uSA4pXH9JfSmT95ObKYS6iEbBhs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;Check / Uncheck all checkbox in treeview using jquery in asp.net&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Introduction &lt;/b&gt;: In this article i will show you how &lt;b&gt;check all checkboxes in treeview using Jquery in asp.net&lt;/b&gt; .It is very easy just you need add code and replace id as per treeview control .

For the binding the Treeview control in asp.net you can visits my previous post &lt;a href="http://www.hamidseta.blogspot.com/2012/01/bind-treeview-in-apsnet-c-using-dataset.html"&gt;bind treeview in-asp.net&lt;/a&gt; .
&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-6E7ii8379d0/Twxi46eI77I/AAAAAAAAAXY/CNbKnB2vBz4/s1600/TreeViewControl.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-6E7ii8379d0/Twxi46eI77I/AAAAAAAAAXY/CNbKnB2vBz4/s1600/TreeViewControl.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-Pl88oOQuPho/Twxi57U1DqI/AAAAAAAAAXg/SkYCjbvLV_I/s1600/TreeViewControl_1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-Pl88oOQuPho/Twxi57U1DqI/AAAAAAAAAXg/SkYCjbvLV_I/s1600/TreeViewControl_1.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;b&gt;Jquery for check / uncheck all checkboxes in treeview in c# :&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Following is&lt;b&gt; jquery code for check or uncheck all checkboxes in treeview control&lt;/b&gt; and HTML code in asp.net .&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TreeViewControl.aspx.cs"
    Inherits="HamidSite.TreeViewControl" %&amp;gt;

&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head runat="server"&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
    &amp;lt;script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src="Scripts/jquery-1.4.1.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script type="text/javascript" &amp;gt;

        $(document).ready(function () {

            $("div[id $= treeviwExample] input[type=checkbox]").click(function () {
                $(this).closest("table").next("div").find("input[type=checkbox]").attr("checked", this.checked);
            });

        });    
        
    &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form id="form1" runat="server"&amp;gt;
    &amp;lt;div&amp;gt;
        &amp;lt;asp:TreeView ID="treeviwExample" ShowCheckBoxes="All"  runat="server" ImageSet="Arrows"&amp;gt;
            &amp;lt;HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" /&amp;gt;
            &amp;lt;NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px" NodeSpacing="0px" VerticalPadding="0px" /&amp;gt;
            &amp;lt;ParentNodeStyle Font-Bold="False" /&amp;gt;
            &amp;lt;SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" HorizontalPadding="0px" VerticalPadding="0px" /&amp;gt;            
        &amp;lt;/asp:TreeView&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;

&lt;br /&gt;
&lt;br /&gt;
&lt;fieldset&gt;
&lt;legend&gt;Related Other posts&lt;/legend&gt;
&lt;br /&gt;
&lt;table&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/sorting-paging-add-update-delete-in.html" target="_blank"&gt;Sorting, Paging, Add, Update, Delete in GridView&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/check-uncheck-all-checkbox-in-treeview.html" target="_blank"&gt;Check / Uncheck all checkbox in treeview using jquery&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/bind-image-in-datalist-control-in.html" target="_blank"&gt;Image In Datalist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html" target="_blank"&gt;Merge docs files in c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/bind-treeview-in-apsnet-c-using-dataset.html" target="_blank"&gt;Bind Treeview in asp.net c# using dataset&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/checkboxlist-example-in-aspnet-c.html" target="_blank"&gt;CheckboxList example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html" target="_blank"&gt;Send mail in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation using jquery in asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/fieldset&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-1264785194693773437?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/KvGOZyNcJW0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/1264785194693773437/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2012/01/check-uncheck-all-checkbox-in-treeview.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/1264785194693773437?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/1264785194693773437?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/KvGOZyNcJW0/check-uncheck-all-checkbox-in-treeview.html" title="Check / Uncheck all checkbox in treeview using jquery in asp.net" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-6E7ii8379d0/Twxi46eI77I/AAAAAAAAAXY/CNbKnB2vBz4/s72-c/TreeViewControl.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2012/01/check-uncheck-all-checkbox-in-treeview.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C08BRX05fyp7ImA9WhRUF0k.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-5471219856517852288</id><published>2012-01-09T04:57:00.001-08:00</published><updated>2012-01-28T01:10:54.327-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-28T01:10:54.327-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="TreeView" /><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net C#" /><title>Bind Treeview in asp.net c# using dataset</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bLBKxjYUdaGAh8pGdhkJlcAJMWI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bLBKxjYUdaGAh8pGdhkJlcAJMWI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/bLBKxjYUdaGAh8pGdhkJlcAJMWI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bLBKxjYUdaGAh8pGdhkJlcAJMWI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;Bind Treeview in asp.net c# using dataset &lt;/b&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-E9aiaZi7FXI/TwsRAF60buI/AAAAAAAAAXA/wUpWmfhRUWY/s1600/TreeViewControlExample.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-E9aiaZi7FXI/TwsRAF60buI/AAAAAAAAAXA/wUpWmfhRUWY/s320/TreeViewControlExample.bmp" width="224" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;b&gt;Introduction &lt;/b&gt;: In this article i will show you how to&lt;b&gt; bind treeview in c# using dataset&lt;/b&gt; . I have created complete &lt;b&gt;code to bind the treeview&lt;/b&gt; and also table structure in image which require for the &lt;b&gt;treeview control to bind in asp.net c# using dataset&lt;/b&gt; .&lt;/div&gt;
&lt;b&gt;Table structure :&lt;/b&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-odJa8Po-UbY/TwsRgF76MjI/AAAAAAAAAXI/541hj4uJzls/s1600/TreeViewControl.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="296" src="http://4.bp.blogspot.com/-odJa8Po-UbY/TwsRgF76MjI/AAAAAAAAAXI/541hj4uJzls/s320/TreeViewControl.bmp" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b&gt;HTML code treeview in asp.net : &lt;/b&gt;&lt;br /&gt;
&lt;pre&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TreeViewControl.aspx.cs"
    Inherits="HamidSite.TreeViewControl" %&amp;gt;

&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head runat="server"&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form id="form1" runat="server"&amp;gt;
    &amp;lt;div&amp;gt;
        &amp;lt;asp:TreeView ID="treeviwExample"  runat="server" ImageSet="Arrows"&amp;gt;
            &amp;lt;HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" /&amp;gt;
            &amp;lt;NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px" NodeSpacing="0px" VerticalPadding="0px" /&amp;gt;
            &amp;lt;ParentNodeStyle Font-Bold="False" /&amp;gt;
            &amp;lt;SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" HorizontalPadding="0px" VerticalPadding="0px" /&amp;gt;            
        &amp;lt;/asp:TreeView&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;C# Code treeview control in asp.net :&lt;/b&gt; &lt;br /&gt;
&lt;pre&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

namespace HamidSite
{
    public partial class TreeViewControl : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack) {
                BindTreeViewControl();
            }
        }
        private void BindTreeViewControl()
        {
            try
            {
                DataSet ds = GetDataSet("Select ProductId,ProductName,ParentId from ProductTable");
                DataRow[] Rows = ds.Tables[0].Select("ParentId IS NULL"); // Get all parents nodes
                for (int i = 0; i &amp;lt; Rows.Length; i++)
                {
                    TreeNode root = new TreeNode(Rows[i]["ProductName"].ToString(), Rows[i]["ProductId"].ToString());
                    root.SelectAction = TreeNodeSelectAction.Expand;
                    CreateNode(root, ds.Tables[0]);
                    treeviwExample.Nodes.Add(root);
                }
            } catch (Exception Ex) { throw Ex; }
        }

        public void CreateNode(TreeNode node , DataTable Dt)
        {
            DataRow[] Rows = Dt.Select("ParentId =" + node.Value);            
            if (Rows.Length == 0) { return; }
            for (int i = 0; i &amp;lt; Rows.Length; i++)
            {
                TreeNode Childnode = new TreeNode(Rows[i]["ProductName"].ToString(), Rows[i]["ProductId"].ToString());
                Childnode.SelectAction = TreeNodeSelectAction.Expand;
                node.ChildNodes.Add(Childnode);
                CreateNode(Childnode, Dt);
            }
        }
        private DataSet GetDataSet(string Query)
        {           
            DataSet Ds = new DataSet();
            try {
                string strCon = @"Data Source=Servername;Initial Catalog=Test;Integrated Security=True"; 
                SqlConnection Con = new SqlConnection(strCon);
                SqlDataAdapter Da = new SqlDataAdapter(Query, Con);
                Da.Fill(Ds);
            } catch (Exception) { }
            return Ds; 
        }
    }
}&lt;/pre&gt;
&lt;br /&gt;
For &lt;b&gt;Check / Uncheck Checkboxes in treeview control using jquery&lt;/b&gt; you can visit following post :-

&lt;b&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/check-uncheck-all-checkbox-in-treeview.html"&gt;Check / Uncheck Checkboxes in treeview control using jquery&lt;/a&gt;&lt;/b&gt;

&lt;br /&gt;
&lt;br /&gt;
&lt;fieldset&gt;
&lt;legend&gt;Related Other posts&lt;/legend&gt;
&lt;br /&gt;
&lt;table&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/sorting-paging-add-update-delete-in.html" target="_blank"&gt;Sorting, Paging, Add, Update, Delete in GridView&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2012/01/check-uncheck-all-checkbox-in-treeview.html" target="_blank"&gt;Check / Uncheck all checkbox in treeview using jquery&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/bind-image-in-datalist-control-in.html" target="_blank"&gt;Image In Datalist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html" target="_blank"&gt;Merge docs files in c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/bind-treeview-in-apsnet-c-using-dataset.html" target="_blank"&gt;Bind Treeview in asp.net c# using dataset&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/checkboxlist-example-in-aspnet-c.html" target="_blank"&gt;CheckboxList example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html" target="_blank"&gt;Send mail in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation using jquery in asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/fieldset&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-5471219856517852288?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/MQfpnsA7BMY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/5471219856517852288/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2012/01/bind-treeview-in-apsnet-c-using-dataset.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/5471219856517852288?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/5471219856517852288?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/MQfpnsA7BMY/bind-treeview-in-apsnet-c-using-dataset.html" title="Bind Treeview in asp.net c# using dataset" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-E9aiaZi7FXI/TwsRAF60buI/AAAAAAAAAXA/wUpWmfhRUWY/s72-c/TreeViewControlExample.bmp" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2012/01/bind-treeview-in-apsnet-c-using-dataset.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C08MQ307fSp7ImA9WhRUF0k.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-4239475980562327921</id><published>2012-01-07T02:49:00.000-08:00</published><updated>2012-01-28T01:11:22.305-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-28T01:11:22.305-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net C#" /><title>Merge word document files in asp.net c#</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/v1Ppj7rRPpVNA-LVxAGod85T1og/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/v1Ppj7rRPpVNA-LVxAGod85T1og/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/v1Ppj7rRPpVNA-LVxAGod85T1og/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/v1Ppj7rRPpVNA-LVxAGod85T1og/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;Merge word document files in asp.net c#&lt;/b&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-712b_m_NkWI/TwgjjMlLxWI/AAAAAAAAAWo/mbegCfuGaoI/s1600/Merge_WordDoc.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="62" src="http://2.bp.blogspot.com/-712b_m_NkWI/TwgjjMlLxWI/AAAAAAAAAWo/mbegCfuGaoI/s320/Merge_WordDoc.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Introduction &lt;/b&gt;: This article show you how to &lt;b&gt;merge or combine two more doc files in Asp.net using C#&lt;/b&gt; .&lt;br /&gt;
I have created one function to &lt;b&gt;merge &lt;/b&gt;multiple word file in c# .it is very easy to use .You just need to pass &lt;b&gt;word&lt;/b&gt; file path arrays and save file path . Then i will save&amp;nbsp; &lt;b&gt;merged word document file&lt;/b&gt; .&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Add following dll reference to your application :&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;Microsoft.Office.Interop.Word&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Code for merge word doc files :&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Office.Interop.Word;

namespace HamidSite
{
    public partial class MergerWorddocs : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string[] DocsFiles = new string[] { @"C:\Merfiles\Doc1.docx", @"C:\Merfiles\Doc2.docx" };
            string PathToSave =Server.MapPath("MergesDocs/MergeDoc.docx");
            Merge(DocsFiles,PathToSave,true);
            
        }
        public void Merge(string[] filesToMerge, string fileSavePath, bool insertPageBreaks)
        {  
            object missing = System.Type.Missing;
            object pageBreak = WdBreakType.wdPageBreak;
            object outputFile = fileSavePath;
           
            Application wordApplication = new Application();
            try
            {                
                Document wordDocument = wordApplication.Documents.Add(ref missing, ref missing , ref missing , ref missing);                           
                Selection selection = wordApplication.Selection;
               
                foreach (string docFile in filesToMerge)
                {
                    selection.InsertFile(docFile , ref missing , ref missing , ref missing , ref missing);
                    if (insertPageBreaks)
                    {
                        selection.InsertBreak(ref pageBreak);
                    }
                }               
                wordDocument.SaveAs(ref outputFile, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);
                wordDocument = null;
                wordApplication.Quit(ref missing, ref missing, ref missing);
            }
            catch (Exception ex) { throw ex; }           
        }
    }
} 

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;fieldset &gt;
&lt;legend&gt;Related Other posts&lt;/legend&gt;
&lt;br /&gt;
&lt;table&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/how-to-add-html-code-in-blogspot.html" target="_blank"&gt;Html Code in blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/radiobuttonlist-example-in-aspnet-c.html" target="_blank"&gt;Radiobuttonlist Example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/bind-image-in-datalist-control-in.html" target="_blank"&gt;Image In Datalist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html" target="_blank"&gt;Merge docs files in c#&lt;/a&gt;&lt;/li&gt;

&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/to-take-back-up-of-database-in-sql.html" target="_blank"&gt;Database backup in sql Server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/checkboxlist-example-in-aspnet-c.html" target="_blank"&gt;CheckboxList example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html" target="_blank"&gt;Send mail in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation using jquery in asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/fieldset&gt;

&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-4239475980562327921?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/UtQryJIbe_I" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/4239475980562327921/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/4239475980562327921?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/4239475980562327921?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/UtQryJIbe_I/merge-word-document-files-in-aspnet-c.html" title="Merge word document files in asp.net c#" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-712b_m_NkWI/TwgjjMlLxWI/AAAAAAAAAWo/mbegCfuGaoI/s72-c/Merge_WordDoc.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0EGQH06fCp7ImA9WhRWGU4.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-1717452623021606860</id><published>2012-01-06T22:50:00.000-08:00</published><updated>2012-01-07T04:33:41.314-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-07T04:33:41.314-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Jquery" /><title>Validation Using Jquery in Asp.net page</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/9aEl9JAiJUgmzABkeqxnnp9InaM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/9aEl9JAiJUgmzABkeqxnnp9InaM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/9aEl9JAiJUgmzABkeqxnnp9InaM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/9aEl9JAiJUgmzABkeqxnnp9InaM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;Validation Using Jquery in Asp.net page&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;b&gt;Introduction :&lt;/b&gt; This article show you how to add &lt;b&gt;validation using Jquery in Asp.net &lt;/b&gt;. &lt;b&gt;Validation &lt;/b&gt;is easy in &lt;b&gt;jquery &lt;/b&gt;just need add my following complete html code for&lt;b&gt; Jquery validation in asp.net&lt;/b&gt; .&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-b8Zgs51heqY/TwfrqE9rChI/AAAAAAAAAWg/n3ZPv9trbZc/s1600/JqueryValidation.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="284" src="http://1.bp.blogspot.com/-b8Zgs51heqY/TwfrqE9rChI/AAAAAAAAAWg/n3ZPv9trbZc/s640/JqueryValidation.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Hows&amp;nbsp; Jquery validation works in Asp.net :&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
you can download&amp;nbsp; Jquery.validate.js from &lt;a href="http://jzaefferer.github.com/jquery-validation/jquery.validate.js" target="_blank"&gt;http://jzaefferer.github.com/jquery-validation/jquery.validate.js&lt;/a&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
you can apply required validation by adding class to textbox like : CssClass="required". ..etc .so on you can Url validation ,date validation , digits validation ..etc using jquery .&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Complete Html Code for Jquery validation in asp.net page :&lt;/b&gt;&lt;br /&gt;
&lt;pre&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JqueryValidation.aspx.cs" Inherits="HamidSite.JqueryValidation" %&amp;gt;

&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head runat="server"&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
    &amp;lt;script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src="Scripts/jquery-1.4.1.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src="Scripts/jquery.validate.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script type="text/javascript"  &amp;gt;
         $(document).ready(function () {
             $("#form1").validate();
         });
  &amp;lt;/script&amp;gt;
 &amp;lt;style type="text/css"&amp;gt;
    label.error { float: none; color: red; padding-left: .5em; vertical-align: top; }
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form id="form1" runat="server"&amp;gt;
    &amp;lt;div&amp;gt;
            &amp;lt;fieldset style="width:500px;vertical-align:middle;font-family:Verdana;font-size:12px;border-bottom-width:medium;" &amp;gt;
                &amp;lt;legend&amp;gt;Validation Using Jquery in Asp.net page &amp;lt;/legend&amp;gt;
                &amp;lt;table align="center" cellpadding="5px" &amp;gt;
                    &amp;lt;tr&amp;gt;
                        &amp;lt;td&amp;gt;
                            Name :
                        &amp;lt;/td&amp;gt;
                        &amp;lt;td&amp;gt;
                            &amp;lt;asp:TextBox ID="txtname" CssClass="required" runat="server" &amp;gt;&amp;lt;/asp:TextBox&amp;gt;
                        &amp;lt;/td&amp;gt;
                    &amp;lt;/tr&amp;gt;
                    &amp;lt;tr&amp;gt;
                        &amp;lt;td&amp;gt;
                            Amount :
                        &amp;lt;/td&amp;gt;
                        &amp;lt;td&amp;gt;
                            &amp;lt;asp:TextBox ID="TextBox1" CssClass="digits" runat="server" &amp;gt;&amp;lt;/asp:TextBox&amp;gt;
                        &amp;lt;/td&amp;gt;
                    &amp;lt;/tr&amp;gt;
                    &amp;lt;tr&amp;gt;
                        &amp;lt;td&amp;gt;
                            Website url :
                        &amp;lt;/td&amp;gt;
                        &amp;lt;td&amp;gt;
                            &amp;lt;asp:TextBox ID="TextBox2" CssClass="url" runat="server" &amp;gt;&amp;lt;/asp:TextBox&amp;gt;
                        &amp;lt;/td&amp;gt;
                    &amp;lt;/tr&amp;gt;
                    &amp;lt;tr&amp;gt;
                        &amp;lt;td&amp;gt;
                            Email :
                        &amp;lt;/td&amp;gt;
                        &amp;lt;td&amp;gt;
                            &amp;lt;asp:TextBox ID="TextBox3" CssClass="email" runat="server" &amp;gt;&amp;lt;/asp:TextBox&amp;gt;
                        &amp;lt;/td&amp;gt;
                    &amp;lt;/tr&amp;gt;
                    &amp;lt;tr&amp;gt;
                        &amp;lt;td&amp;gt;
                            Date :
                        &amp;lt;/td&amp;gt;
                        &amp;lt;td&amp;gt;
                            &amp;lt;asp:TextBox ID="TextBox4" CssClass="date" runat="server" &amp;gt;&amp;lt;/asp:TextBox&amp;gt;
                        &amp;lt;/td&amp;gt;
                    &amp;lt;/tr&amp;gt;
                     &amp;lt;tr&amp;gt;
                        &amp;lt;td&amp;gt;
                            
                        &amp;lt;/td&amp;gt;
                        &amp;lt;td&amp;gt;
                            &amp;lt;asp:Button ID="btnSave"  runat="server" Text="Submit" /&amp;gt;
                        &amp;lt;/td&amp;gt;
                    &amp;lt;/tr&amp;gt;
                &amp;lt;/table&amp;gt;
            &amp;lt;/fieldset&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;fieldset &gt;
&lt;legend&gt;Related Other posts&lt;/legend&gt;
&lt;br /&gt;
&lt;table&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/how-to-add-html-code-in-blogspot.html" target="_blank"&gt;Html Code in blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/radiobuttonlist-example-in-aspnet-c.html" target="_blank"&gt;Radiobuttonlist Example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/bind-image-in-datalist-control-in.html" target="_blank"&gt;Image In Datalist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html" target="_blank"&gt;Merge docs files in c#&lt;/a&gt;&lt;/li&gt;

&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/to-take-back-up-of-database-in-sql.html" target="_blank"&gt;Database backup in sql Server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/checkboxlist-example-in-aspnet-c.html" target="_blank"&gt;CheckboxList example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html" target="_blank"&gt;Send mail in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation using jquery in asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/fieldset&gt;

&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-1717452623021606860?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/-iYCRdiDeHI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/1717452623021606860/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/1717452623021606860?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/1717452623021606860?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/-iYCRdiDeHI/validation-using-jquery-in-aspnet-page.html" title="Validation Using Jquery in Asp.net page" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-b8Zgs51heqY/TwfrqE9rChI/AAAAAAAAAWg/n3ZPv9trbZc/s72-c/JqueryValidation.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C04GQXY8cCp7ImA9WhRUF0k.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-1089895150809244301</id><published>2012-01-06T02:58:00.000-08:00</published><updated>2012-01-28T01:12:00.878-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-28T01:12:00.878-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net C#" /><title>DOC file to RTF format in asp.net C#.</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/FpTnHp3YnIT9isfWr8P5LAGasv8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FpTnHp3YnIT9isfWr8P5LAGasv8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/FpTnHp3YnIT9isfWr8P5LAGasv8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FpTnHp3YnIT9isfWr8P5LAGasv8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;DOC file to RTF format in asp.net C#.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Introduction &lt;/b&gt;: This article describe how you can convert the DOC file to RTF format in asp.net using c# language .&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Code For Doc to RTF:&lt;/b&gt; I have created one function to &lt;b&gt;convert DOC file to RTF format in c#&lt;/b&gt; . You need to pass just doc file path to it and it save the .RTF format file .&lt;br /&gt;
First you need to add reference of  Microsoft.Office.Interop.Word.dll dll in project .&lt;br /&gt;
&lt;pre&gt;Microsoft.Office.Interop.Word.dll
&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;Function For Conversion Doc To RTF&lt;/b&gt; :&lt;br /&gt;
&lt;pre&gt;public void ConvertDocToRTF(string DocPath)
{        
        //Creare object of documnet .
        Document document = new Document();
        try
        {
          //Load doc file from given path
          document.LoadFromFile(DocPath);
         //Save doc file. It will convert to .Rtf format .
          document.SaveToFile("Tesfile.rtf", FileFormat.Rtf);
        }
        catch (Exception) { throw; }
}
&lt;/pre&gt;
&lt;br /&gt;
Call Function :&lt;br /&gt;
&lt;pre&gt;ConvertDocToRTF("MyDocFilePath");
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;fieldset &gt;
&lt;legend&gt;Related Other posts&lt;/legend&gt;
&lt;br /&gt;
&lt;table&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/how-to-add-html-code-in-blogspot.html" target="_blank"&gt;Html Code in blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/radiobuttonlist-example-in-aspnet-c.html" target="_blank"&gt;Radiobuttonlist Example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/bind-image-in-datalist-control-in.html" target="_blank"&gt;Image In Datalist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html" target="_blank"&gt;Merge docs files in c#&lt;/a&gt;&lt;/li&gt;

&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/to-take-back-up-of-database-in-sql.html" target="_blank"&gt;Database backup in sql Server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/checkboxlist-example-in-aspnet-c.html" target="_blank"&gt;CheckboxList example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html" target="_blank"&gt;Send mail in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation using jquery in asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/fieldset&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-1089895150809244301?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/Ig54M8w35fw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/1089895150809244301/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2012/01/doc-file-to-rtf-format-in-aspnet-c.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/1089895150809244301?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/1089895150809244301?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/Ig54M8w35fw/doc-file-to-rtf-format-in-aspnet-c.html" title="DOC file to RTF format in asp.net C#." /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2012/01/doc-file-to-rtf-format-in-aspnet-c.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C04ERHo8eip7ImA9WhRUF0k.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-2721609680109933447</id><published>2012-01-05T03:24:00.001-08:00</published><updated>2012-01-28T01:11:45.472-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-28T01:11:45.472-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net C#" /><title>Send Mail Using gmail In asp.net c#</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/byxgjchqb6pj5pO0nkXV89G0KGI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/byxgjchqb6pj5pO0nkXV89G0KGI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/byxgjchqb6pj5pO0nkXV89G0KGI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/byxgjchqb6pj5pO0nkXV89G0KGI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;Send Mail Using gmail In asp.net c#&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;b&gt;Introduction &lt;/b&gt;: In this article i will show you how to send mail 
in asp.net using gmail account.It is very simple just you need to pass 
your gmail account email address and password in 
System.Net.NetworkCredential() . And also you need to set host= smtp.gmail.com ,port =587 .I 
have following code to send mail using gmail account in asp.net c# . &lt;/div&gt;
&lt;br /&gt;
&lt;pre&gt;protected void btnSendMail_Click1(object sender, EventArgs e)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string myEmailAddress = "your gmail account";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string mypwd = "your gmail account password";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string toEmailAddress = "to email address";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string subject = "Test Subject";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string mailbody = "Test body";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var client = new System.Net.Mail.SmtpClient("smtp.gmail.com", 587)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Credentials = new System.Net.NetworkCredential(myEmailAddress, mypwd),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EnableSsl = true
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; client.Send(myEmailAddress, toEmailAddress, subject, mailbody);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;fieldset &gt;
&lt;legend&gt;Related Other posts&lt;/legend&gt;
&lt;br /&gt;
&lt;table&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/how-to-add-html-code-in-blogspot.html" target="_blank"&gt;Html Code in blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/radiobuttonlist-example-in-aspnet-c.html" target="_blank"&gt;Radiobuttonlist Example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/bind-image-in-datalist-control-in.html" target="_blank"&gt;Image In Datalist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html" target="_blank"&gt;Merge docs files in c#&lt;/a&gt;&lt;/li&gt;

&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/to-take-back-up-of-database-in-sql.html" target="_blank"&gt;Database backup in sql Server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/checkboxlist-example-in-aspnet-c.html" target="_blank"&gt;CheckboxList example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html" target="_blank"&gt;Send mail in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation using jquery in asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/fieldset&gt;

&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-2721609680109933447?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/8urQ7Epp1Oc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/2721609680109933447/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/2721609680109933447?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/2721609680109933447?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/8urQ7Epp1Oc/send-mail-using-gmail-in-aspnet-c.html" title="Send Mail Using gmail In asp.net c#" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C04BR38yeSp7ImA9WhRUF0k.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-1608797388966142987</id><published>2012-01-04T23:01:00.000-08:00</published><updated>2012-01-28T01:12:36.191-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-28T01:12:36.191-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net C#" /><title>Redirect One website to another website automatically</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jFiBuU9KYBht9J7be34u7NkxB4I/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jFiBuU9KYBht9J7be34u7NkxB4I/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jFiBuU9KYBht9J7be34u7NkxB4I/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jFiBuU9KYBht9J7be34u7NkxB4I/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;Redirect One website to another website &lt;/b&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;b&gt;Introduction &lt;/b&gt;: In this article i will show &lt;b&gt;how to redirect one website to another website&lt;/b&gt; . Many times we require that some one visit&amp;nbsp; &lt;span style="color: blue;"&gt;www.xyz.com&lt;/span&gt;&amp;nbsp; then he should be redirect to another site for that you need add peace of java-script code and it &lt;b&gt;automatically redirect to another site &lt;/b&gt;.&lt;/div&gt;
&lt;br /&gt;
&lt;pre&gt;
&amp;lt;head runat="server"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script language="javascript" type="text/javascript"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; location.replace("http://www.google.com");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;fieldset &gt;
&lt;legend&gt;Related Other posts&lt;/legend&gt;
&lt;br /&gt;
&lt;table&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/how-to-add-html-code-in-blogspot.html" target="_blank"&gt;Html Code in blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/radiobuttonlist-example-in-aspnet-c.html" target="_blank"&gt;Radiobuttonlist Example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/bind-image-in-datalist-control-in.html" target="_blank"&gt;Image In Datalist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html" target="_blank"&gt;Merge docs files in c#&lt;/a&gt;&lt;/li&gt;

&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/to-take-back-up-of-database-in-sql.html" target="_blank"&gt;Database backup in sql Server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/checkboxlist-example-in-aspnet-c.html" target="_blank"&gt;CheckboxList example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html" target="_blank"&gt;Send mail in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation using jquery in asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/fieldset&gt;

&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-1608797388966142987?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/sUVE7yu-07c" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/1608797388966142987/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2012/01/redirect-one-website-to-another-website.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/1608797388966142987?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/1608797388966142987?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/sUVE7yu-07c/redirect-one-website-to-another-website.html" title="Redirect One website to another website automatically" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2012/01/redirect-one-website-to-another-website.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C04MSHg4eyp7ImA9WhRUF0k.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-9113603058612435984</id><published>2011-12-27T02:41:00.000-08:00</published><updated>2012-01-28T01:13:09.633-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-28T01:13:09.633-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="RadioButtonList" /><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net C#" /><title>RadioButtonList Control In Asp.net c#</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/LQcx7yCTPSa8dT5HL0zq4a6xmXc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LQcx7yCTPSa8dT5HL0zq4a6xmXc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/LQcx7yCTPSa8dT5HL0zq4a6xmXc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LQcx7yCTPSa8dT5HL0zq4a6xmXc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;RadioButtonList Control In Asp.net c#&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-BCHwXMjkuLA/Tvmh7wb0x0I/AAAAAAAAAVw/QUP7cXV7PSo/s1600/RadioButtonList_Example.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="177" src="http://4.bp.blogspot.com/-BCHwXMjkuLA/Tvmh7wb0x0I/AAAAAAAAAVw/QUP7cXV7PSo/s200/RadioButtonList_Example.png" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;b&gt;Introduction &lt;/b&gt;:&amp;nbsp; In this article i will show you how to bind &lt;b&gt;Radiobuttonlist &lt;/b&gt;in asp.net c# .&lt;b&gt;Radiobuttonlist&lt;/b&gt; control is group of Radiobutton.Many time we require to bind the data in RadioButtonList using database sql server in asp.net . I have here provided complete Html code and Code behind code for binding RadioButtonList In Asp.net c# .Following are my simple code .&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Html Code :-&lt;/b&gt;&lt;br /&gt;
&lt;pre&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadioButtonList.aspx.cs" Inherits="RadioButtonList" %&amp;gt;
&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head runat="server"&amp;gt; &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt; &amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form id="form1" runat="server"&amp;gt;
        &amp;lt;div&amp;gt;
            &amp;lt;table&amp;gt;
                &amp;lt;tr&amp;gt; &amp;lt;td&amp;gt; &amp;lt;h2&amp;gt; RadioButtonList example&amp;lt;/h2&amp;gt;&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;
                &amp;lt;tr&amp;gt;
                       &amp;lt;td&amp;gt; &amp;lt;asp:RadioButtonList ID="rblRadiobuttonlistTest" CellPadding="1" CellSpacing="1" RepeatDirection="Vertical" runat="server"&amp;gt;&amp;lt;/asp:RadioButtonList&amp;gt;  &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
            &amp;lt;/table&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/pre&gt;
&lt;b&gt;Server Side Code :-&lt;/b&gt;&lt;br /&gt;
&lt;pre&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

public partial class RadioButtonList : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            bindRadioButtonList();
        }
    }
    private void bindRadioButtonList()
    {   try{
            DataSet Ds = GetDataSet("Select * from Countrytable");
            rblRadiobuttonlistTest.DataSource = Ds;                 // Set DataSource Here
            rblRadiobuttonlistTest.DataTextField = "CountryName";   // Assign DataText Field
            rblRadiobuttonlistTest.DataValueField = "CountryID";    // Assign Value Field
            rblRadiobuttonlistTest.DataBind();
            }  catch (Exception) { }
    }
    private DataSet GetDataSet(string Query)
    {   DataSet Ds = new DataSet();
        try{
            string strCon = @"Data Source=ServerName\SQLEXPRESS;Initial Catalog=Test;Integrated Security=True";  //Conntection String
            SqlConnection Con = new SqlConnection(strCon);
            SqlDataAdapter Da = new SqlDataAdapter(Query, Con);
            Da.Fill(Ds);
           } catch (Exception) { }
        return Ds; 
    }
}&lt;/pre&gt;

&lt;b&gt;Conclusion &lt;/b&gt;: It is very easy to bind the &lt;b&gt;radiobuttonlist &lt;/b&gt;control in asp.net .
&lt;br /&gt;
&lt;br /&gt;
&lt;fieldset &gt;
&lt;legend&gt;Related Other posts&lt;/legend&gt;
&lt;table&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/how-to-add-html-code-in-blogspot.html" target="_blank"&gt;Html Code in blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/radiobuttonlist-example-in-aspnet-c.html" target="_blank"&gt;Radiobuttonlist Example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/bind-image-in-datalist-control-in.html" target="_blank"&gt;Image In Datalist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html" target="_blank"&gt;Merge docs files in c#&lt;/a&gt;&lt;/li&gt;

&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/to-take-back-up-of-database-in-sql.html" target="_blank"&gt;Database backup in sql Server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/checkboxlist-example-in-aspnet-c.html" target="_blank"&gt;CheckboxList example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html" target="_blank"&gt;Send mail in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation using jquery in asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/fieldset&gt;

&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-9113603058612435984?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/wJnHevHV8aM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/9113603058612435984/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2011/12/radiobuttonlist-example-in-aspnet-c.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/9113603058612435984?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/9113603058612435984?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/wJnHevHV8aM/radiobuttonlist-example-in-aspnet-c.html" title="RadioButtonList Control In Asp.net c#" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-BCHwXMjkuLA/Tvmh7wb0x0I/AAAAAAAAAVw/QUP7cXV7PSo/s72-c/RadioButtonList_Example.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2011/12/radiobuttonlist-example-in-aspnet-c.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A08HQ305fSp7ImA9WhRWGU4.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-983270578380908891</id><published>2011-12-27T01:47:00.001-08:00</published><updated>2012-01-07T04:37:12.325-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-07T04:37:12.325-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="blog Trick" /><title>How to add Html Code in Blogspot</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0lyHDpLzY_49gm3wO_14f6CInxM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0lyHDpLzY_49gm3wO_14f6CInxM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0lyHDpLzY_49gm3wO_14f6CInxM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0lyHDpLzY_49gm3wO_14f6CInxM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;Html Code In&lt;i&gt; Blogspot&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Introduction &lt;/b&gt;: In this article i will show you how you can add &lt;b&gt;html code in Blogger&lt;/b&gt; .sometimes we require to display&lt;i&gt; html code in blog&lt;/i&gt; too. To add &lt;b&gt;Html code&lt;/b&gt; you need to follow just some steps then html code will be able to display in blog .&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;Open &lt;a href="http://centricle.com/tools/html-entities/"&gt;http://centricle.com/tools/html-entities/&lt;/a&gt; Site&amp;nbsp;&lt;ol style="text-align: left;"&gt;
&lt;li&gt;Paste Html Code in box&lt;/li&gt;
&lt;li&gt;Then Click on Encode&lt;/li&gt;
&lt;li&gt;Copy Encode Code and paste in your blog&lt;/li&gt;
&lt;/ol&gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;fieldset &gt;
&lt;legend&gt;Related Other posts&lt;/legend&gt;
&lt;table&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/how-to-add-html-code-in-blogspot.html" target="_blank"&gt;Html Code in blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/radiobuttonlist-example-in-aspnet-c.html" target="_blank"&gt;Radiobuttonlist Example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/bind-image-in-datalist-control-in.html" target="_blank"&gt;Image In Datalist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html" target="_blank"&gt;Merge docs files in c#&lt;/a&gt;&lt;/li&gt;

&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/to-take-back-up-of-database-in-sql.html" target="_blank"&gt;Database backup in sql Server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/checkboxlist-example-in-aspnet-c.html" target="_blank"&gt;CheckboxList example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html" target="_blank"&gt;Send mail in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation using jquery in asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/fieldset&gt;

&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-983270578380908891?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/c-7IKZ_TkVA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/983270578380908891/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2011/12/how-to-add-html-code-in-blogspot.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/983270578380908891?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/983270578380908891?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/c-7IKZ_TkVA/how-to-add-html-code-in-blogspot.html" title="How to add Html Code in Blogspot" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2011/12/how-to-add-html-code-in-blogspot.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEcASHYzcCp7ImA9WhRUF0k.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-7245350569312126629</id><published>2011-12-27T01:32:00.000-08:00</published><updated>2012-01-28T01:14:09.888-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-28T01:14:09.888-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="CheckBoxList" /><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net C#" /><title>CheckBoxList example In Asp.net c#</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ZPvF40LxwO4_uVM01EayLKxJXMs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZPvF40LxwO4_uVM01EayLKxJXMs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ZPvF40LxwO4_uVM01EayLKxJXMs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZPvF40LxwO4_uVM01EayLKxJXMs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
&lt;b&gt;CheckBoxList example In Asp.net c#&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Many time we require to bind the data in &lt;b&gt;checkboxlist &lt;/b&gt;using database sql server in asp.net . I have here provided complete Html code and Code behind code for &lt;b&gt;binding CheckBoxList&lt;/b&gt; In&lt;b&gt; Asp.net c#&lt;/b&gt; .Following are my simple code .&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Screen Shots :-&lt;/b&gt;&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-gMt2CisW7gE/TvmZtLfo6uI/AAAAAAAAAVc/P3GqTvvQgV0/s1600/Checkboxlist_Example.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/-gMt2CisW7gE/TvmZtLfo6uI/AAAAAAAAAVc/P3GqTvvQgV0/s200/Checkboxlist_Example.png" width="198" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-MlEVFeri-Gk/TvmZtbU3GlI/AAAAAAAAAVk/S6_12WqMYI8/s1600/Table_CheckboxList.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="162" src="http://4.bp.blogspot.com/-MlEVFeri-Gk/TvmZtbU3GlI/AAAAAAAAAVk/S6_12WqMYI8/s200/Table_CheckboxList.png" width="200" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;b&gt;Html Code :-&lt;/b&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Checkboxlist.aspx.cs" Inherits="Checkboxlist" %&amp;gt;
&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head runat="server"&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form id="form1" runat="server"&amp;gt;
    &amp;lt;table&amp;gt;
        &amp;lt;tr&amp;gt; &amp;lt;td&amp;gt; &amp;lt;h2&amp;gt;  CheckBoxList example&amp;lt;/h2&amp;gt; &amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;
        &amp;lt;tr&amp;gt;
            &amp;lt;td&amp;gt; &amp;lt;asp:CheckBoxList ID="chklisttest" runat="server"&amp;gt; &amp;lt;/asp:CheckBoxList&amp;gt;  &amp;lt;/td&amp;gt;
        &amp;lt;/tr&amp;gt;
    &amp;lt;/table&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/code&gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;Code Behind :-&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

public partial class Checkboxlist : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            bindCheckBoxList();
        }
    }
    private void bindCheckBoxList()
    {   try
        {
            DataSet Ds = GetDataSet("Select * from Countrytable");
            chklisttest.DataSource = Ds;
            chklisttest.DataTextField = "CountryName";
            chklisttest.DataValueField = "CountryID";
            chklisttest.DataBind();
        }
        catch (Exception){}
    }
    private DataSet GetDataSet(string Query)
    {   DataSet Ds = new DataSet();
        try
        {   string strCon = @"Data Source=Servername;Initial Catalog=Test;Integrated Security=True";
            SqlConnection Con = new SqlConnection(strCon);
            SqlDataAdapter Da = new SqlDataAdapter(Query, Con);
            Da.Fill(Ds);           
        }
        catch (Exception){}
        return Ds;
    }
}
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;fieldset &gt;
&lt;legend&gt;Related Other posts&lt;/legend&gt;
&lt;table&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/how-to-add-html-code-in-blogspot.html" target="_blank"&gt;Html Code in blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/radiobuttonlist-example-in-aspnet-c.html" target="_blank"&gt;Radiobuttonlist Example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/bind-image-in-datalist-control-in.html" target="_blank"&gt;Image In Datalist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html" target="_blank"&gt;Merge docs files in c#&lt;/a&gt;&lt;/li&gt;

&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/to-take-back-up-of-database-in-sql.html" target="_blank"&gt;Database backup in sql Server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/checkboxlist-example-in-aspnet-c.html" target="_blank"&gt;CheckboxList example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html" target="_blank"&gt;Send mail in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation using jquery in asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/fieldset&gt;

&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-7245350569312126629?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/n-Fppqqjx4U" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/7245350569312126629/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2011/12/checkboxlist-example-in-aspnet-c.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/7245350569312126629?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/7245350569312126629?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/n-Fppqqjx4U/checkboxlist-example-in-aspnet-c.html" title="CheckBoxList example In Asp.net c#" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-gMt2CisW7gE/TvmZtLfo6uI/AAAAAAAAAVc/P3GqTvvQgV0/s72-c/Checkboxlist_Example.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2011/12/checkboxlist-example-in-aspnet-c.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A08MRHs6fip7ImA9WhRWGU4.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-1381410143797452543</id><published>2011-12-26T22:21:00.001-08:00</published><updated>2012-01-07T04:38:05.516-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-07T04:38:05.516-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="DataSet" /><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net C#" /><title>Fill Dataset In  Asp.net C#</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/MgXVIcbPGvpxfP_eVwLf1cO0WM0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MgXVIcbPGvpxfP_eVwLf1cO0WM0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/MgXVIcbPGvpxfP_eVwLf1cO0WM0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MgXVIcbPGvpxfP_eVwLf1cO0WM0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;Fill DataSet In Asp.net C#&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Introduction :&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
In this article i will show how to fill &lt;b&gt;dataset from database sql server&lt;/b&gt; using c# language .For this i have created common methodh in which you have just pass the query and it automatically return the filled &lt;b&gt;dataset &lt;/b&gt;.GetDataSet function contains the easy code to &lt;b&gt;fill the dataset&lt;/b&gt; .&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Calling the method :&lt;/b&gt;
&lt;br /&gt;
&lt;pre&gt;DataSet Ds = GetDataSet("Select * from Tablename");&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;Method to bind dataset :&lt;/b&gt;
&lt;br /&gt;
&lt;pre&gt;private DataSet GetDataSet(string Query)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataSet Ds = new DataSet();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string strCon =""; // set connetion string here ..
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SqlConnection Con = new SqlConnection(strCon);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SqlDataAdapter Da = new SqlDataAdapter(Query, Con);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Da.Fill(Ds);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Exception)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return Ds;
&amp;nbsp;&amp;nbsp;&amp;nbsp; } 
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;fieldset &gt;
&lt;legend&gt;Related Other posts&lt;/legend&gt;
&lt;table&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/how-to-add-html-code-in-blogspot.html" target="_blank"&gt;Html Code in blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/radiobuttonlist-example-in-aspnet-c.html" target="_blank"&gt;Radiobuttonlist Example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/bind-image-in-datalist-control-in.html" target="_blank"&gt;Image In Datalist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html" target="_blank"&gt;Merge docs files in c#&lt;/a&gt;&lt;/li&gt;

&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/to-take-back-up-of-database-in-sql.html" target="_blank"&gt;Database backup in sql Server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/checkboxlist-example-in-aspnet-c.html" target="_blank"&gt;CheckboxList example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html" target="_blank"&gt;Send mail in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation using jquery in asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/fieldset&gt;

&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-1381410143797452543?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/uJauo423IZw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/1381410143797452543/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2011/12/fill-dataset-in-aspnet-c.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/1381410143797452543?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/1381410143797452543?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/uJauo423IZw/fill-dataset-in-aspnet-c.html" title="Fill Dataset In  Asp.net C#" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2011/12/fill-dataset-in-aspnet-c.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEcDQHwyfSp7ImA9WhRUF0k.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-6077950709894436341</id><published>2011-06-03T02:28:00.000-07:00</published><updated>2012-01-28T01:14:31.295-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-28T01:14:31.295-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="GridView" /><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net C#" /><title>DateTime Format in GridView ItemTemplate In Asp.net C#</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/RlpyjZBIeSlWV9S86HL25QTlZxg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RlpyjZBIeSlWV9S86HL25QTlZxg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/RlpyjZBIeSlWV9S86HL25QTlZxg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RlpyjZBIeSlWV9S86HL25QTlZxg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;DateTime Format in GridView ItemTemplate In Asp.net C#&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To format DateTime in GridView In ItemTemplate we have to pass format in eval or bind . There are many format available for the &lt;br /&gt;
DateTime .In this article i have given some example that how to format datetime and at end i have listed the datetime format&lt;br /&gt;
used in gridview .&lt;br /&gt;
&lt;br /&gt;
Following are&amp;nbsp; the examples of ItemTemplate where format used for datetime .&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;asp:TemplateField&amp;gt;
    &amp;lt;ItemTemplate&amp;gt;
        &amp;lt;asp:Label ID="lblDate" runat="server" Text='&amp;lt;%# Eval("Date", "{0:dd/MM/yyyy}")%&amp;gt;' &amp;gt;&amp;lt;/asp:Label&amp;gt;
    &amp;lt;/ItemTemplate&amp;gt;
&amp;lt;/asp:TemplateField&amp;gt;
&amp;lt;asp:TemplateField&amp;gt;
    &amp;lt;ItemTemplate&amp;gt;
        &amp;lt;asp:Label ID="lblDat1" runat="server" Text='&amp;lt;%# Eval("Date", "{0:D}")%&amp;gt;' &amp;gt;&amp;lt;/asp:Label&amp;gt;
    &amp;lt;/ItemTemplate&amp;gt;
&amp;lt;/asp:TemplateField&amp;gt;
&lt;/pre&gt;
&lt;br /&gt;
Following are&amp;nbsp; the examples of BoundFieldwhere format used for datetime .&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;asp:boundfield datafield="DOB" dataformatstring="{0:d}" headertext="Date Of Birth" readonly="True"&amp;gt; &amp;lt;/asp:boundfield&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
The following table shows some date format strings that can be used to format date in GridView columns,&lt;br /&gt;
&lt;br /&gt;
 &lt;table class="gridtable"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;th&gt;&lt;b&gt;Format Pattern&lt;/b&gt;&lt;/th&gt;
&lt;th&gt;&lt;b&gt;Name&lt;/b&gt;&lt;/th&gt;
&lt;th&gt;&lt;b&gt;Example&lt;/b&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;d&lt;/td&gt;
&lt;td&gt;Short date&lt;/td&gt;
&lt;td&gt;11/8/2008&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;D&lt;/td&gt;
&lt;td&gt;Long date&lt;/td&gt;
&lt;td&gt;Sunday, August 11, 2008&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;t&lt;/td&gt;
&lt;td&gt;Short time&lt;/td&gt;
&lt;td&gt;3:32 PM
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T
&lt;/td&gt;
&lt;td&gt;Long time
&lt;/td&gt;
&lt;td&gt;3:32:00 PM
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;f
&lt;/td&gt;
&lt;td&gt;Full date/time (short time)
&lt;/td&gt;
&lt;td&gt;Sunday, August 11, 2008 3:32 PM
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;F
&lt;/td&gt;
&lt;td&gt;Full date/time (long time)
&lt;/td&gt;
&lt;td&gt;Sunday, August 11, 2008 3:32:00 PM
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;g
&lt;/td&gt;
&lt;td&gt;General date/time (short time)
&lt;/td&gt;
&lt;td&gt;8/11/2008 3:32 PM
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;G
&lt;/td&gt;
&lt;td&gt;General date/time (long time)
&lt;/td&gt;
&lt;td&gt;8/11/2008 3:32:00 PM
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;m or M
&lt;/td&gt;
&lt;td&gt;Month day
&lt;/td&gt;
&lt;td&gt;August 11
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;r or R
&lt;/td&gt;
&lt;td&gt;RFC 1123
&lt;/td&gt;
&lt;td&gt;Sun, 11 Aug 2008 8:32:00 GMT
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;s
&lt;/td&gt;
&lt;td&gt;Sortable date/time
&lt;/td&gt;
&lt;td&gt;2008-08-11T15:32:00
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;u
&lt;/td&gt;
&lt;td&gt;Universable sortable date/time
&lt;/td&gt;
&lt;td&gt;2008-08-11 15:32:00z
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;U
&lt;/td&gt;
&lt;td&gt;Universable sortable date/time
&lt;/td&gt;
&lt;td&gt;Sunday, August 11, 2008 11:32:00 PM
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y or Y&lt;/td&gt;
&lt;td&gt;Year month&lt;/td&gt;
&lt;td&gt;August, 2008&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;fieldset &gt;
&lt;legend&gt;Related Other posts&lt;/legend&gt;
&lt;table&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/how-to-add-html-code-in-blogspot.html" target="_blank"&gt;Html Code in blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/radiobuttonlist-example-in-aspnet-c.html" target="_blank"&gt;Radiobuttonlist Example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/bind-image-in-datalist-control-in.html" target="_blank"&gt;Image In Datalist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/merge-word-document-files-in-aspnet-c.html" target="_blank"&gt;Merge docs files in c#&lt;/a&gt;&lt;/li&gt;

&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/to-take-back-up-of-database-in-sql.html" target="_blank"&gt;Database backup in sql Server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/12/checkboxlist-example-in-aspnet-c.html" target="_blank"&gt;CheckboxList example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/send-mail-using-gmail-in-aspnet-c.html" target="_blank"&gt;Send mail in asp.net c#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;ul style="list-style-type: circle;"&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hamidseta.blogspot.com/2012/01/validation-using-jquery-in-aspnet-page.html" target="_blank"&gt;Validation using jquery in asp.net page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/fieldset&gt;

&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-6077950709894436341?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/Hi06MYUeylk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/6077950709894436341/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/6077950709894436341?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/6077950709894436341?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/Hi06MYUeylk/datetime-format-in-gridview.html" title="DateTime Format in GridView ItemTemplate In Asp.net C#" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUYFSHw9fCp7ImA9WhRWFkU.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-6388749729124493444</id><published>2011-06-02T22:22:00.000-07:00</published><updated>2012-01-04T05:18:39.264-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-04T05:18:39.264-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Sql Server" /><title>Find all references Of Object Table , Stored Procedures, Scalar function In sql Server</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/FyVEF1bUES6ZOfoDWnywkSBXYCE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FyVEF1bUES6ZOfoDWnywkSBXYCE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/FyVEF1bUES6ZOfoDWnywkSBXYCE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FyVEF1bUES6ZOfoDWnywkSBXYCE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;b&gt;Find all references Of Object Table , Stored Procedures, Scalar function In sql Server &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;Following is the query by which you can get all references of object&amp;nbsp; Like &lt;b&gt;Table , Stored procedures ,Scalar function&lt;/b&gt; ..etc In  Scalar function ,Trigger ,View ,stored procedure ..etc.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Many times we require that &lt;b&gt;find all stored procedures that reference a given table&lt;/b&gt; .&lt;/div&gt;&lt;br /&gt;
By Following to search all objects in a database containing a certain string .&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;SELECT DISTINCT o.name AS ObjectName,
CASE o.xtype
WHEN 'C' THEN 'CHECK constraint'
WHEN 'D' THEN 'Default or DEFAULT constraint'
WHEN 'F' THEN 'FOREIGN KEY constraint'
WHEN 'FN' THEN 'Scalar function'
WHEN 'IF' THEN 'In-lined table-function'
WHEN 'K' THEN 'PRIMARY KEY or UNIQUE constraint'
WHEN 'L' THEN 'Log'
WHEN 'P' THEN 'Stored procedure'
WHEN 'R' THEN 'Rule'
WHEN 'RF' THEN 'Replication filter stored procedure'
WHEN 'S' THEN 'System table'
WHEN 'TF' THEN 'Table function'
WHEN 'TR' THEN 'Trigger'
WHEN 'U' THEN 'User table'
WHEN 'V' THEN 'View'
WHEN 'X' THEN 'Extended stored procedure'
ELSE o.xtype
END AS ObjectType,
ISNULL( p.Name, '[db]') AS Location
FROM syscomments c
INNER JOIN sysobjects o ON c.id=o.id
LEFT JOIN sysobjects p ON o.Parent_obj=p.id
WHERE c.text LIKE '%any text to search for%'
ORDER BY Location, ObjectName
&lt;/pre&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;If pass table object name then it show all references table in Stored procedures ,Scalar function ..etc .&lt;/div&gt;&lt;div style="text-align: justify;"&gt;If pass Stored procedure object name then it show all references Stored procedures in Stored Procedures ..etc .&lt;/div&gt;&lt;/br&gt;
&lt;/br&gt;
&lt;fieldset style="padding:5px;"&gt;&lt;legend  &gt;Related Other posts&lt;/legend&gt;
&lt;table&gt;
    &lt;tr&gt;
        &lt;td&gt;
        &lt;ul style="list-style-type:circle;"&gt;
&lt;li&gt;&lt;a   href="http://hamidseta.blogspot.com/2011/12/how-to-add-html-code-in-blogspot.html" target="_blank" &gt;Html Code in Blodspot&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a   href="http://hamidseta.blogspot.com/2011/12/radiobuttonlist-example-in-aspnet-c.html" target="_blank"&gt;Radiobuttonlist Example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a   href="http://hamidseta.blogspot.com/2011/05/bind-image-in-datalist-control-in.html" target="_blank"&gt;Image In Datalist&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
        &lt;/td&gt;
        &lt;td&gt;
        &lt;ul style="list-style-type:circle;"&gt;
&lt;li&gt;&lt;a   href="http://hamidseta.blogspot.com/2011/05/to-take-back-up-of-database-in-sql.html" target="_blank"&gt;Database backup in sql Server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a   href="http://hamidseta.blogspot.com/2011/12/checkboxlist-example-in-aspnet-c.html" target="_blank"&gt;CheckboxList example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a   href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
        &lt;/td&gt;
        &lt;td&gt;
        &lt;ul style="list-style-type:circle;"&gt;
&lt;li&gt;&lt;a   href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a   href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a   href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
&lt;/fieldset&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-6388749729124493444?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/bY-nH7_dVfo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/6388749729124493444/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2011/06/find-all-references-of-object-table.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/6388749729124493444?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/6388749729124493444?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/bY-nH7_dVfo/find-all-references-of-object-table.html" title="Find all references Of Object Table , Stored Procedures, Scalar function In sql Server" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2011/06/find-all-references-of-object-table.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEYEQHg_fSp7ImA9WhRUF0k.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-8037846056622969346</id><published>2011-06-02T05:56:00.000-07:00</published><updated>2012-01-28T01:15:01.645-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-28T01:15:01.645-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net C#" /><title>String was not recognized as a valid Boolean In C#</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/FAMxLd_VX8GnoGWeQ4EODFGUmUI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FAMxLd_VX8GnoGWeQ4EODFGUmUI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/FAMxLd_VX8GnoGWeQ4EODFGUmUI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FAMxLd_VX8GnoGWeQ4EODFGUmUI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;String was not recognized as a valid Boolean In C#&lt;/b&gt; .
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;
&lt;b&gt;Introduction :&lt;/b&gt; In this article i will show how to resolve the error s&lt;b&gt;tring was not recognized as a valid Boolean in . &lt;/b&gt;Its very easy to resolve .just you need to create one method .Pass the string to method then it will return &lt;b&gt;Boolean&lt;/b&gt; .&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;Method for valid Boolean&lt;/b&gt; :
&lt;br /&gt;&lt;pre&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private static bool GetBoolean(string strValue)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (strValue=="1")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;Call the function :&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;
 GetBoolean(stringValue) ;&lt;/pre&gt;
&lt;/br&gt;
&lt;fieldset style="padding:5px;"&gt;&lt;legend  &gt;Related Other posts&lt;/legend&gt;
&lt;table&gt;
    &lt;tr&gt;
        &lt;td&gt;
        &lt;ul style="list-style-type:circle;"&gt;
&lt;li&gt;&lt;a   href="http://hamidseta.blogspot.com/2011/12/how-to-add-html-code-in-blogspot.html" target="_blank" &gt;Html Code in Blodspot&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a   href="http://hamidseta.blogspot.com/2011/12/radiobuttonlist-example-in-aspnet-c.html" target="_blank"&gt;Radiobuttonlist Example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a   href="http://hamidseta.blogspot.com/2011/05/bind-image-in-datalist-control-in.html" target="_blank"&gt;Image In Datalist&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
        &lt;/td&gt;
        &lt;td&gt;
        &lt;ul style="list-style-type:circle;"&gt;
&lt;li&gt;&lt;a   href="http://hamidseta.blogspot.com/2011/05/to-take-back-up-of-database-in-sql.html" target="_blank"&gt;Database backup in sql Server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a   href="http://hamidseta.blogspot.com/2011/12/checkboxlist-example-in-aspnet-c.html" target="_blank"&gt;CheckboxList example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a   href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html" target="_blank"&gt;Datetime format in gridview&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
        &lt;/td&gt;
        &lt;td&gt;
        &lt;ul style="list-style-type:circle;"&gt;
&lt;li&gt;&lt;a   href="http://hamidseta.blogspot.com/2011/05/fetch-highest-second-record-in-sql.html" target="_blank"&gt;Highest second record in sql &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a   href="http://hamidseta.blogspot.com/2011/05/nested-gridview-in-aspnet.html" target="_blank"&gt;Nested gridview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a   href="http://hamidseta.blogspot.com/2011/05/checking-all-checkboxes-in-gridview-by.html" target="_blank"&gt;Checkboxs in gridview&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
&lt;/fieldset&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-8037846056622969346?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/ljHCGg3yHVI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/8037846056622969346/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2011/06/string-was-not-recognized-as-valid.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/8037846056622969346?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/8037846056622969346?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/ljHCGg3yHVI/string-was-not-recognized-as-valid.html" title="String was not recognized as a valid Boolean In C#" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2011/06/string-was-not-recognized-as-valid.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEYAQXc5fyp7ImA9WhRUF0k.&quot;"><id>tag:blogger.com,1999:blog-8892227236862052262.post-1137448988016023280</id><published>2011-05-09T06:23:00.000-07:00</published><updated>2012-01-28T01:15:40.927-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-28T01:15:40.927-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Rich-text Editors" /><title>Free Open Source Rich-text editors List</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/WLT21oChEpvqjHjbVZfUn21T7eI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WLT21oChEpvqjHjbVZfUn21T7eI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/WLT21oChEpvqjHjbVZfUn21T7eI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WLT21oChEpvqjHjbVZfUn21T7eI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;b&gt;Free Open Source Rich-text editors List&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Rich-text editors are web components that allow users to edit and enter text within a web browser. &lt;br /&gt;
Its allows you to format the text .Following are the list of open source html editors .&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Tinymce &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Its a Javascript WYSIWYG Editor and Open Source under LGPL by Moxiecode Systems AB.It is a easy to integrate , custimizable and lightweight .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Following is the example of the tinymce editor :-&lt;br /&gt;
&lt;br /&gt;
Example :-&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-4u1-eecPxE4/TcfqOHQK_dI/AAAAAAAAAS4/pDGmVt35lFc/s1600/Free%2BTinymce%2Beditors.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-4u1-eecPxE4/TcfqOHQK_dI/AAAAAAAAAS4/pDGmVt35lFc/s1600/Free%2BTinymce%2Beditors.bmp" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;a href="http://tinymce.moxiecode.com/download/download.php"&gt;Download&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://tinymce.moxiecode.com/tryit/full.php"&gt;Demo &lt;/a&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;FCK Editor&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
FCKeditor has been around for more than six years. Since 2003 it has built a strong user community becoming the most used editor in the market, accumulating more than 3,5 million downloads. &lt;br /&gt;
In 2009, it renamed to the editor CKEditor, bringing to light the next generation of our software: CKEditor 3.0.&lt;br /&gt;
&lt;br /&gt;
Because CKEditor is licensed under flexible Open Source and commercial licenses, you'll be able to integrate and use it inside any kind of application. &lt;br /&gt;
This is the ideal editor for developers, created to provide easy and powerful solutions to their users.&lt;br /&gt;
Editor with all features&lt;br /&gt;
-    Interface color&lt;br /&gt;
-    Multi-language interface&lt;br /&gt;
-    Custom toolbar&lt;br /&gt;
-    Skins&lt;br /&gt;
&lt;br /&gt;
Example :-&lt;br /&gt;
&lt;pre&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-rrUHr8lHk1U/TcfqcSrGRFI/AAAAAAAAATA/pDaGE_0vhEE/s1600/FCK%2BEditor%2BImage.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-rrUHr8lHk1U/TcfqcSrGRFI/AAAAAAAAATA/pDaGE_0vhEE/s1600/FCK%2BEditor%2BImage.bmp" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;a href="http://www.fckeditor.net/download"&gt;Download&lt;/a&gt; &lt;br /&gt;
&lt;a href="http://www.fckeditor.net/demo"&gt;Demo&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;FreeTextBox HTML Editor&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The free version of FreeTextBox enables users to do basic HTML editing in a WYSIWYG environment with a look and feel similar to desktop products.&lt;br /&gt;
It is the&amp;nbsp; popular free ASP.NET WYSIWYG rich HTML editor&lt;br /&gt;
&lt;br /&gt;
Browser Support&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; IE 6,7,8,9&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Firefox 1+&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Google Chrome 1+&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Apple Safari 3,4,5&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Opera 7,8,9,10&lt;br /&gt;
&lt;br /&gt;
Example :-&lt;br /&gt;
&lt;pre&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-OMGBkdec-Po/Tcj4uxZqoqI/AAAAAAAAATI/aNNysaTqQnU/s1600/FreeTerxtBox+Editor.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-OMGBkdec-Po/Tcj4uxZqoqI/AAAAAAAAATI/aNNysaTqQnU/s1600/FreeTerxtBox+Editor.bmp" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;a href="http://freetextbox.com/demos/"&gt;Demo&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://freetextbox.com/download/%20"&gt;Download&lt;/a&gt;&lt;/b&gt;
&lt;/br&gt;
&lt;/br&gt;
&lt;fieldset&gt;&lt;legend&gt;Related Other posts&lt;/legend&gt;

&lt;a style="font-size: 12pt;"  href="http://hamidseta.blogspot.com/2011/12/how-to-add-html-code-in-blogspot.html"&gt;Html Code in Blodspot&lt;/a&gt;
&lt;a style="font-size: 12pt;"  href="http://hamidseta.blogspot.com/2011/12/radiobuttonlist-example-in-aspnet-c.html"&gt;Radiobuttonlist Example&lt;/a&gt;


&lt;a style="font-size: 12pt;"  href="http://hamidseta.blogspot.com/2011/05/bind-image-in-datalist-control-in.html"&gt;Image In Datalist&lt;/a&gt;
&lt;a style="font-size: 12pt;"  href="http://hamidseta.blogspot.com/2011/05/to-take-back-up-of-database-in-sql.html"&gt;Database backup in sql Server&lt;/a&gt;
&lt;a style="font-size: 12pt;"  href="http://hamidseta.blogspot.com/2011/12/checkboxlist-example-in-aspnet-c.html"&gt;CheckboxList example&lt;/a&gt;
&lt;a style="font-size: 12pt;"  href="http://hamidseta.blogspot.com/2011/06/datetime-format-in-gridview.html"&gt;Datetime format in gridview&lt;/a&gt;
&lt;/fieldset&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8892227236862052262-1137448988016023280?l=hamidseta.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/wmBMe/~4/a5uo8KeOZjw" height="1" width="1"/&gt;</content><link rel="related" href="http://hamidseta.blogspot.com/2011/05/free-open-source-rich-text-editors-list.html" title="Free Open Source Rich-text editors List" /><link rel="replies" type="application/atom+xml" href="http://hamidseta.blogspot.com/feeds/1137448988016023280/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hamidseta.blogspot.com/2011/05/free-open-source-rich-text-editors-list.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/1137448988016023280?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8892227236862052262/posts/default/1137448988016023280?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/wmBMe/~3/a5uo8KeOZjw/free-open-source-rich-text-editors-list.html" title="Free Open Source Rich-text editors List" /><author><name>seta hamid</name><uri>http://www.blogger.com/profile/08452079705876987424</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-4u1-eecPxE4/TcfqOHQK_dI/AAAAAAAAAS4/pDGmVt35lFc/s72-c/Free%2BTinymce%2Beditors.bmp" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://hamidseta.blogspot.com/2011/05/free-open-source-rich-text-editors-list.html</feedburner:origLink></entry></feed>

