<?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-4696086498752533600</id><updated>2024-09-22T17:34:23.794-07:00</updated><category term="asp.net"/><category term="C#.Net"/><category term="Asp.net Examples"/><category term="SharePoint 2010"/><category term="sql"/><category term=".Net"/><category term="c sharp"/><category term="Jquery"/><category term="ado.net"/><category term="Gridview"/><category term="Interview Questions"/><category term="csharp"/><category term="Asp.net Basics"/><category term="Ektron CMS"/><category term="Grid view"/><category term="How to"/><category term="Data Binding"/><category term="Dropdown List"/><category term="Java script"/><category term="Bind Data"/><category term="share point"/><category term="MVC"/><category term="Sql server"/><category term="OOPS"/><category term="oracle"/><category term="sqlserver 2012"/><category term="vb.net"/><category term="DataSource Controls"/><category term="Difference"/><category term="Export data"/><category term="T-SQL"/><category term="Text Box"/><category term="Validation"/><category term="Asp.Net MVC4"/><category term="Crystal Reports"/><category term="DNN"/><category term="General"/><category term="JqueryUI"/><category term="Linq"/><category term="XML"/><category term="XSLT"/><category term="csharp examples"/><category term="share point 2013"/><category term="Excel"/><category term="SQL server 2012"/><category term="WCF"/><category term="ArrayList"/><category term="CSS"/><category term="Connection string"/><category term="Data Table"/><category term="DataTable"/><category term="Delete Rows"/><category term="Design"/><category term="Exception Handling"/><category term="IIS webserver"/><category term="Import"/><category term="Jquery Basics"/><category term="WPF"/><category term="windows Forms"/><category term="AJAX"/><category term="ASP.NET CheckBox"/><category term="ASP.NET CheckBoxList"/><category term="Add days"/><category term="Allow Only"/><category term="App.config"/><category term="Assemblies"/><category term="Authentication"/><category term="Basic Concepts"/><category term="Browser"/><category term="Bulk Cops"/><category term="Casting"/><category term="Chart Control"/><category term="Command builder"/><category term="Compare"/><category term="Custom"/><category term="Data List"/><category term="Data Reader"/><category term="Data Type"/><category term="Data set"/><category term="Date"/><category term="Date picker"/><category term="Dynamic"/><category term="Excel to Sql server"/><category term="File Upload"/><category term="Fill Data set"/><category term="Format"/><category term="Get data"/><category term="HTML5"/><category term="HttpHandlers"/><category term="LightBox"/><category term="Nested Grid view"/><category term="PDF"/><category term="Plugin"/><category term="Private assembly"/><category term="RadioButtonList"/><category term="SQL Data List"/><category term="SSIS"/><category term="Security"/><category term="Send A mail"/><category term="Shared assembly"/><category term="Sorting"/><category term="State management"/><category term="Stored Procedure"/><category term="URL Rewriting"/><category term="User Controls"/><category term="VS2012"/><category term="Value Types"/><category term="Web part"/><category term="Word Document"/><category term="XAML"/><category term="configuration"/><category term="javascript"/><category term="power shell"/><category term="session state"/><category term="usercontrol"/><category term="web service"/><category term="windows 8"/><category term="windows 8 apps"/><title type='text'>Aspdotnet-Sharepoint</title><subtitle type='html'>Provides articles on Asp.net,c sharp,Sql Server,Gridview,XML,WCF,MVC </subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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>346</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4696086498752533600.post-292811867407696233</id><published>2014-09-12T22:32:00.004-07:00</published><updated>2014-09-23T04:00:13.654-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Crystal Reports"/><category scheme="http://www.blogger.com/atom/ns#" term="Design"/><category scheme="http://www.blogger.com/atom/ns#" term="windows Forms"/><title type='text'>How to include crystal report in to form 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;b&gt;Title: &lt;/b&gt;Include crystal reports in to form in asp.net&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Description :&lt;/b&gt;The crystal report can not be executed separately, Hence we can use a windows form to execute the report&lt;br /&gt;
Asp.net provides a control i:e CrystalReportViewer which can be used &lt;a href=&quot;http://www.aspdotnet-sharepoint.com/2012/12/design-of-crystal-reports.html&quot; target=&quot;_blank&quot;&gt;display the crystal report&lt;/a&gt; on the form&lt;br /&gt;
&lt;br /&gt;
Steps have to do invoke the crystal report&lt;br /&gt;
&lt;br /&gt;
1.Drag ―CrystalReportViewer control from tool box to specified form&lt;br /&gt;
&lt;br /&gt;
Properties for Report control:&lt;br /&gt;
&lt;br /&gt;
1.Report Source: EmployeeDetailsReport.&lt;br /&gt;
2.Run the solution .Then it will ask a authentication ,there you need to enter a code(PWD) to finish the process&lt;br /&gt;
While running the application the report viewer provides the format option to display records(PDF,MS word etc)&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/292811867407696233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/292811867407696233' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/292811867407696233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/292811867407696233'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2014/09/how-to-include-crystal-report-in-to.html' title='How to include crystal report in to form in asp.net'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-4896425774218488289</id><published>2014-09-07T05:55:00.002-07:00</published><updated>2014-09-07T06:03:47.736-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Add days"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Date"/><category scheme="http://www.blogger.com/atom/ns#" term="Date picker"/><category scheme="http://www.blogger.com/atom/ns#" term="Format"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>How to get and format the date in asp.net using JQuery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
As per previous articles we have seen how to get the data from the web controls using JQuery. Here &amp;nbsp;we will know how format and add the days to desired date in JQuery.&lt;br /&gt;
&lt;br /&gt;
The below piece of code will get the current date and add days(Here 7days) using Jquery.There is one more functionality also included to get the date in a specific format using Date picker function&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;HTML&quot; name=&quot;code&quot;&gt;&amp;lt;asp:Label id=&quot;Label1&quot; &amp;nbsp;Text=&quot;Date&quot; runat=&quot;server&quot;/&amp;gt;
&amp;lt;asp:TextBox ID=&quot;txtDate&quot; runat=&quot;server&quot;/&amp;gt;
&amp;lt;asp:Button id=&quot;CalDuration&quot; &amp;gt;Calculate&amp;lt;/asp:Button&amp;gt;&amp;lt;/br /&amp;gt;



