<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4695737620265728634</id><updated>2025-09-25T00:01:03.358-07:00</updated><category term="HTML"/><category term="ASP.NET"/><category term="HTML Tag"/><category term="JQuery"/><category term="CSS"/><category term="SqlServer"/><category term="JavaScript"/><category term="Ajax"/><category term="Silverlight"/><category term="Sql Function"/><category term="JQuery UI"/><category term="Mobile Game"/><category term="Social Media"/><category term=".Net Interview Questions"/><category term="Blogging"/><category term="C#"/><category term="Computer"/><category term="Errors"/><category term="Mobile World"/><category term="Apps and Software"/><category term="Questions &amp; Answers"/><category term="Internet"/><category term="SEO"/><category term="Web.Config"/><category term="Film"/><category term="Sql Joins"/><category term="ADO.NET"/><category term="DataList"/><category term="Authentication"/><category term="Dropdownlist"/><category term="Gaming"/><category term="IIS Server"/><category term="SharePoint"/><category term="Technology"/><category term="ThumbnailsGeneration"/><category term="Advertise"/><category term="FileUpload"/><category term="IP Address"/><category term="Listbox"/><category term="OOPS Concepts"/><category term="Resize Image"/><category term="SQL Constraints"/><category term="Services"/><category term="SiteMap"/><category term="Television"/><category term="Testing"/><title type='text'>Gohil Infotech</title><subtitle type='html'>All Asp.Net,C#.Net,SqlServer,Ajax,Html,CSS,JavaScript,Jquery,Ajax,Silverlight Programing Solution and Example</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gohilinfotech.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default?max-results=10'/><link rel='alternate' type='text/html' href='http://gohilinfotech.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default?start-index=11&amp;max-results=10'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01019900218712560808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>471</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>10</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4695737620265728634.post-2178987538109532342</id><published>2013-09-11T04:58:00.001-07:00</published><updated>2013-09-11T04:58:43.948-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><title type='text'>Display Current date in griedview</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Introduction:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Here i will explain how to display current date in griedview.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Description:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Most of the very useful in the griedview to show current date.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Example:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&lt;asp:templatefield headertext=&quot;Current Date&quot;&gt;
                   &lt;itemtemplate&gt;
                   &lt;asp:label id=&quot;lblcurdate&quot; runat=&quot;server&quot; text=&quot;&amp;lt;%= System.DateTime.Now.ToString() %&amp;gt;&quot;&gt;
                   &lt;/asp:label&gt;
                   &lt;/itemtemplate&gt;
                   &lt;/asp:templatefield&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gohilinfotech.blogspot.com/feeds/2178987538109532342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gohilinfotech.blogspot.com/2013/09/display-current-date-in-griedview.html#comment-form' title='58 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/2178987538109532342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/2178987538109532342'/><link rel='alternate' type='text/html' href='http://gohilinfotech.blogspot.com/2013/09/display-current-date-in-griedview.html' title='Display Current date in griedview'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01019900218712560808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>58</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4695737620265728634.post-3404166630998685082</id><published>2013-09-11T04:51:00.000-07:00</published><updated>2013-09-11T04:51:34.041-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><title type='text'>Multiple Rows Delete in a GridView in ASP.Net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Introduction:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Here i will explain&amp;nbsp; how to Multiple Rows Delete in a GridView in ASP.Net.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Description:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;While fetching data from SQL tables to a webpage, adding data source to the GridView comes foremost. The next big thing is to provide an interface to the user so that data can be accessed, updated, removed in lesser clicks.The lesser the process is hectic, more user friendly our interface becomes.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Example:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt; 
&amp;lt;asp:gridview datakeynames=&amp;quot;empid&amp;quot; datasourceid=&amp;quot;SqlDataSource1&amp;quot; id=&amp;quot;GridView1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;

       &amp;lt;columns&amp;gt;

           &amp;lt;asp:templatefield&amp;gt;

                &amp;lt;itemtemplate&amp;gt;

                &amp;lt;asp:checkbox id=&amp;quot;chk&amp;quot; onclick=&amp;quot;Check_Click(this)&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;

                &amp;lt;/asp:checkbox&amp;gt;&amp;lt;/itemtemplate&amp;gt;

            &amp;lt;/asp:templatefield&amp;gt;

 &amp;lt;asp:boundfield datafield=&amp;quot;empid&amp;quot; headertext=&amp;quot;empid&amp;quot; insertvisible=&amp;quot;False&amp;quot; readonly=&amp;quot;True&amp;quot; sortexpression=&amp;quot;empid&amp;quot;&amp;gt;

            &amp;lt;asp:boundfield datafield=&amp;quot;name&amp;quot; headertext=&amp;quot;name&amp;quot; sortexpression=&amp;quot;name&amp;quot;&amp;gt;

            &amp;lt;asp:boundfield datafield=&amp;quot;password&amp;quot; headertext=&amp;quot;password&amp;quot; sortexpression=&amp;quot;password&amp;quot;&amp;gt;

            &amp;lt;asp:boundfield datafield=&amp;quot;city&amp;quot; headertext=&amp;quot;city&amp;quot; sortexpression=&amp;quot;city&amp;quot;&amp;gt;

            &amp;lt;asp:boundfield datafield=&amp;quot;country&amp;quot; headertext=&amp;quot;country&amp;quot; sortexpression=&amp;quot;country&amp;quot;&amp;gt;

        &amp;lt;/asp:boundfield&amp;gt;&amp;lt;/asp:boundfield&amp;gt;&amp;lt;/asp:boundfield&amp;gt;&amp;lt;/asp:boundfield&amp;gt;&amp;lt;/asp:boundfield&amp;gt;
&amp;lt;/columns&amp;gt;

&amp;lt;/asp:gridview&amp;gt;
&lt;/pre&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;C#
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt; protected void btnDelete_Click(object sender, EventArgs e)