&lt;br /&gt;
$(&quot;#txtDate&quot;).datepicker({ dateFormat: &#39;mm/dd/yy&#39; });
$(&#39;#CalDuration&#39;).on(&#39;click&#39;, function(){
var $date = $(&#39;#txtDate&#39;).datepicker(&quot;getDate&quot;);
var resDate = new Date();

resDate.setDate($date.getDate() + 7);
alert(resDate.toString());&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/4896425774218488289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/4896425774218488289' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/4896425774218488289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/4896425774218488289'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2014/09/how-to-get-and-format-date-in-aspnet.html' title='How to get and format the date in asp.net using JQuery'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-154411647274232473</id><published>2014-05-10T00:29:00.000-07:00</published><updated>2014-09-04T10:15:33.401-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Allow Only"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="How to"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><category scheme="http://www.blogger.com/atom/ns#" term="Text Box"/><category scheme="http://www.blogger.com/atom/ns#" term="Validation"/><title type='text'>JQuery Allow specific number of Alphabets into text box 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;b&gt;Title:&lt;/b&gt;Allow only number of Alphabets in to Text box in asp.net using JQuery&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;
As per previous article ,we have done validation on the text box which has to hold some value while doing the insertion.Now i would like describe and give an example on &lt;a href=&quot;http://www.aspdotnet-sharepoint.com/search/label/Jquery&quot; target=&quot;_blank&quot;&gt;JQuery&lt;/a&gt; validation ,which will allow only 10 characters into text box.So here i will put condition text box length while performing the validation i:e is less then 10 ,it will show error message through alert box&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Example:&lt;/b&gt;&lt;br /&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;script type=&quot;text/javascript&quot; src=&quot;Javascript/jquery-1.3.1.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot;&amp;gt;

$(document).ready(function() {

$(&#39;#allowOnlyChars&#39;).click(function() {

if ($(&quot;#OnlyChars&quot;).val().length &amp;lt; 10) {

alert(&#39;Valid data&#39;+&quot;#OnlyChars&quot;).val());

return true
}
else {
alert(&#39;Please: you should enter only 10 characters&#39;)
return false;
}
})
});
&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;form id=&quot;validateForm&quot; runat=&quot;server&quot;&amp;gt;
&amp;lt;asp:TextBox ID=&quot;OnlyChars&quot; runat=&quot;server&quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;
&amp;lt;asp:Button ID=&quot;allowOnlyChars&quot; runat=&quot;server&quot; Text=&quot;Validate&quot; OnClick=&quot;allowOnlyChars_Click&quot; /&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&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/154411647274232473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/154411647274232473' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/154411647274232473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/154411647274232473'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2014/05/jquery-allow-specific-number-of.html' title='JQuery Allow specific number of Alphabets into text box in asp.net'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-2715732738679537095</id><published>2014-04-28T07:51:00.000-07:00</published><updated>2014-04-28T07:51:09.085-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><category scheme="http://www.blogger.com/atom/ns#" term="Text Box"/><category scheme="http://www.blogger.com/atom/ns#" term="Validation"/><title type='text'>JQuery validate textbox 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;br /&gt;
&lt;div&gt;
&lt;b&gt;Title :&amp;nbsp;&lt;/b&gt;How to validate text box using JQuery in asp.net&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Description :&amp;nbsp;&lt;/b&gt;Why we have to apply validation on input control?Because of this functionality we can restrict the input data as per our need.Now we will see how to do the validation using client side script(JQuery).If we want to develop the validations in asp.net we have to use validation&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
control for specified control.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Example:&lt;/b&gt;
&lt;br /&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;script type=&quot;text/javascript&quot; src=&quot;Javascript/jquery-1.4.1.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot;&amp;gt;
$(document).ready(function() {
$(&#39;#doValidate&#39;).click(function() {
if ($(&quot;#allowData&quot;).val()!=&quot;&quot;) {
alert(&#39;Enter Text&#39;+&quot;#allowData&quot;).val());
return true
}
else {
alert(&#39;Please enter valid data&#39;)
return false;
}
})
});
&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;form id=&quot;form1&quot; runat=&quot;server&quot;&amp;gt;
&amp;lt;asp:TextBox ID=&quot;allowData&quot; runat=&quot;server&quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;
&amp;lt;asp:Button ID=&quot;doValidate&quot; runat=&quot;server&quot; Text=&quot;Validate&quot; OnClick=&quot;doValidate_Click&quot; /&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&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/2715732738679537095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/2715732738679537095' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/2715732738679537095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/2715732738679537095'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2014/04/jquery-validate-textbox-in-aspnet.html' title='JQuery validate textbox in asp.net'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-6794402945952747136</id><published>2013-08-30T10:10:00.000-07:00</published><updated>2014-04-07T08:16:31.115-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Data Binding"/><category scheme="http://www.blogger.com/atom/ns#" term="windows Forms"/><title type='text'>DataBinding in windows Forms in asp.net using C#.net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Title:&lt;/b&gt;Data binding for windows form using C#&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;
Data Binding is the concept if providing address of memory location to a control for presenting data.This will reduce coding burden on developer and makes development faster.Below image can give the brief idea on it&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHHtGriPYy9WeZ9KKfdAIQXFYb5SJVlESDEltcwK_Y73nqgjuZCqQWlnqohd0RYsOeKScTuKJCVse73DcWAaFMw9435WCtrXCaiXOhZ5SMBP7VRRhSNBoODehxDwBLPqJyZtJ04d0lbSs/s1600/windows+form.PNG&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/AVvXsEjHHtGriPYy9WeZ9KKfdAIQXFYb5SJVlESDEltcwK_Y73nqgjuZCqQWlnqohd0RYsOeKScTuKJCVse73DcWAaFMw9435WCtrXCaiXOhZ5SMBP7VRRhSNBoODehxDwBLPqJyZtJ04d0lbSs/s320/windows+form.PNG&quot; height=&quot;213&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Each window for will maintain binding context component.Binding context component will manage currency manager components,Currency manager will maintain record pointer to data-set table,it supports navigation and manipulations,It will place data into Bound Control.&lt;br /&gt;
Here the currency manager acts like mediator &amp;nbsp;between &amp;nbsp;bound control and memory block&lt;br /&gt;
&lt;br /&gt;
There are two type of data binding con concepts,&lt;br /&gt;
1.Simple data binding&lt;br /&gt;
2.Complex data binding&lt;br /&gt;
&lt;br /&gt;
Using Simple data binding,control can be bind to only single element.Complex data binding can be bind to more than single element&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/6794402945952747136/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/6794402945952747136' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/6794402945952747136'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/6794402945952747136'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/08/databinding-in-windows-forms-in-aspnet.html' title='DataBinding in windows Forms in asp.net using C#.net'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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/AVvXsEjHHtGriPYy9WeZ9KKfdAIQXFYb5SJVlESDEltcwK_Y73nqgjuZCqQWlnqohd0RYsOeKScTuKJCVse73DcWAaFMw9435WCtrXCaiXOhZ5SMBP7VRRhSNBoODehxDwBLPqJyZtJ04d0lbSs/s72-c/windows+form.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4696086498752533600.post-4902140058202677256</id><published>2013-08-27T19:23:00.000-07:00</published><updated>2013-09-13T19:06:29.736-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="csharp"/><title type='text'>How to use For loop in C#.net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In this articles i will show how to use looping statement in c#.net.In this examples A program to add to textBox at run time. Here i placed one button to perform click event.&lt;br /&gt;
code for button click&lt;br /&gt;
&lt;pre class=&quot;csharp&quot; naem=&quot;code&quot;&gt;{
int x=30;
for(int i=1;i&amp;lt;=10;i++)
{TextBox txt=New TextBox();
txt.Text=&quot;Txxt&quot;+i;
txt.Location=New Point(100,x);
This.Controls.Add(txt);
x=x+30;
}&lt;/pre&gt;
In the above code i created 10 text box using for loop condition.The for loop condition takes maximum iteration up to 10 which i was given at condition&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/4902140058202677256/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/4902140058202677256' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/4902140058202677256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/4902140058202677256'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/08/how-to-use-for-loop-in-cnet.html' title='How to use For loop in C#.net'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-1630550727935724391</id><published>2013-08-14T20:23:00.000-07:00</published><updated>2014-08-18T09:32:39.987-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net Examples"/><category scheme="http://www.blogger.com/atom/ns#" term="DataSource Controls"/><title type='text'>Datasource Controls 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;br /&gt;
The data source controls are available from asp.net 2.0(Not bound controls).Using this controls we can automate the task of creating data object.Normally we have to prepare data object programatically(using code).Whenever use these controls we may get some question regarding wizard approach features then one programmatic object will be created most importantly these controls provide complete customization options.The following data source controls are available in Asp.net&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;1&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/dz12d98w(v=vs.100).aspx&quot; target=&quot;_blank&quot;&gt;.SQL Data source control&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;2.LINQ Data source control&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;3.Object Data source control&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;4.XML Data source control&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;5.Ado.net entity framework Data source control&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1.Sql Data source control:&lt;br /&gt;
it is used to prepare data object from any SQL supported database Oracle,SqlServer,Access,My Sql,SYSbase,Informix,Ingres etc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Features:&lt;/b&gt;&lt;br /&gt;
The DS controls supports caching features .&amp;nbsp;Data source controls does not Cache any data.with enable cache property of it we can add caching support.The reason to cache data is to avoid DB trips for every request.If data is cached then we retrieve data from they cache only by avoiding db.This will improve performance like anything.Different property for caching are also supported for maintaining time ,dependency etc&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.sqldatasource.conflictdetection.aspx&quot; target=&quot;_blank&quot;&gt;Conflict Detection(Concurrency control)&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
Using Data source controls when we manipulate data there is every possibility of occurring concurrency problems because web is for all and also our form can be accessed many users .&amp;nbsp;DS controls provide conflict detection with 2 option&lt;br /&gt;
&lt;br /&gt;
i)Override changes&lt;br /&gt;
ii)Compare all values&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/1630550727935724391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/1630550727935724391' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/1630550727935724391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/1630550727935724391'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/08/datasource-controls-in-aspnet.html' title='Datasource Controls in Asp.net'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-9020401611480837944</id><published>2013-08-07T09:15:00.003-07:00</published><updated>2014-06-21T20:20:40.257-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="csharp"/><category scheme="http://www.blogger.com/atom/ns#" term="User Controls"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><title type='text'>How to create and consume usercontrol without vs.net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Title:&lt;/b&gt;How to access user control in asp.net&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Description:&lt;/b&gt;The use controls can be used when we require a control which can be working as per our requirement.Now i would like to explain how to access this into our web application&lt;br /&gt;
1.Use notepad or some other editor and write all aspx/js/html code in it.Save it with .ascx extension&lt;br /&gt;
2.Add the created .ascx to the current project i:e copy it into current project folder&lt;br /&gt;
3.Go to the page where we want to consume this control and add &amp;lt;%@Register--%&amp;gt; directive&lt;br /&gt;
&lt;b&gt;&amp;lt;%@Register Tagprefix=&quot;Nit&quot; TagName=&quot;RichBanner&quot; src=&quot;banner.ascx&quot;%&amp;gt;&lt;/b&gt;&lt;br /&gt;
4.In the same page now create controls using markup&lt;br /&gt;
&lt;b&gt;&amp;lt;Nit:RichBanner ID=&quot;rbl&quot; runat=&quot;server&quot;/&amp;gt;&lt;/b&gt;&lt;br /&gt;
5.To Create a control; at run time we cannot use normal syntax for use defined control.We must use load method of page to create it&lt;br /&gt;
&lt;br /&gt;
Ex:-Banner a=page.Load(&quot;Banner.ascx&quot;)&lt;br /&gt;
similarly unload(--) to remove the controls form&amp;nbsp; form&lt;br /&gt;
Remember we must add it to some container after creating it&lt;br /&gt;
6.Every control once designed can be placed onto an assembly&lt;br /&gt;
7.Only ascx with a dll will be prepared and given to user(publish required)&lt;br /&gt;
8.&lt;b&gt;&amp;lt;%@ control--%&amp;gt; &lt;/b&gt;directive is used instead of&lt;b&gt; &amp;lt;%@ page--%&amp;gt;&lt;/b&gt; and contains will be placed inside a page which contains all HTML content&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/9020401611480837944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/9020401611480837944' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/9020401611480837944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/9020401611480837944'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/08/how-to-create-and-consume-usercontrol.html' title='How to create and consume usercontrol without vs.net'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-7469271335590738027</id><published>2013-08-06T09:00:00.001-07:00</published><updated>2014-08-07T07:44:59.788-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="csharp"/><category scheme="http://www.blogger.com/atom/ns#" term="Dropdown List"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><category scheme="http://www.blogger.com/atom/ns#" term="Text Box"/><title type='text'>Bind data to Asp.net text box using dropdownlist in jquery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Title:&lt;/b&gt; JQuery set text box value in asp.net&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;
In recent articles we known how to implement the&amp;nbsp; Data binding concept on data&amp;nbsp; controls like grid view,Data list,list etc.Here i would like to explain how to bind data to asp.net text box while leave the focus on Drop Down List using JQuery blur function.The blur function will fire when the previous controls has lost focus.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Example:&lt;/b&gt; &lt;br /&gt;
&lt;pre class=&quot;HTML&quot; name=&quot;code&quot;&gt;&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Bind data to Asp.net text box using DropDownList in jquery&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;script type=&quot;text/javascript&quot; src=&quot;~/jquery.min.js&quot; &amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
$(document).ready(function() {
$(&quot;#ddlSalesOrder&quot;).blur(function(){
var SalesOrderText = $(&quot;#ddlSalesOrder option:selected&quot;).text();
 alert(SalesOrderText);
$(&quot;#&amp;lt;%= txtOrderTotalAmt.ClientID %&amp;gt;&quot;.val(SalesOrderText); 
});
});
&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
Amount: &amp;lt;asp:DropDownList ID=&quot;ddlSalesOrder&quot; runat=&quot;server&quot;&amp;gt;
&amp;lt;asp:ListItem&amp;gt;100&amp;lt;/asp:ListItem&amp;gt;
&amp;lt;asp:ListItem&amp;gt;125&amp;lt;/asp:ListItem&amp;gt;
&amp;lt;asp:ListItem&amp;gt;150&amp;lt;/asp:ListItem&amp;gt;
&amp;lt;asp:ListItem&amp;gt;175&amp;lt;/asp:ListItem&amp;gt;
&amp;lt;asp:ListItem&amp;gt;200&amp;lt;/asp:ListItem&amp;gt;
&amp;lt;/asp:DropDownList&amp;gt;
TotalAmount:&amp;lt;asp:TextBox ID=&quot;txtOrderTotalAmt&quot; runat=&quot;server&quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;
As you can see there is alert to confirmation for &lt;a href=&quot;http://www.aspdotnet-sharepoint.com/2012/03/jquery-how-to-select-dropdown-selected.html&quot; target=&quot;_blank&quot;&gt;drop down selected value&lt;/a&gt; will come when the blur event occurs.Whenever we are using JQuery ,we should add JQuery library reference to our application.&lt;br /&gt;
In the above example we have taken one drop down list and text box to 
display the amount order .When the amount Drop down list has lost the 
focus ,the total Amount will be populate automatically.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/7469271335590738027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/7469271335590738027' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/7469271335590738027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/7469271335590738027'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/08/bind-data-to-aspnet-text-box-using.html' title='Bind data to Asp.net text box using dropdownlist in jquery'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-6940913107558336121</id><published>2013-07-29T08:59:00.003-07:00</published><updated>2013-07-29T08:59:40.139-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><title type='text'>2-Tier architecture in .net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1.In this architecture application required things placed into two systems is called &quot;2-Tier Architecture&quot; or client server application&lt;br /&gt;
2.Client server architecture is recommended when application is running on different systems with centralized data.in 2-tier business logic is placed with in each system,this repetition are be avoided&lt;br /&gt;3.by maintaining business logic with database server in the form of stored subprogram&lt;br /&gt;4.Maintain business logic with database server is called &quot;2 and half tier architecture&lt;br /&gt;5.When it comes to enterprise level the number of clients will be more (or) client will be outside organization network.In this case maintaining business logic with data base server in not recommended for following reason&lt;br /&gt;i.More burden on database,it will effect the performance&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/6940913107558336121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/6940913107558336121' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/6940913107558336121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/6940913107558336121'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/07/2-tier-architecture-in-net.html' title='2-Tier architecture in .net'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-709421214543014088</id><published>2013-07-29T08:26:00.000-07:00</published><updated>2014-05-05T18:38:54.163-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net Basics"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net Examples"/><category scheme="http://www.blogger.com/atom/ns#" term="Bind Data"/><category scheme="http://www.blogger.com/atom/ns#" term="Data Binding"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><category scheme="http://www.blogger.com/atom/ns#" term="Text Box"/><title type='text'>Bind data to Asp.net text box using jquery </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Title: &lt;/b&gt;JQuery bind data to asp.net text box using Blur function&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;
As per previous articles we have gone through different kind of data binding examples using jquery in asp.net.Now here we will learn about the usage of jquery functionality for web control.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Example:&lt;/b&gt;&lt;br /&gt;
Now i would like give an example to set the data to Text box in asp.net using jquery.This application will use to &amp;nbsp;set the food orders.As per requirement we need to assign the value to text box control based on food category Id.To accomplish this task &amp;nbsp;i have utilized &amp;nbsp;Jquery script function i:e Blur() which make the functionality what ever we used inside of it&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;HTML&quot; name=&quot;code&quot;&gt;$(document).ready(function() {
$(&quot;#&amp;lt;%= txtOrderList.ClientID %&amp;gt;&quot;).blur(function(){
var orderList = $(this).val();
$(&quot;#&amp;lt;%= txtOrderList1.ClientID %&amp;gt;&quot;.val(orderList); 
});&lt;/pre&gt;
&lt;br /&gt;
The above script will will bind the data to text box when the other text box focus has moved.You can use this functionality as per requirement very quickly.&lt;br /&gt;
This article may help you a lot..Keep visit my website&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/709421214543014088/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/709421214543014088' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/709421214543014088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/709421214543014088'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/07/bind-data-to-aspnet-text-box-using.html' title='Bind data to Asp.net text box using jquery '/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-3855559904040698759</id><published>2013-07-24T20:00:00.002-07:00</published><updated>2014-08-03T07:06:27.336-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ado.net"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net Basics"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql server"/><title type='text'>Creating Database WithOut GUI 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;b&gt;Title:Create new data base using dot net framework&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
1.With in object explorer right click on the database note and choose new database to open new database dialog box&lt;br /&gt;
2.In that new database dialog box at the database name option provide a name to the database and keep the owner as the default&lt;br /&gt;
3.By default one data filer and one log file are created automatically and will be shown in as table when you ant to create additional files and log files.&lt;br /&gt;
4.Click on add button at the bottom of the table.The table provides the first column name that can be used to specify logical name of the file .&lt;br /&gt;
5.File type column to specify whether the data file belongs to primary or secondary file group and the initial size column to specify initial memory to be allocated to the file&lt;br /&gt;
6.Use the auto growth column to specify how much memory to be incremented to the file.When it names additional memory and the maximum limit for the file.&lt;br /&gt;
7.To change these option click on the button on right side of the column .Auto growth that open a dialog box with in they dialog box specify the file growth and max size and click on OK button&lt;br /&gt;
8.Use &amp;nbsp;the column path to specify the physical path where you want to save the file to change the path ,click on the button on right side of the column path&lt;br /&gt;
9.After specifying the all the files required for the data base click o OK button to complete the Creation of database and click the dialog box&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/3855559904040698759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/3855559904040698759' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/3855559904040698759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/3855559904040698759'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/07/creating-database-without-gui-in-aspnet.html' title='Creating Database WithOut GUI in asp.net'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-3650256370356691930</id><published>2013-07-23T09:21:00.002-07:00</published><updated>2013-07-23T09:21:22.189-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net Basics"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net Examples"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><title type='text'>Serverside programming in Asp.net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1.All programs that are written as html/Js are executed in client system only.&lt;br /&gt;
2.The role of server for these programs is simply send a copy of program to client browser and its JS independent exceeds the code in client&lt;br /&gt;
3.Now when we write server side programs the program will be executed at server only .&lt;br /&gt;
4.The result will be sent back to client .All client side ans server side programs are based on execution only.&lt;br /&gt;
5.In web application extension are very important.&lt;br /&gt;
6.Many server side &amp;nbsp;environment are provided to develop server side scripting and web application&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/3650256370356691930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/3650256370356691930' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/3650256370356691930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/3650256370356691930'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/07/serverside-programming-in-aspnet.html' title='Serverside programming in Asp.net'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-6730335223727514091</id><published>2013-07-19T09:17:00.000-07:00</published><updated>2013-07-19T09:17:13.910-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net Basics"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net Examples"/><title type='text'>Components of .net framework</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Many of the updated and code related things have discussed on er-liar. In this post i just give some basic Concepts of .net framework.&lt;div&gt;
The components of .net frame work:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1.Common Language Run time(CLR)&lt;/div&gt;
&lt;div&gt;
2.Base class library&lt;/div&gt;
&lt;div&gt;
3.Framework Class Library&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Components of CLR:&lt;/div&gt;
&lt;div&gt;
1.Common language specification(CLS)&lt;/div&gt;
&lt;div&gt;
2.common type system(CTS)&lt;/div&gt;
&lt;div&gt;
3.garbage collector&lt;/div&gt;
&lt;div&gt;
4.Just in time&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/6730335223727514091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/6730335223727514091' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/6730335223727514091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/6730335223727514091'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/07/components-of-net-framework.html' title='Components of .net framework'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-340672693676542188</id><published>2013-07-18T04:58:00.000-07:00</published><updated>2014-03-22T07:59:18.567-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ArrayList"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net Basics"/><category scheme="http://www.blogger.com/atom/ns#" term="DataSource Controls"/><category scheme="http://www.blogger.com/atom/ns#" term="RadioButtonList"/><title type='text'>Bind data to RadioButtonList with arraylist 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;b&gt;Title:&lt;/b&gt;&lt;br /&gt;
How to bind data to web server control using array list in asp.net using c#&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;
Array list can hold list of items of similar data type.When &amp;nbsp;we want &amp;nbsp;declare the array list with specific size,no need to set the size of array list,because it can be re sizable automatically .&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Example:&lt;/b&gt;&lt;br /&gt;
The below example will show how to add data statically and dynamically to radio button through array list.But&amp;nbsp;&amp;nbsp;the binding concepts are also utilize for bind data to this standard control..Later articles i would like give all methods regarding array list&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;Csharp&quot; name=&quot;code&quot;&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;

public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
ArrayList listNum = new ArrayList();
listNum.Add(&quot;b&quot;);
listNum.Add(&quot;h&quot;);
listNum.Add(&quot;a&quot;);
listNum.Add(&quot;k&quot;);
listNum.Add(&quot;r&quot;);
rbNumber.DataSource = listNum;
rbNumber.DataBind();
}
}&lt;/pre&gt;
I hope it is helping for you.Thanks for coming and visit again
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/340672693676542188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/340672693676542188' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/340672693676542188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/340672693676542188'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/07/bind-data-to-radiobuttonlist-with.html' title='Bind data to RadioButtonList with arraylist in asp.net'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-4361954916256031034</id><published>2013-07-15T23:26:00.001-07:00</published><updated>2014-04-25T03:48:58.165-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net Examples"/><category scheme="http://www.blogger.com/atom/ns#" term="C#.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Compare"/><category scheme="http://www.blogger.com/atom/ns#" term="How to"/><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><title type='text'>how to compare two xml files in asp.net using c#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Title:&lt;/b&gt;How to compare XML files in Asp.net using C#&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Now i would like to give an examples on Comparing of XML documents using C# code.Asp.net provide an algorithm which is &quot;hash algorithm&quot;,can be used for encryption.So based on those methods i will do the comparison of files In the below method i have use two parameters which indicates the path of XML files&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Examples:&lt;/b&gt;&lt;br /&gt;
&lt;pre class=&quot;csharp&quot; name=&quot;code&quot;&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Security.Cryptography;

private void CompareXMLDocumnet(string ActualDocumnet,string GenratedDocument)
{
if (File.Exists(ActualDocumnet) &amp;amp;&amp;amp; File.Exists(GenratedDocument))
{
HashAlgorithm HA = HashAlgorithm.Create();
FileStream XmlFstream1 = new FileStream(ActualDocumnet, FileMode.Open);
FileStream XmlFstream2 = new FileStream(GenratedDocument, FileMode.Open);
byte[] Actual_Xmlhash1;
byte[] Genrated_Xmlhash2;
Actual_Xmlhash1= HA.ComputeHash(XmlFstream1);
Genrated_Xmlhash2= HA.ComputeHash(XmlFstream2);
XmlFstream1.Close();
XmlFstream2.Close();
if (Convert.ToBase64String(Actual_Xmlhash1) == Convert.ToBase64String(Genrated_Xmlhash2))
{
Response.Write(&quot; similar=&quot;&quot;&amp;gt;
}
else
{
throw new Exception(&quot;Files are different&quot;);
}
}
}
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/4361954916256031034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/4361954916256031034' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/4361954916256031034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/4361954916256031034'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/07/how-to-compare-two-xml-files-in-aspnet.html' title='how to compare two xml files in asp.net using c#'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-7006958070384513756</id><published>2013-07-14T22:12:00.001-07:00</published><updated>2014-08-11T19:53:08.011-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="csharp"/><category scheme="http://www.blogger.com/atom/ns#" term="How to"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>get the current month and year 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;b&gt;Title:&lt;/b&gt;How to get current month and year in asp.net using c#.net&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;
As per previous articles we have seen how get month and year using JQuery. Now i&amp;nbsp;would&amp;nbsp;like to explain&amp;nbsp;and give the example on the same concept in c#.net.The C#.net provide the object &quot;Date Time&quot; which has some&amp;nbsp;properties&amp;nbsp;to get the&amp;nbsp;retired&amp;nbsp;data.As per our discussion i will use the two methods to get the current month and year.&lt;br /&gt;
&lt;pre class=&quot;Csharp&quot; name=&quot;code&quot;&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
int year = DateTime.Now.Year;
int month = DateTime.Now.Month;
int date = (DateTime.Now.Day)+2;
Response.Write(year.ToString()+ month.ToString()+date.ToString());
}
}&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/7006958070384513756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/7006958070384513756' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/7006958070384513756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/7006958070384513756'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/07/get-current-month-and-year-in-aspnet.html' title='get the current month and year in asp.net'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-9061850394671810471</id><published>2013-07-10T18:44:00.001-07:00</published><updated>2013-07-10T19:38:39.853-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net Basics"/><category scheme="http://www.blogger.com/atom/ns#" term="MVC"/><title type='text'>New features in Asp.net MVC 5</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Erliar i have given Asp.net MVC4 related information with examples. Now the new version has came which is MVC 5 with new features.The below link will give the complete tutorial of MVC 5 with examples&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://www.asp.net/mvc/tutorials/mvc-5/introduction/getting-started&quot; target=&quot;_blank&quot;&gt;New Asp.Net MVC 5&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/9061850394671810471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/9061850394671810471' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/9061850394671810471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/9061850394671810471'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/07/new-features-in-aspnet-mvc-5.html' title='New features in Asp.net MVC 5'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-3286188743978578403</id><published>2013-07-01T19:39:00.000-07:00</published><updated>2014-04-17T08:18:42.413-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net Examples"/><category scheme="http://www.blogger.com/atom/ns#" term="C#.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Dropdown List"/><category scheme="http://www.blogger.com/atom/ns#" term="Grid view"/><category scheme="http://www.blogger.com/atom/ns#" term="How to"/><title type='text'>Get dropdownlist selcted value in 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;b&gt;Title:&lt;/b&gt;&lt;br /&gt;
how Get Drop down List selected value &amp;nbsp;in grid view using c# in asp.net&lt;br /&gt;
&lt;b&gt;Requirement:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
.Frame Work and Sql Server&lt;br /&gt;
&lt;b&gt;Explanation:&lt;/b&gt;&lt;br /&gt;
Here i will show how to fire selected index event of drop down in grid view.When we work with drop down list in grid view ,Most &amp;nbsp;of &amp;nbsp;the confusion about how to get the selected value of DDL.By using this event(SelectedindexChanged) we can do it.&lt;br /&gt;
As per requirement have to display details of selected record details in report page.By using this ,will get Drop down selected value in grid view. In the above i have fetched the drop down list selected value which in grid view.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;Csharp&quot; name=&quot;code&quot;&gt;protected void ddlorders_SelectedIndexChanged(object sender, EventArgs e)
{
GridViewRow GvOrderrow= (GridViewRow)ddlorders.NamingContainer;
DropDownList ddlOrdr_name= ((DropDownList)(GvOrderrow.FindControl(“ddlorders&quot;))).SelectedValue;
if((ddlOrdr_name.SelectedValue.ToString()) ==&quot;&quot;)
{
Response.Write(&quot;No order Exist&quot;);
}
else
{
Respose.Redirect(&quot;Report.aspx?order=&#39;&quot;+ CurrentOrdr+&quot;&#39;&quot;);
}

&lt;div&gt;
&lt;/div&gt;
&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/3286188743978578403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/3286188743978578403' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/3286188743978578403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/3286188743978578403'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/07/get-dropdownlist-selcted-value-in.html' title='Get dropdownlist selcted value in gridview in Asp.net'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-6375925549484759934</id><published>2013-06-25T19:14:00.000-07:00</published><updated>2013-06-25T19:14:36.625-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>Transformations in WPF</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
It will use to change the position of a control in particular angle is called Transformation.WPF supports three types of&lt;br /&gt;
Transformations.&lt;br /&gt;
1.Rotate Transformation&lt;br /&gt;
2.Skew Transformation&lt;br /&gt;
3.Scale Transformation&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Example:&lt;/b&gt;&lt;br /&gt;
Open WPF project&lt;br /&gt;
Replace grid with Canvas tag&lt;br /&gt;
Type as follows with in the Canvas&lt;br /&gt;
&lt;pre 150=&quot;&quot; br=&quot;&quot; canvas.left=&quot;20&quot; canvas.top=&quot;20&quot; class=&quot;HTML&quot; gt=&quot;&quot; height=&quot;75&quot; name=&quot;code&amp;gt;
&amp;lt;Button width=&quot;&gt;&amp;lt;Button.Render.Tranformation&amp;gt;
&amp;lt;Rotate Transform Angle=&quot;45&quot;/&amp;gt;
&lt;b&gt;//Skew:&lt;/b&gt;
&amp;lt;skew Transform angle x=&quot;30&quot; ,angle y=&quot;30&quot;/&amp;gt;
&lt;b&gt;//Scale :&lt;/b&gt;
&amp;lt;Scale Transform scale x=&quot;2&quot; scale y=&quot;2&quot;/&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/6375925549484759934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/6375925549484759934' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/6375925549484759934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/6375925549484759934'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/06/transformations-in-wpf.html' title='Transformations in WPF'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-36691213610706117</id><published>2013-06-19T18:59:00.001-07:00</published><updated>2013-06-19T18:59:21.726-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net Basics"/><title type='text'>page error event in asp.net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This event can have error handling code using which user can get some info about the problem.Normally we will create page error event code by redirecting user with that page&lt;br /&gt;
&lt;pre class=&quot;csharp&quot; name=&quot;code&quot;&gt;protected void page_error(object seender,EventArgs e)
{
Response.Redirect(&quot;Error. Html&quot;);
}
protected void btn_clikc(object sender,EventArgs e)
{
int a=0,c=10;
int b=c/a;
Response.Write(b.Tostring());
}&lt;/pre&gt;
Implemented using &amp;lt;custom errors&amp;gt; tag of web.config and also using application _error event of Global.aspx &amp;nbsp;file&lt;br /&gt;
&lt;b&gt;Web.config:&lt;/b&gt;&lt;br /&gt;
&amp;lt;custom errors mode=&quot;on&quot; DefaultRedirect=&quot;error.html&quot;&amp;gt;&amp;lt;/custom errors&amp;gt;&lt;br /&gt;
In the same custom error a sub tag called error is present.In this tag we can specify particular error and redirecting&lt;br /&gt;
&lt;pre class=&quot;XML&quot; name=&quot;code&quot;&gt;&amp;lt;appsettings&amp;gt;
&amp;lt;connectionStrings/&amp;gt;
&amp;lt;system.web&amp;gt;
&amp;lt;custom errors mode=&quot;ReadOnly&quot; default Redirect=&quot;error.html&quot;?
&amp;lt;error status code=404&quot; redirect=&quot;nofile.html&quot;/&amp;gt;&lt;/pre&gt;
If user attempts to go for a file which is not present then nofile page will be displayed and for any other if goes to error page.Here we should notice &quot;both files are created by user&quot;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/36691213610706117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/36691213610706117' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/36691213610706117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/36691213610706117'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/06/page-error-event-in-aspnet.html' title='page error event in asp.net'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-6751986813239631943</id><published>2013-06-08T05:28:00.000-07:00</published><updated>2014-03-26T19:55:00.648-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net Examples"/><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><category scheme="http://www.blogger.com/atom/ns#" term="Gridview"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>Jquery highlight Gridview selected rows 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;b&gt;Title: &lt;/b&gt;How to highlight grid view rows using jquery in asp.net&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;
using client script we can make lot functionality on design side.Now i would like explain how to use jquery on data controls in asp.net .Whenever we have to select specified rows with particular style on client side ,the jquery can solve this task&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Example:&lt;/b&gt;&lt;br /&gt;
In previous articles we have seen&amp;nbsp;&lt;a href=&quot;http://www.aspdotnet-sharepoint.com/2012/07/how-to-bind-data-to-gridview-in-aspnet.html&quot; target=&quot;_blank&quot;&gt;Bind Data to Grid view&lt;/a&gt;,&lt;a href=&quot;http://www.aspdotnet-sharepoint.com/2011/11/row-editdeleteupdate-in-grid-view-using.html&quot; target=&quot;_blank&quot;&gt;Edit,Delete,Update in Grid view&lt;/a&gt;&amp;nbsp;in asp.net,&lt;a href=&quot;http://www.aspdotnet-sharepoint.com/2012/03/excel-data-into-grid-view-in-aspnet.html&quot; target=&quot;_blank&quot;&gt;Import Excel to Grid view asp net&lt;/a&gt;.Here i will show how to Highlight grid view selected rows.&lt;br /&gt;
&lt;pre class=&quot;HTML&quot; name=&quot;code&quot;&gt;&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;
&amp;lt;head id=&quot;Head1&quot; runat=&quot;server&quot;&amp;gt;
&amp;lt;title&amp;gt;Gridview selected Row highlight using jquery&amp;lt;/title&amp;gt;
&amp;lt;script src=&quot;http://code.jquery.com/jquery.min.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
$(document).ready(function () {
$(&quot;#&amp;lt;%=GVdynamic.UniqueID%&amp;gt; tr&quot;).click(function () {
$(this).css(&quot;font-weight&quot;, &quot;bold&quot;);
$(this).css(&quot;background-color&quot;, &quot;SkyBlue&quot;);
$(this).css(&quot;border&quot;, &quot;2px solid Green&quot;);
});
});
&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;form id=&quot;form1&quot; runat=&quot;server&quot;&amp;gt;
&amp;lt;asp:GridView ID=&quot;GVdynamic&quot; runat=&quot;server&quot; AutoGenerateColumns=&quot;False&quot;
DataSourceID=&quot;sySql&quot;&amp;gt;
&amp;lt;Columns&amp;gt;
&amp;lt;asp:BoundField DataField=&quot;DyOrderID&quot; HeaderText=&quot;DyOrderID&quot; /&amp;gt;
&amp;lt;asp:BoundField DataField=&quot;DyOrderName&quot; HeaderText=&quot;DyOrderName&quot; /&amp;gt;
&amp;lt;asp:BoundField DataField=&quot;DyPhone&quot; HeaderText=&quot;Phone&quot; /&amp;gt;
&amp;lt;asp:BoundField DataField=&quot;DyAddress&quot; HeaderText=&quot;DyAddress&quot; /&amp;gt;
&amp;lt;asp:BoundField DataField=&quot;DyAmount&quot; HeaderText=&quot;DyAmount&quot; /&amp;gt;
&amp;lt;/Columns&amp;gt;
&amp;lt;/asp:GridView&amp;gt;
&amp;lt;asp:SqlDataSource ID=&quot;dySql&quot; runat=&quot;server&quot;
&amp;nbsp; &amp;nbsp; ConnectionString=&quot;&amp;lt;%$ ConnectionStrings:Connection %&amp;gt;&quot;
&amp;nbsp; &amp;nbsp; SelectCommand=&quot;SELECT * FROM [dyOrders]&quot;&amp;gt;&amp;lt;/asp:SqlDataSource&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/6751986813239631943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/6751986813239631943' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/6751986813239631943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/6751986813239631943'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/06/jquery-highlight-gridview-selected-rows.html' title='Jquery highlight Gridview selected rows in asp.net'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-6804799075398034023</id><published>2013-05-17T21:09:00.000-07:00</published><updated>2014-04-17T08:22:15.400-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net Examples"/><category scheme="http://www.blogger.com/atom/ns#" term="C#.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Grid view"/><category scheme="http://www.blogger.com/atom/ns#" term="Nested Grid view"/><title type='text'>Gridview inside gridview || Nested 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;b&gt;Title:&lt;/b&gt;How to use grid view inside grid view in asp.net using c#.net&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;
Earlier we have seen how to Export&amp;nbsp;grid view&amp;nbsp;data to PDF,Bind data to&amp;nbsp;grid view&amp;nbsp;in asp.net.Here i will given an example for how to develop the nested&amp;nbsp;grid view&amp;nbsp;in asp.net.In this example the binding has done while page load event then the child&amp;nbsp;grid view&amp;nbsp;will populate on row data bound event.&lt;br /&gt;
&lt;b&gt;Example:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;HTML&quot; name=&quot;code&quot;&gt;&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;
&amp;lt;head id=&quot;Head1&quot; runat=&quot;server&quot;&amp;gt;
&amp;lt;title&amp;gt;Gridview inside gridview or Nested GridView in asp.net&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;form id=&quot;form1&quot; runat=&quot;server&quot;&amp;gt;
&amp;lt;div&amp;gt;
&amp;lt;asp:GridView ID=&quot;GvParentOrderReport&quot; runat=&quot;server&quot; OnRowDataBound=&quot;GvOrderReport_RowDataBound&quot;
AllowPaging=&quot;True&quot; AutoGenerateColumns=&quot;False&quot; DataKeyNames=&quot;OrderId&quot;
GridLines=&quot;Horizontal&quot;&amp;gt;
&amp;lt;AlternatingRowStyle BackColor=&quot;White&quot; ForeColor=&quot;#284775&quot; /&amp;gt;
&amp;lt;Columns&amp;gt;
&amp;lt;asp:BoundField DataField=&quot;Orderid&quot; HeaderText=&quot;OrderId&quot;&amp;gt;
&amp;lt;/asp:BoundField&amp;gt;
&amp;lt;asp:BoundField DataField=&quot;OrderName&quot; HeaderText=&quot;OrderName&quot; &amp;gt;
&amp;lt;/asp:BoundField&amp;gt;
&amp;lt;asp:BoundField DataField=&quot;Phone&quot; HeaderText=&quot;Phone&quot; &amp;gt;
&amp;lt;/asp:BoundField&amp;gt;
&amp;lt;asp:BoundField DataField=&quot;Address&quot; HeaderText=&quot;Address&quot; &amp;gt;
&amp;lt;/asp:BoundField&amp;gt;
&amp;lt;asp:BoundField DataField=&quot;Amount&quot; HeaderText=&quot;Amount&quot; &amp;gt;
&amp;lt;/asp:BoundField&amp;gt;
&amp;lt;asp:TemplateField&amp;gt;
&amp;lt;ItemTemplate&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;td&amp;gt;
&amp;lt;asp:GridView ID=&quot;GvChildOrderNested&quot; runat=&quot;server&quot; AutoGenerateColumns=&quot;false&quot;&amp;gt;
&amp;lt;Columns&amp;gt;
&amp;lt;asp:BoundField DataField=&quot;OrderId&quot; HeaderText=&quot;OrderID&quot;/&amp;gt;
&amp;lt;asp:BoundField DataField=&quot;OrderName&quot; HeaderText=&quot;OrderName&quot;/&amp;gt;
&amp;lt;asp:BoundField DataField=&quot;Phone&quot; HeaderText=&quot;Phone&quot;/&amp;gt;
&amp;lt;asp:BoundField DataField=&quot;Address&quot; HeaderText=&quot;Address&quot;/&amp;gt;
&amp;lt;asp:BoundField DataField=&quot;Amount&quot; HeaderText=&quot;Amount&quot;/&amp;gt;
&amp;lt;/Columns&amp;gt;
&amp;lt;/asp:GridView&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;/ItemTemplate&amp;gt;
&amp;lt;/asp:TemplateField&amp;gt;
&amp;lt;/Columns&amp;gt;
&amp;lt;/asp:GridView&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;pre class=&quot;Csharp&quot; name=&quot;code&quot;&gt;using System;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;

public partial class _GridviewInsideGridview : System.Web.UI.Page
{
SqlConnection mcon = new SqlConnection(&quot;Data Source=Bhaskar\sqlexpress;Initial Catalog=Test;Integrated Security=True&quot;);
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
mcon.Open();
SqlCommand Parentcmd = new SqlCommand(&quot;select * from orders&quot;, mcon);
SqlDataAdapter Parentda = new SqlDataAdapter(Parentcmd);
DataSet Parentds = new DataSet();
Parentda.Fill(Parentds);
mcon.Close();
GvParentOrderReport.DataSource = Parentds;
GvParentOrderReport.DataBind();
}
}
     
protected void GvOrderReport_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
mcon.Open();
GridView GvChildOrderNested = (GridView)e.Row.FindControl(&quot;GvChildOrderNested&quot;);
SqlCommand Childcmd = new SqlCommand(&quot;select * from orders&quot;, mcon);
SqlDataAdapter Childda = new SqlDataAdapter(Childcmd);
DataSet Childds = new DataSet();
Childda.Fill(Childds);
mcon.Close();
GvChildOrderNested.DataSource = Childds;
GvChildOrderNested.DataBind();
}
}
}
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/6804799075398034023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/6804799075398034023' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/6804799075398034023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/6804799075398034023'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/05/gridview-inside-gridview-nested.html' title='Gridview inside gridview || Nested gridview in Asp.net'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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-4696086498752533600.post-4156166120439100106</id><published>2013-05-15T21:55:00.000-07:00</published><updated>2013-07-18T06:11:04.732-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net Examples"/><category scheme="http://www.blogger.com/atom/ns#" term="DataTable"/><category scheme="http://www.blogger.com/atom/ns#" term="Gridview"/><title type='text'>How to bind data to gridview with jquery in asp.net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In previous articles i have given &lt;a href=&quot;http://www.aspdotnet-sharepoint.com/2011/12/cascading-dropdownl-lists-in-aspnet.html&quot; target=&quot;_blank&quot;&gt;Cascading dropdownlist using jquery&lt;/a&gt;&amp;nbsp;.In this post i would like to explain how to bind data to gridview using&amp;nbsp;Jquery. Here&amp;nbsp;we can observe the page method calling using jquery post method&lt;br /&gt;
&lt;pre class=&quot;HTML&quot; name=&quot;code&quot;&gt;&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;
&amp;lt;head runat=&quot;server&quot;&amp;gt;
&amp;lt;title&amp;gt;Bind data to grid using jquery in asp.net&amp;lt;/title&amp;gt;
&amp;lt;script src=http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
$(document).ready(function () {
$.ajax({
type: &quot;POST&quot;,
contentType: &quot;application/json; charset=utf-8&quot;,
url: &quot;JqueryBindGrid.aspx/BindOrderDataToGrid&quot;,
data: &quot;{}&quot;,
dataType: &quot;json&quot;,
success: function (resData) {
&amp;nbsp; &amp;nbsp; for (var i = 0; i &amp;lt; resData.d.length; i++) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&quot;#GvOrderDetails&quot;).append(&quot;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&quot; + resData.d[i].OrderId + &quot;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&quot; + resData.d[i].OrderName + &quot;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&quot; + resData.d[i].Phone + &quot;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&quot; + data.d[i].Address + &quot;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&quot; + resData.d[i].Amount + &quot;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&quot;);
}
},
error: function (result) {
alert(&quot;Exception&quot;);
}
});
});
&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;form id=&quot;form1&quot; runat=&quot;server&quot;&amp;gt;
&amp;lt;asp:GridView ID=&quot;GvOrderDetails&quot; runat=&quot;server&quot;&amp;gt;
&amp;lt;/asp:GridView&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;
&lt;b&gt;Code behind:&lt;/b&gt; &lt;br /&gt;
&lt;pre class=&quot;csharp&quot; name=&quot;code&quot;&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
using System.Web.Services;

public partial class JqueryBindGrid : System.Web.UI.Page
{
  
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DataTable GVHeaderdt = new DataTable();
GVHeaderdt.Columns.Add(&quot;OrderId&quot;);
GVHeaderdt.Columns.Add(&quot;OrderName&quot;);
GVHeaderdt.Columns.Add(&quot;Phone&quot;);
GVHeaderdt.Columns.Add(&quot;Address&quot;);
GVHeaderdt.Columns.Add(&quot;Amount&quot;);
GVHeaderdt.Rows.Add();
GvOrderDetails.DataSource = GVHeaderdt;
GvOrderDetails.DataBind();
      
}
}
public class OrderReportDetails
{
public int OrderId { get; set; }
public string OderName { get; set; }
public string Phone { get; set; }
public string Address { get; set; }
public string Amount { get; set; }
}
[WebMethod]
public static OrderReportDetails[] BindOrderDataToGrid()
{
DataTable resDt = new DataTable();
List&lt;orderreportdetails&gt; ORdetails = new List&lt;orderreportdetails&gt;();
SqlConnection Dbcon = new SqlConnection(ConfigurationManager.AppSettings[&quot;DbOrdrCon&quot;].ToString());
SqlCommand cmd = new SqlCommand(&quot;select * from Orders&quot;, Dbcon);
Dbcon.Open();
SqlDataAdapter Orda = new SqlDataAdapter(cmd);
Orda.Fill(resDt);
foreach (DataRow Ordt in resDt.Rows)
{
    OrderReportDetails OrderDetails = new OrderReportDetails();
    OrderDetails.OrderId = int.Parse(Ordt[&quot;OrderId&quot;].ToString());
    OrderDetails.OderName = Ordt[&quot;OrderName&quot;].ToString();
    OrderDetails.Phone = Ordt[&quot;Phone&quot;].ToString();
    OrderDetails.Address = Ordt[&quot;Address&quot;].ToString();
    OrderDetails.Amount = Ordt[&quot;Amount&quot;].ToString();
    ORdetails.Add(OrderDetails);
}&lt;/orderreportdetails&gt;&lt;/orderreportdetails&gt;&lt;/pre&gt;
&lt;pre class=&quot;csharp&quot; name=&quot;code&quot;&gt;&lt;orderreportdetails&gt;&lt;orderreportdetails&gt;Dbcon.Close();
return ORdetails.ToArray();
}
  
}
&lt;/orderreportdetails&gt;&lt;/orderreportdetails&gt;&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgulE7V37SZYlt7XTtgPqUBMwWO_w6NCKkVnJswIIc2sYTzqPCjtL3WeIE7y8sQPLUn-4_jd8tFWssmCoROKPSGSIHgEW0Hcaljqoeqt_5tED2E3g6uesKTkfehJADim3vdib-tjaMOF3o/s1600/Jquery+Bind+Grid.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgulE7V37SZYlt7XTtgPqUBMwWO_w6NCKkVnJswIIc2sYTzqPCjtL3WeIE7y8sQPLUn-4_jd8tFWssmCoROKPSGSIHgEW0Hcaljqoeqt_5tED2E3g6uesKTkfehJADim3vdib-tjaMOF3o/s320/Jquery+Bind+Grid.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre class=&quot;csharp&quot; name=&quot;code&quot;&gt;&lt;orderreportdetails&gt;&lt;orderreportdetails&gt;&lt;/orderreportdetails&gt;&lt;/orderreportdetails&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/4156166120439100106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/4156166120439100106' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/4156166120439100106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/4156166120439100106'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/05/how-to-bind-data-to-gridview-with.html' title='How to bind data to gridview with jquery in asp.net'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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/AVvXsEgulE7V37SZYlt7XTtgPqUBMwWO_w6NCKkVnJswIIc2sYTzqPCjtL3WeIE7y8sQPLUn-4_jd8tFWssmCoROKPSGSIHgEW0Hcaljqoeqt_5tED2E3g6uesKTkfehJADim3vdib-tjaMOF3o/s72-c/Jquery+Bind+Grid.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4696086498752533600.post-4991906958390087220</id><published>2013-05-14T21:43:00.000-07:00</published><updated>2013-07-18T06:11:31.540-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net Examples"/><category scheme="http://www.blogger.com/atom/ns#" term="Gridview"/><title type='text'>how to bind arraylist to 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;
In&amp;nbsp;previous&amp;nbsp;articles we have seen&amp;nbsp;how to bind the data to&amp;nbsp;grid view,&amp;nbsp;&lt;a href=&quot;http://www.aspdotnet-sharepoint.com/2012/04/how-to-binding-data-to-dropdown-list-in.html&quot; target=&quot;_blank&quot;&gt;Bind data to dropdownlist,&lt;/a&gt;Bind data to dropdownlist in gridview,Export gridview to PDF.Here i would like to explain how to bind arraylist data to&amp;nbsp;Grid view&amp;nbsp;in asp.net.In the below i have used static&amp;nbsp;array list&amp;nbsp;for binding&lt;br /&gt;
&lt;pre class=&quot;HTML&quot; name=&quot;code&quot;&gt;&amp;lt;%@ Page Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot; CodeFile=&quot;ArrayListToGridview.aspx.cs&quot; Inherits=&quot;_ArrayListToGridview&quot; %&amp;gt;

&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &amp;gt;
&amp;lt;head runat=&quot;server&quot;&amp;gt;
&amp;lt;title&amp;gt;Bind ArrayList to Gridview&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;form id=&quot;form1&quot; runat=&quot;server&quot;&amp;gt;
&amp;lt;div&amp;gt;
&amp;lt;asp:GridView ID=&quot;GvBindArrayList&quot; runat=&quot;server&quot;
AutoGenerateColumns=&quot;False&quot; &amp;gt;
&amp;lt;/asp:Gridview&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/pre&gt;
&lt;pre class=&quot;csharp&quot; name=&quot;code&quot;&gt;using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.IO;
using System.Collections.Generic;
using System.Linq;

public partial class _ArrayListToGridview : System.Web.UI.Page
{
protected void Page_Load(Object Sender, EventArgs E)
{
if (!IsPostBack) {
ArrayList Booknames = new ArrayList();
Booknames.Add (&quot;Asp.net&quot;);
Booknames.Add (&quot;C#.net&quot;);
Booknames.Add (&quot;SharePoint&quot;);
Booknames.Add (&quot;SqlServer&quot;);
Booknames.Add (&quot;Jquery&quot;);
Booknames.Add (&quot;Asp.netMVC&quot;);
GvBindArrayList.DataSource = Booknames;
GvBindArrayList.DataBind();
}
}
}

&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://csharpektroncmssql.blogspot.com/feeds/4991906958390087220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4696086498752533600/4991906958390087220' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/4991906958390087220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4696086498752533600/posts/default/4991906958390087220'/><link rel='alternate' type='text/html' href='http://csharpektroncmssql.blogspot.com/2013/05/how-to-bind-arraylist-to-gridview-in.html' title='how to bind arraylist to gridview in asp.net'/><author><name>Bhaskara</name><uri>http://www.blogger.com/profile/15492891651384512858</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></feed>