{

        SqlConnection con = new SqlConnection(@&quot;Data Source=(local);Initial Catalog=Employee;Integrated Security=True&quot;);

        con.Open();

        int count = 0;

        for (int i = 0; i &amp;lt; GridView1.Rows.Count; i++)

        {

        CheckBox chk = (CheckBox)GridView1.Rows[i].Cells[0].FindControl(&quot;chk&quot;);

            if (chk.Checked)

            {

                string id = GridView1.DataKeys[i].Value.ToString();

                SqlCommand cmd = new SqlCommand(&quot;delete from users where empid=&#39;&quot;+id+&quot;&#39;&quot;, con);

                cmd.ExecuteNonQuery();

                count++;

            }

        }

        Response.Write(&quot;&lt;script&gt;alert(&#39;&quot; + count + &quot; Rows Deleted!&#39;)&lt;/script&gt;&quot;);

        con.Close();

DataBind();

}
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gohilinfotech.blogspot.com/feeds/3404166630998685082/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gohilinfotech.blogspot.com/2013/09/multiple-rows-delete-in-gridview-in.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/3404166630998685082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/3404166630998685082'/><link rel='alternate' type='text/html' href='http://gohilinfotech.blogspot.com/2013/09/multiple-rows-delete-in-gridview-in.html' title='Multiple Rows Delete in a GridView in ASP.Net'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01019900218712560808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4695737620265728634.post-8028694097642493727</id><published>2013-09-07T05:08:00.000-07:00</published><updated>2013-09-07T05:08:09.668-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><title type='text'>Create a Simple and Stylish Calculator Using HTML, CSS and JavaScript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Introduction:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Here i will explain Create a Simple and Stylish Calculator Using HTML, CSS and JavaScript.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Description:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;In this article, we will create a 
calculator step-by-step. We need to create a basic structure using HTML,
 style it using CSS and make it work using JavaScript.&lt;/span&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;HTML:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&lt;div class=&quot;box&quot;&gt;
&lt;div class=&quot;display&quot;&gt;
&lt;input id=&quot;d&quot; readonly=&quot;readonly&quot; size=&quot;18&quot; type=&quot;text&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;keys&quot;&gt;
&lt;input class=&quot;button gray&quot; onclick=&quot;c(&amp;quot;Created....................&amp;quot;)&quot; type=&quot;button&quot; value=&quot;mrc&quot; /&gt;
            &lt;input class=&quot;button gray&quot; onclick=&quot;c(&amp;quot;...............by............&amp;quot;)&quot; type=&quot;button&quot; value=&quot;m-&quot; /&gt;&lt;input class=&quot;button gray&quot; onclick=&quot;c(&amp;quot;.....................Anoop&amp;quot;)&quot; type=&quot;button&quot; value=&quot;m+&quot; /&gt;&lt;input class=&quot;button pink&quot; onclick=&quot;v(&amp;quot;/&amp;quot;)&quot; type=&quot;button&quot; value=&quot;/&quot; /&gt;&lt;br /&gt;
&lt;input class=&quot;button black&quot; onclick=&quot;v(&amp;quot;7&amp;quot;)&quot; type=&quot;button&quot; value=&quot;7&quot; /&gt;&lt;input class=&quot;button black&quot; onclick=&quot;v(&amp;quot;8&amp;quot;)&quot; type=&quot;button&quot; value=&quot;8&quot; /&gt;&lt;input class=&quot;button black&quot; onclick=&quot;v(&amp;quot;9&amp;quot;)&quot; type=&quot;button&quot; value=&quot;9&quot; /&gt;&lt;input class=&quot;button pink&quot; onclick=&quot;v(&amp;quot;*&amp;quot;)&quot; type=&quot;button&quot; value=&quot;*&quot; /&gt;

&lt;input class=&quot;button black&quot; onclick=&quot;v(&amp;quot;4&amp;quot;)&quot; type=&quot;button&quot; value=&quot;4&quot; /&gt;&lt;input class=&quot;button black&quot; onclick=&quot;v(&amp;quot;5&amp;quot;)&quot; type=&quot;button&quot; value=&quot;5&quot; /&gt;&lt;input class=&quot;button black&quot; onclick=&quot;v(&amp;quot;6&amp;quot;)&quot; type=&quot;button&quot; value=&quot;6&quot; /&gt;&lt;input class=&quot;button pink&quot; onclick=&quot;v(&amp;quot;-&amp;quot;)&quot; type=&quot;button&quot; value=&quot;-&quot; /&gt;

&lt;input class=&quot;button black&quot; onclick=&quot;v(&amp;quot;1&amp;quot;)&quot; type=&quot;button&quot; value=&quot;1&quot; /&gt;&lt;input class=&quot;button black&quot; onclick=&quot;v(&amp;quot;2&amp;quot;)&quot; type=&quot;button&quot; value=&quot;2&quot; /&gt;&lt;input class=&quot;button black&quot; onclick=&quot;v(&amp;quot;3&amp;quot;)&quot; type=&quot;button&quot; value=&quot;3&quot; /&gt;&lt;input class=&quot;button pink&quot; onclick=&quot;v(&amp;quot;+&amp;quot;)&quot; type=&quot;button&quot; value=&quot;+&quot; /&gt;

&lt;input class=&quot;button black&quot; onclick=&quot;v(&amp;quot;0&amp;quot;)&quot; type=&quot;button&quot; value=&quot;0&quot; /&gt;&lt;input class=&quot;button black&quot; onclick=&quot;v(&amp;quot;.&amp;quot;)&quot; type=&quot;button&quot; value=&quot;.&quot; /&gt;&lt;input class=&quot;button black&quot; onclick=&quot;c(&amp;quot;&amp;quot;)&quot; type=&quot;button&quot; value=&quot;C&quot; /&gt;&lt;input class=&quot;button orange&quot; onclick=&quot;e()&quot; type=&quot;button&quot; value=&quot;=&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/pre&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;CSS:

&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;css&quot; name=&quot;code&quot;&gt;body
{
background-color:tan;
}
.box
{
background-color:#3d4543;
height:300px;
width:250px;
border-radius:10px;
position:relative;
top:80px;
left:40%;
}
.display
{
background-color:#222;
width:220px;
position:relative;
left:15px;
top:20px;
height:40px;
}
.display input
{
position:relative;
left:2px;
top:2px;
height:35px;
color:black;
background-color:#bccd95;
font-size:21px;
text-align:right;
}
.keys {
position:relative;
top:15px;
}
.button {
width:40px;
height:30px;
border:none;
border-radius:8px;
margin-left:17px;
cursor:pointer;
border-top:2px solid transparent;
}
.button.gray {
color:white;
background-color:#6f6f6f;
border-bottom:black 2px solid;
border-top:2px #6f6f6f solid;
}
.button.pink {
color:black;
background-color:#ff4561;
border-bottom:black 2px solid;
}
.button.black {
color:white;
background-color:303030;
border-bottom:black 2px solid;
border-top:2px 303030 solid;
}
.button.orange {
color:black;
background-color:FF9933;
border-bottom:black 2px solid;
border-top:2px FF9933 solid;
}
.gray:active {
border-top:black 2px solid;
border-bottom:2px #6f6f6f solid;
}
.pink:active {
border-top:black 2px solid;
border-bottom:#ff4561 2px solid;
}
.black:active {
border-top:black 2px solid;
border-bottom:#303030 2px solid;
}
.orange:active {
border-top:black 2px solid;
border-bottom:FF9933 2px solid;
}
p {
line-height:10px;
}
&lt;/pre&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;SCRIPT:

&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;pre class=&quot;js&quot; name=&quot;code&quot;&gt;function c(val)
{
 document.getElementById(&quot;d&quot;).value=val;
}
    function v(val)
{document.getElementById(&quot;d&quot;).value+=val;
}
function e() 
{ 
    try 
    { 
        c(eval(document.getElementById(&quot;d&quot;).value)) 
    } 
    catch(e) 
    {
        c(&#39;Error&#39;) } 
}
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gohilinfotech.blogspot.com/feeds/8028694097642493727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gohilinfotech.blogspot.com/2013/09/create-simple-and-stylish-calculator.html#comment-form' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/8028694097642493727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/8028694097642493727'/><link rel='alternate' type='text/html' href='http://gohilinfotech.blogspot.com/2013/09/create-simple-and-stylish-calculator.html' title='Create a Simple and Stylish Calculator Using HTML, CSS and JavaScript'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01019900218712560808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4695737620265728634.post-2611426422757184377</id><published>2013-09-07T04:57:00.001-07:00</published><updated>2013-09-07T04:57:15.006-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><title type='text'>Create an Auto Complete List Like Google Using jQuery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Introduction:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Here i will explain Create an Auto Complete List Like Google Using jQuery&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Description:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;On many sites you must have seen that 
whenever you start writing in any TextBox then it starts showing the 
predicted and related results that allow you to choose from a number of 
available options. The best example is Facebook&#39;s Friends Finder and of 
course Google.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Example:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Step 1 &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;First of all you need to create a database in which all the country names are to be entered.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Step 2&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;After that you need to add jQuery 1.8.3 js and Jquery-ui. js file to your application.You
 can either download my Zip Code and retrieve both the jQuery files from
 there or can search for them on Google and can download them from 
another site.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&amp;lt;html&amp;gt;
&amp;lt;head runat=&quot;server&quot;&amp;gt;

    &amp;lt;title&amp;gt;Auto Complete List &amp;lt;/title&amp;gt;

    &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;css/jquery-ui.css&quot; /&amp;gt;

 

    &amp;lt;script src=&quot;js/jquery-1.8.3.js&quot; type=&quot;text/javascript&quot; &amp;gt;&amp;lt;/script&amp;gt;

    &amp;lt;script src=&quot;js/jquery-ui.js&quot; type=&quot;text/javascript&quot; &amp;gt;&amp;lt;/script&amp;gt;

 

    &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;

    function LoadList()

    {       

        var ac=null;

        ac = &amp;lt;%=listFilter %&amp;gt;;

            $( &quot;#Country&quot; ).autocomplete({

              source: ac

            });

    }

    &amp;lt;/script&amp;gt;

 

&amp;lt;/head&amp;gt;

&amp;lt;body onload=&quot;LoadList()&quot;&amp;gt;

    &amp;lt;form id=&quot;form1&quot; runat=&quot;server&quot;&amp;gt;

        &amp;lt;h2&amp;gt;

           Auto Complete List&amp;lt;/h2&amp;gt;

        &amp;lt;div class=&quot;auto-complete&quot;&amp;gt;

            &amp;lt;label for=&quot;tags&quot;&amp;gt;

                Type Country Name:

            &amp;lt;/label&amp;gt;

            &amp;lt;input id=&quot;Country&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;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;https://app.box.com/s/rvsy2hzpwbfrtkevbful&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Download Code File&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gohilinfotech.blogspot.com/feeds/2611426422757184377/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gohilinfotech.blogspot.com/2013/09/create-auto-complete-list-like-google.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/2611426422757184377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/2611426422757184377'/><link rel='alternate' type='text/html' href='http://gohilinfotech.blogspot.com/2013/09/create-auto-complete-list-like-google.html' title='Create an Auto Complete List Like Google Using jQuery'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01019900218712560808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4695737620265728634.post-8846344737592909657</id><published>2013-09-03T04:44:00.002-07:00</published><updated>2013-09-03T05:08:38.332-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><title type='text'>Send SMS using Modem(GSM Dongle) in C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;font-family: Verdana,sans-serif; text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Introduction:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Here i will explain Send SMS using Modem(GSM Dongle) in C#.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Description:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;today we will discuss a very important
 topic, sending SMS alerts to a mobile phone that is a common demand of 
most clients.
 So we developed a small application that runs on the server and sends a
 SMS whenever a new record is inserted into the database from any 
client.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;In this application we will use the following: &lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;GSM Modem (I have used Vodafone; you can use any) &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;SIM Card. &lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Create the table in SQL Server.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;sql&quot; name=&quot;code&quot;&gt;CREATE TABLE [dbo].[Donor_Profile](

      [Don_Date] [datetime] NULL,

      [Don_Donor_ID] [varchar](20) NOT NULL,

      [Don_Donor_Name] [varchar](50) NULL,

[Don_Mobile_Phone] [varchar](50) NULL,

      [Don_Member] [varchar](10) NULL,

      [Don_SMS1] [varchar](10) NULL,

      [Don_SMS2] [varchar](10) NULL,

      [Don_Logo] [image] NULL,

      [Don_Donor_Type] [int] NULL,

 CONSTRAINT [PK_Donor_Profile] PRIMARY KEY CLUSTERED

(

      [Don_Donor_ID] ASC

)
WITH (PAD_INDEX  = OFF,
STATISTICS_NORECOMPUTE  = OFF,
IGNORE_DUP_KEY = OFF, 
ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]

)
ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
&lt;/pre&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Now you can insert any record in the table but please make sure to insert:

[Don_Donor_ID]= CF-00001-12 and leave the [Don_SMS1], [Don_SMS2] field NULL, [Don_Mobile_Phone] please enter valid phone number where you want to recive the sms.

Create the new Desktop application.


Design the form as shown in the picture.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1xPEqPRj5tzM6UyFDRpb4wT4fKHZljKTtxz5sUIap6BbY0jCiMn9DWyacwy9R9T38DjxeZTF_7b8_Hc_Sx185WcySWxDvCpjSfQbq7Mzxv2EBYl4A8y4KGrQr40HCkU-ROeua0MwFFMs/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1xPEqPRj5tzM6UyFDRpb4wT4fKHZljKTtxz5sUIap6BbY0jCiMn9DWyacwy9R9T38DjxeZTF_7b8_Hc_Sx185WcySWxDvCpjSfQbq7Mzxv2EBYl4A8y4KGrQr40HCkU-ROeua0MwFFMs/s1600/1.jpg&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Step 5&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Dear Reader, please read this carefully in thais step we need to include the following DLL files in the bin\ Debug folder:&lt;/span&gt; &lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;GSMCommServer.dll&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;GSMCommShared.dll&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;GSMCommunication.dll&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;PDUConverter.dll&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 6&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Now we need to add the reference to the project as shown in the picture.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvq-HWnY7eQKooJ7WoBuVGweu49XwAbi3n87KfwAsHdq_PdVpXQ3Yw8SP6VAFybwoPQaHFJTpBC4gpGxA47hY6sg9ZUaXAWrbVG4Pq_zAc_FgziCIsLcgqtnGGNgzXd1pnuwT0fecgFRs/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvq-HWnY7eQKooJ7WoBuVGweu49XwAbi3n87KfwAsHdq_PdVpXQ3Yw8SP6VAFybwoPQaHFJTpBC4gpGxA47hY6sg9ZUaXAWrbVG4Pq_zAc_FgziCIsLcgqtnGGNgzXd1pnuwT0fecgFRs/s1600/1.jpg&quot; height=&quot;208&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH_5AFNFtIsXdC_eTQoIAr6F-ixpDx97A-pzxJCdWeM5dBdRLJY51B19FET0wc62ot4JnxUd22WYG7aGbRXWWzi8zi6UKVYtEdBQ2gNjyTrb_6f6NxEEiXOQdqAwSGJy1HC0D6KxH8Y14/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH_5AFNFtIsXdC_eTQoIAr6F-ixpDx97A-pzxJCdWeM5dBdRLJY51B19FET0wc62ot4JnxUd22WYG7aGbRXWWzi8zi6UKVYtEdBQ2gNjyTrb_6f6NxEEiXOQdqAwSGJy1HC0D6KxH8Y14/s1600/1.jpg&quot; height=&quot;269&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjufLxVI1jV2dBVFigqpoU2JI7yoMhBHlNluQk8hjKxCJU-uhNiUSfQ4zSyL1p2Jj6oYyoMiCuVwZ0Ds0ZjB8h9qDXKwyvaGMj6dFBUN3Q0JfU_e0AQXLR4UinDerxfXkBxvG4QpHwB7i4/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Now we have added one more reference.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiHL9z2mdZpYVTof1sy7nLyAypWBGUdQZCR2N3O9fHwZNi4y9VKNGSU8zwZlWdDqW5_rjbCZMTHl4nKxWpSsT_3NpA24E6r63h-Ii9qy7z9JvE8-trJCMzmNrllDgZgBgILF-97k2BWv8/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiHL9z2mdZpYVTof1sy7nLyAypWBGUdQZCR2N3O9fHwZNi4y9VKNGSU8zwZlWdDqW5_rjbCZMTHl4nKxWpSsT_3NpA24E6r63h-Ii9qy7z9JvE8-trJCMzmNrllDgZgBgILF-97k2BWv8/s1600/1.jpg&quot; height=&quot;264&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Now we need to move to the code behind window and use these references in the code.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Text.RegularExpressions;

using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
using GsmComm.PduConverter;
using GsmComm.PduConverter.SmartMessaging;
using GsmComm.GsmCommunication;
using GsmComm.Interfaces;
using GsmComm.Server;
using System.Globalization;

namespace GSMModem
{
    public partial class Form1 : Form
    {
        private GsmCommMain comm;
        private delegate void SetTextCallback(string text);
        private SmsServer smsServer;
        public Form1()
        {
            InitializeComponent();
        }
&lt;/pre&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Now we need to add few textboxes and private variables that we will use in our code.
&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;namespace GSMModem
{
    public partial class Form1 : Form
    {
        private GsmCommMain comm;
        private delegate void SetTextCallback(string text);
        private SmsServer smsServer;
        public Form1()
        {
            InitializeComponent();
        }
        TextBox txtMessage = new TextBox();
        TextBox txtDonorName = new TextBox();
        TextBox txtNumber = new TextBox();
        TextBox txtDonorId = new TextBox();

&lt;/pre&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Now we will add the two classes Operation and Main as in the following and add two methods in it GetDBConnection, ipconfig and Execute.
&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Data.SqlClient;
using System.Windows.Forms;

namespace GSMModem
{
    class Operation
    {
        public string ipconfig(string filePath)
        {
            StreamReader streamReader = new StreamReader(filePath);
            string text = streamReader.ReadToEnd();
            streamReader.Close();
            return text;
        }

        public void Execute(string SQL)
        {
                SqlConnection con = Main.GetDBConnection();
                con.Open(); 
                SqlCommand cmd = new SqlCommand(SQL, con);
                cmd.ExecuteNonQuery();
        }
    }
}


&lt;/pre&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.IO;

namespace GSMModem
{
    class Main
    {
        public static SqlConnection GetDBConnection()
        {
            Operation ipconf = new Operation();
            string path = Directory.GetCurrentDirectory();
            string path1 = ipconf.ipconfig(path + &quot;\\&quot; + &quot;IPCONfG.txt&quot;);
            string strerverIP = path1;

            // Define the Access Database driver and the filename of the database
            SqlConnection conn = new SqlConnection(
        &quot;Data Source=&quot; + strerverIP + @&quot;\CRMIS;Initial Catalog=PSH;User ID=sa;Password=sa12345&quot;);
            return conn;
        }
    }
}

&lt;/pre&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Now add the following code in the form load event.
&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;private void Form1_Load(object sender, EventArgs e)
        {
            cmbCOM.Items.Add(&quot;COM1&quot;);
            cmbCOM.Items.Add(&quot;COM2&quot;);
            cmbCOM.Items.Add(&quot;COM3&quot;);
            cmbCOM.Items.Add(&quot;COM4&quot;);
            cmbCOM.Items.Add(&quot;COM5&quot;);
            cmbCOM.Items.Add(&quot;COM6&quot;);
        }

&lt;/pre&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Now add the following code in the connect button click event.
&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt; 
private void btnConnect_Click(object sender, EventArgs e)
        {
            if (cmbCOM.Text == &quot;&quot;)
            {
                MessageBox.Show(&quot;Invalid Port Name&quot;);
                return;
            }
             comm = new GsmCommMain(cmbCOM.Text , 9600, 150);
            Cursor.Current = Cursors.Default;
            bool retry;
            do
            {   retry = false;
                try
                {   Cursor.Current = Cursors.WaitCursor;
                    comm.Open();
                    Cursor.Current = Cursors.Default;
                    MessageBox.Show(&quot;Modem Connected Sucessfully&quot;);
                }
                catch (Exception)
                {   Cursor.Current = Cursors.Default;
                    if (MessageBox.Show(this, &quot;GSM Modem is not available&quot;, &quot;Check&quot;,
                        MessageBoxButtons.RetryCancel, MessageBoxIcon.Warning) == DialogResult.Retry)
                        retry = true;
                    else
                   { return;}
               }
            }
            while (retry);

        }

&lt;/pre&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Now add the following code in the send button click event.
&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;private void btnSend_Click(object sender, EventArgs e)
        {
            Operation code = new Operation();
            try
            {
                SqlConnection con = Main.GetDBConnection();
                DataTable consultanttable = new DataTable();
                string sqlConsultant = @&quot;SELECT  Don_Donor_ID,Don_Donor_Name,left(Don_Mobile_Phone,4)+ right(Don_Mobile_Phone,7) 
                FROM  psh.dbo.Donor_Profile WHERE (Don_SMS1 IS NULL) or (Don_SMS1=&#39;notsend&#39;) and Don_Donor_ID =&#39;CF-00001-12&#39;&quot;;
                SqlDataAdapter Consultantdataadapter = new SqlDataAdapter(sqlConsultant, con);
                Consultantdataadapter.Fill(consultanttable);
                foreach (DataRow myrow in consultanttable.Rows)
                {
                    txtDonorId.Text = Convert.ToString(myrow[0]);
                    txtDonorName.Text = Convert.ToString(myrow[1]);
                    txtNumber.Text = Convert.ToString(myrow[2]);
                    Cursor.Current = Cursors.WaitCursor;
                    txtMessage.Text = &quot;Respected &quot; + txtDonorName.Text + &quot;, Welcome to Clapp Trust. Your donor ID is &quot; + txtDonorId.Text + &quot;. Our online system will send you SMS whenever your donation is received.&quot;;
                    try
                    {
                        SmsSubmitPdu pdu;
                        byte dcs = (byte)DataCodingScheme.GeneralCoding.Alpha7BitDefault;
                        pdu = new SmsSubmitPdu(txtMessage.Text, Convert.ToString(txtNumber.Text), dcs);
                        int times = 1;
                        for (int i = 0; i &amp;lt; times; i++)
                        {
                            comm.SendMessage(pdu);
                        }
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(&quot;Modem is not available&quot;);
                        code.Execute(&quot;update psh.dbo.donor_profile set don_sms2=&#39;notsend&#39; where don_donor_id =&#39;&quot; + txtDonorId.Text + &quot;&#39;&quot;);
                    }
                }
            }
            catch
            {
                MessageBox.Show(&quot;SMS not send&quot;);
            }

        }

&lt;/pre&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Now we need to attach the modem to the system. It will install its own application but keep this point in your mind, you need to close the application after the installation is complete because that software captures the port that we will use in our code.


let this application to be installed and close it when it is finished


Now run the application; press F5.


First we need to select the port name from the drop down menu then press the connect button; if port is not valid then it will show the error message.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-family: Verdana,sans-serif; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAr56geGucqOIm6A60UGBbNR_jlr2NY1WDU7i5d2v5Jgk_Iziwy3kNVXEb4usWXAXoggwVS5tBgRoGb3Pk6wXWS2xzBzB4u3rPmAs9lkfDjWAwwejUV2jIgotXb8qeKKsIJzaNVoF7FpM/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAr56geGucqOIm6A60UGBbNR_jlr2NY1WDU7i5d2v5Jgk_Iziwy3kNVXEb4usWXAXoggwVS5tBgRoGb3Pk6wXWS2xzBzB4u3rPmAs9lkfDjWAwwejUV2jIgotXb8qeKKsIJzaNVoF7FpM/s1600/1.jpg&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Now I will select port COM4; it will 
connect successfully. Dear reader, you need to check your port one by 
one; Windows XP normally uses port COM3 or COM4.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-family: Verdana,sans-serif; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiok0gW3NID4pE3t5uMu0A1pI4ZH7N6th7re2XX4CWtcDq1amo0k9j1a90tZj4L4Ztta3Q5ulWu_JsjS4yNxrf8GVzAw3CBCM4nWh1u06Rz_tfnKU8J_1DRG5nzePPZlcSmOsa8b70ETZo/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiok0gW3NID4pE3t5uMu0A1pI4ZH7N6th7re2XX4CWtcDq1amo0k9j1a90tZj4L4Ztta3Q5ulWu_JsjS4yNxrf8GVzAw3CBCM4nWh1u06Rz_tfnKU8J_1DRG5nzePPZlcSmOsa8b70ETZo/s1600/1.jpg&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Now press the &quot;Send SMS button&quot;; you will then get a SMS on your mobile phone&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://app.box.com/s/4g6z1f60099ypf8iii7w&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Download&lt;/b&gt;&lt;/a&gt; &lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gohilinfotech.blogspot.com/feeds/8846344737592909657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gohilinfotech.blogspot.com/2013/09/send-sms-using-modemgsm-dongle-in-c.html#comment-form' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/8846344737592909657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/8846344737592909657'/><link rel='alternate' type='text/html' href='http://gohilinfotech.blogspot.com/2013/09/send-sms-using-modemgsm-dongle-in-c.html' title='Send SMS using Modem(GSM Dongle) in C#'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01019900218712560808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1xPEqPRj5tzM6UyFDRpb4wT4fKHZljKTtxz5sUIap6BbY0jCiMn9DWyacwy9R9T38DjxeZTF_7b8_Hc_Sx185WcySWxDvCpjSfQbq7Mzxv2EBYl4A8y4KGrQr40HCkU-ROeua0MwFFMs/s72-c/1.jpg" height="72" width="72"/><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4695737620265728634.post-636511767068732902</id><published>2013-09-02T23:55:00.001-07:00</published><updated>2013-09-02T23:55:16.072-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><title type='text'>Chart Controls </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Introduction:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Here i will explain&amp;nbsp; Chart Controls.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Description:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;The Chart Controls for .NET Framework 3.5 enables ASP.NET and 
Windows Forms developers to easily create rich and professional-looking 
data visualization solutions. The Chart Controls currently contains 25 
different chart types with 3-D support for most of them, and all of 
these, available for FREE. In this article, we will create a sample 
chart using the Chart controls.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;To get started, download and install the following in the order given below:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c&amp;amp;DisplayLang=en&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Microsoft Chart Controls for Microsoft .NET Framework 3.5&lt;/span&gt;&lt;/a&gt; – assemblies containing the Chart Controls (ASP.NET and Windows Forms)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=1D69CE13-E1E5-4315-825C-F14D33A303E9&amp;amp;displaylang=en&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Microsoft Chart Controls Add-on for Microsoft Visual Studio 2008&lt;/span&gt;&lt;/a&gt; – Add as a control in the Visual Studio toolbox and provides IntelliSense for Chart controls.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Once
 you have downloaded and installed these components, open Visual Studio 
2008. In the Data tab on the Toolbox, observe the new ‘Chart’ control.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNEAmR3Ky6QpuuavE3gD3DFB1doKIer9pcPJD13yneK3LTPkENQqZvORrwmz2k6oXYuNQnZOYj3QvkUttsZB1vkHokfaLIWZ73PDR-_mpfDhK8fEQ7IMIVpte8BXpuJYt8G-okI2Npv7c/s1600/01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNEAmR3Ky6QpuuavE3gD3DFB1doKIer9pcPJD13yneK3LTPkENQqZvORrwmz2k6oXYuNQnZOYj3QvkUttsZB1vkHokfaLIWZ73PDR-_mpfDhK8fEQ7IMIVpte8BXpuJYt8G-okI2Npv7c/s1600/01.jpg&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;To get started, let us create a sample application using the Chart control:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;Step 1: &lt;/b&gt;Drag
 and drop the Chart control from the Toolbox to the Design surface of 
Default.aspx. You will see a ‘Column chart’ which looks similar to the 
following: &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjunDEwXt9S7dlYKavhb46iooJxhm7KkMxc3mkqwGbadWGBL9RLtBTKCxndHL9qO_NxYrXwT5oaVKDWLmoWSo7BFvPzvs67JnU-_f9tqBGRyl69n37oPhNymFMDP4A8D3AkplavOVTP8L8/s1600/02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjunDEwXt9S7dlYKavhb46iooJxhm7KkMxc3mkqwGbadWGBL9RLtBTKCxndHL9qO_NxYrXwT5oaVKDWLmoWSo7BFvPzvs67JnU-_f9tqBGRyl69n37oPhNymFMDP4A8D3AkplavOVTP8L8/s1600/02.jpg&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;If you click on the ‘Source’ view of the page, you find the following mark up added to the page:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;lt;%@ Register Assembly=&quot;System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;
    Namespace=&quot;System.Web.UI.DataVisualization.Charting&quot; TagPrefix=&quot;asp&quot; %&amp;gt;
 
        &lt;asp:chart id=&quot;Chart1&quot; runat=&quot;server&quot;&gt;
            &lt;series&gt;
                &lt;asp:series name=&quot;Series1&quot;&gt;
                &lt;/asp:series&gt;
            &lt;/series&gt;
            &lt;chartareas&gt;
                &lt;asp:chartarea name=&quot;ChartArea1&quot;&gt;
                &lt;/asp:chartarea&gt;
            &lt;/chartareas&gt;
        &lt;/asp:chart&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;By default the ChartType is ‘Column’. In order to change the Chart Type to either Line, Bar, Pie or any of these 25 chart types; with the Chart control selected, go to the Properties window &amp;gt; go to ‘Series’ &amp;gt; Click on the ellipse button(…) &amp;gt; in the ‘Series Collection Editor’, click on the ‘ChartType’ to view and select a different chart type as shown below:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkkUAic9evy2Td0csJwwbIEdVhL6a0lBxUeK9R9wf4H6BDNc1Z_dwpVkFbRkyYaepNho2n8mxQQO99Gq4wuSJwPoe_CqKq9RsK9ABkP5dQu0wIJ3HX56dNb7wWRSr5xOXgLUcfB8jfN2U/s1600/03.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkkUAic9evy2Td0csJwwbIEdVhL6a0lBxUeK9R9wf4H6BDNc1Z_dwpVkFbRkyYaepNho2n8mxQQO99Gq4wuSJwPoe_CqKq9RsK9ABkP5dQu0wIJ3HX56dNb7wWRSr5xOXgLUcfB8jfN2U/s1600/03.jpg&quot; height=&quot;230&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;For this demonstration, we will keep the ChartType to the default ‘Column’.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;We will be binding the chart to some data. For this purpose, we will be using the SqlDataSource. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;Step 2:&lt;/b&gt;
 Click on the smart tag or right click Chart &amp;gt; Show Smart Tag &amp;gt; 
Choose a DataSource &amp;gt; New Data Source… &amp;gt; Select Database. We will 
keep the default ID for SqlDataSource, SqlDataSource1 and click OK.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;Step 3:&lt;/b&gt;
 On clicking OK, you will be presented with a ‘Configure Data Source’ 
wizard. Click on ‘New Connection’ to open the ‘Add Connection’. Type 
your ‘Server Name’ and ‘Select a database Name’ to connect to. Over 
here, I have typed (local) as the ServerName and the database I am 
connecting to is ‘Northwind’. Click on ‘Test Connection’ to make sure 
that there are no errors connecting to the server. Click Ok. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;Step 4:&lt;/b&gt;
 In your ‘Configure Data Source’, click Next. An option will be 
displayed for saving the connection string to the configuration file. 
Select the checkbox ‘Yes, save this connection as:’ , type a name for 
the connectionstring ‘NorthwindConnectionString’ and click Next.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;Step 5:&lt;/b&gt;&amp;nbsp;In the ‘Configure Select Statement’ &amp;gt; select ‘Specify a Custom SQL Statement or stored procedure’ &amp;gt; click Next&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAYPfkjsE4B6kH4Ayxop2lQcAWT1RXI5eNnqRO4HWl8J5JJaB5P9d6FN9OWpH6aCmpT70ZL6LHb2dnGOLbAckutfdQPAo7w7bHErVeMJBPW1QNNqPlcQdXPpTVEws8sXNlZYU4cOPu9hw/s1600/04.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAYPfkjsE4B6kH4Ayxop2lQcAWT1RXI5eNnqRO4HWl8J5JJaB5P9d6FN9OWpH6aCmpT70ZL6LHb2dnGOLbAckutfdQPAo7w7bHErVeMJBPW1QNNqPlcQdXPpTVEws8sXNlZYU4cOPu9hw/s1600/04.jpg&quot; height=&quot;233&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Type the SQL query to ‘list the count of products in a category’ as shown below:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;sql&quot; name=&quot;code&quot;&gt;SELECT CategoryName, COUNT(*) AS ProductCount FROM Products
JOIN Categories 
ON Products.CategoryID = Categories.CategoryID
GROUP BY CategoryName&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEasncN69t7wSS7ePTkilPgwKs4Jk6pxNE6ovYD_ShP2SQLEVP_atiSGlLxWDfR2A6FE7ZfIS16yyxIo3APK8rylugq_af_gORxf0of_kE67mgZJ_Z3XXwEMe55KiUBuRB4Es6JdAY_0o/s1600/05.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEasncN69t7wSS7ePTkilPgwKs4Jk6pxNE6ovYD_ShP2SQLEVP_atiSGlLxWDfR2A6FE7ZfIS16yyxIo3APK8rylugq_af_gORxf0of_kE67mgZJ_Z3XXwEMe55KiUBuRB4Es6JdAY_0o/s1600/05.jpg&quot; height=&quot;235&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Click Next &amp;gt; Finish.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;Step 6:&lt;/b&gt;
 Select the Chart control &amp;gt; Go to the Properties window &amp;gt; 
ChartAreas property and click the ellipse (…) button to open the 
ChartArea collection editor. Go to the ‘Axes’ property in the ChartArea 
Collection Editor and click the ellipse (…) button to open the Axis 
collection editor as shown below:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhSK6xlkHznCSA9XvvmQS1trZSiz4qXdGn0n3u9plmkJaVP8IxInvFMVasutHO5nsmfon-zIwd3MSWXCdo-UOoLCdfhZjpElFRCwWsZZM03mKVFaKTieRYU_SSME8qZ9hNO0zQKZstHOU/s1600/06.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhSK6xlkHznCSA9XvvmQS1trZSiz4qXdGn0n3u9plmkJaVP8IxInvFMVasutHO5nsmfon-zIwd3MSWXCdo-UOoLCdfhZjpElFRCwWsZZM03mKVFaKTieRYU_SSME8qZ9hNO0zQKZstHOU/s1600/06.jpg&quot; height=&quot;228&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Set
 the ‘Title’ of the X axis to ‘Categories’ and the ‘Title’ of the Y axis
 to ‘Product Count’. Click OK to close the Axis Collection Editor and an
 OK again to close the ChartArea Collection Editor.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;With
 the Chart control selected, go to the Series property in the Properties
 window and click the ellipse (…) button to open the Series collection 
editor. Go to the Data Source section and add the XValueMember as 
‘CategoryName’ and YValueMembers to ‘ProductCount’. Also set the 
‘IsValueShownAsLabel’ to True to display the value of ProductCount on 
the columns. Click OK.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1NarrrJj8kw-HJW99RaDhB7MYnBSsx_1CZSrLg_7BiCvl6cv6JaqwPASIoofx3XMShTx07sDDauu-1rB6SAdpAvY-Xnpwglwu6CdwCifIyO1sUNHXkCL89S3SlKTIgQIEedPhw2Cu_jI/s1600/07.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1NarrrJj8kw-HJW99RaDhB7MYnBSsx_1CZSrLg_7BiCvl6cv6JaqwPASIoofx3XMShTx07sDDauu-1rB6SAdpAvY-Xnpwglwu6CdwCifIyO1sUNHXkCL89S3SlKTIgQIEedPhw2Cu_jI/s1600/07.jpg&quot; height=&quot;230&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJPbtgeDwOBcL_FQI7Om6SWmQfV4uiEbFUyoIXGEGVPRKQrzOzp-upcoQd6nhI7_gjcsRky7sB1jafwpODhYkmZJ1suBRNtoFcHBTZdeD1aA1Y2jUbr3ZMnzG0vubwwMyBb7naPABQ7sE/s1600/08.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJPbtgeDwOBcL_FQI7Om6SWmQfV4uiEbFUyoIXGEGVPRKQrzOzp-upcoQd6nhI7_gjcsRky7sB1jafwpODhYkmZJ1suBRNtoFcHBTZdeD1aA1Y2jUbr3ZMnzG0vubwwMyBb7naPABQ7sE/s1600/08.jpg&quot; height=&quot;245&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;I am sure all we developers who have used 3rd party Charting solutions in the past, are going to welcome this 
awesome control from Microsoft. The best part is that it is available for FREE.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gohilinfotech.blogspot.com/feeds/636511767068732902/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gohilinfotech.blogspot.com/2013/09/chart-controls.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/636511767068732902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/636511767068732902'/><link rel='alternate' type='text/html' href='http://gohilinfotech.blogspot.com/2013/09/chart-controls.html' title='Chart Controls '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01019900218712560808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNEAmR3Ky6QpuuavE3gD3DFB1doKIer9pcPJD13yneK3LTPkENQqZvORrwmz2k6oXYuNQnZOYj3QvkUttsZB1vkHokfaLIWZ73PDR-_mpfDhK8fEQ7IMIVpte8BXpuJYt8G-okI2Npv7c/s72-c/01.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4695737620265728634.post-7296225055638568234</id><published>2013-08-23T22:42:00.001-07:00</published><updated>2013-08-23T22:42:28.948-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><title type='text'>Hide class in  javascript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Introduction:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Here i will explain Hide class in&amp;nbsp; javascript.&lt;/span&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;HTML:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&lt;div class=&quot;appBanner&quot;&gt;
appbanner&lt;/div&gt;
&lt;/pre&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;JS:
&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;document.getElementsByClassName(&#39;appBanner&#39;)[0].style.visibility=&#39;hidden&#39;;

&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gohilinfotech.blogspot.com/feeds/7296225055638568234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gohilinfotech.blogspot.com/2013/08/hide-class-in-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/7296225055638568234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/7296225055638568234'/><link rel='alternate' type='text/html' href='http://gohilinfotech.blogspot.com/2013/08/hide-class-in-javascript.html' title='Hide class in  javascript'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01019900218712560808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4695737620265728634.post-5688369091345845741</id><published>2013-08-23T22:37:00.000-07:00</published><updated>2013-08-23T22:37:07.281-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><title type='text'>How to open whole website into particuler div</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Introduction:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Here i will explain How to open whole website into particular div&lt;/span&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Example:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&lt;div style=&quot;height: 300px; overflow-x: hidden; overflow-y: scroll; width: 100%;&quot;&gt;
&lt;iframe src=&quot;#&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gohilinfotech.blogspot.com/feeds/5688369091345845741/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gohilinfotech.blogspot.com/2013/08/how-to-open-whole-website-into.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/5688369091345845741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/5688369091345845741'/><link rel='alternate' type='text/html' href='http://gohilinfotech.blogspot.com/2013/08/how-to-open-whole-website-into.html' title='How to open whole website into particuler div'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01019900218712560808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4695737620265728634.post-8654728184590159850</id><published>2013-08-23T22:33:00.001-07:00</published><updated>2013-08-23T22:33:25.794-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><title type='text'>Assign a class if condition is true</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Introduction:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Here i will explain Assign a class if condition is true.&lt;/span&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Example:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;js&quot; name=&quot;code&quot;&gt;&lt;div class=&quot;hidden&quot; style=&quot;display: none;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=4695737620265728634#&quot;&gt;Hidden&lt;/a&gt;
&lt;/div&gt;
&lt;script&gt;
    document.addEventListener(&#39;DOMContentLoaded&#39;, function(){
        var el = document.getElementsByTagName(&#39;div&#39;)[0];

        if(el.style.display == &#39;none&#39;){
            el.children[0].setAttribute(&#39;class&#39;, &#39;someclass&#39;);
        }
    }, false);
&lt;/script&gt;

&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gohilinfotech.blogspot.com/feeds/8654728184590159850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gohilinfotech.blogspot.com/2013/08/assign-class-if-condition-is-true.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/8654728184590159850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/8654728184590159850'/><link rel='alternate' type='text/html' href='http://gohilinfotech.blogspot.com/2013/08/assign-class-if-condition-is-true.html' title='Assign a class if condition is true'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01019900218712560808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4695737620265728634.post-375316947130546161</id><published>2013-08-23T22:29:00.002-07:00</published><updated>2013-08-23T22:29:31.653-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><title type='text'>How to disable Autocomplete on web form field / input tag</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Introduction:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Here i will explain How to disable Autocomplete on web form field / input tag&lt;/span&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Example:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&lt;input autocomplete=&quot;off&quot; name=&quot;text&quot; type=&quot;text&quot; /&gt;

&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gohilinfotech.blogspot.com/feeds/375316947130546161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gohilinfotech.blogspot.com/2013/08/how-to-disable-autocomplete-on-web-form.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/375316947130546161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4695737620265728634/posts/default/375316947130546161'/><link rel='alternate' type='text/html' href='http://gohilinfotech.blogspot.com/2013/08/how-to-disable-autocomplete-on-web-form.html' title='How to disable Autocomplete on web form field / input tag'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01019900218712560808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>