<?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-7215440885569094475</id><updated>2024-10-24T09:43:51.464-07:00</updated><category term="Asp.net"/><category term="Basics"/><category term="C#"/><category term="Development"/><category term="Questions"/><category term="Entity framework"/><category term="ajax"/><category term="angularjs"/><category term="dropdown"/><category term=".Net"/><category term="html"/><category term="jquery"/><category term="SignalR"/><category term="material"/><category term="ng-change"/><category term="ng-switch"/><category term="validation"/><title type='text'>C# Important Topics</title><subtitle type='html'>Blog is made with an aim to help developers and learners of c# language.&#xa;It will be updated daily with new topics and important concerned questions to .net developers.&#xa;Follow my blog as an encouragement to give more post with valuable information. </subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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>39</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7215440885569094475.post-7727835030385967599</id><published>2016-03-23T01:43:00.000-07:00</published><updated>2016-03-23T01:43:01.521-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="angularjs"/><title type='text'>Checkbox Toggling in Angularjs</title><summary type="text">



Requirement :

We need to make a checkbox for every option available in our $scope object and preserve the option selected for further use.



Step 1:



Store your required option list in a $scope.



Example :&amp;nbsp;



$scope.options : SalesOrderNos

In our example the SalesOrderNos have a list of sales order, on which we require the checkbox.



Step2: Declare another scope variable to </summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/7727835030385967599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2016/03/checkbox-toggling-in-angularjs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/7727835030385967599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/7727835030385967599'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2016/03/checkbox-toggling-in-angularjs.html' title='Checkbox Toggling in Angularjs'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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-7215440885569094475.post-2210083009288016065</id><published>2016-03-14T00:59:00.000-07:00</published><updated>2016-03-17T00:59:42.651-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="angularjs"/><category scheme="http://www.blogger.com/atom/ns#" term="material"/><title type='text'>Angular Material Auto - Complete</title><summary type="text">

&amp;nbsp;Angular
Material is the reference implementation of Google&#39;s Material Design
Specification. This project provides a set of reusable, well-tested,
and accessible UI components based on Material Design.



To
use Angular- Material, required Angular files are :




angular-material.min.css


angular-material.min.js


angular.min.js


angular-animate.min.js


angular-aria.min.js


</summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/2210083009288016065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2016/03/angular-material-auto-complete.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/2210083009288016065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/2210083009288016065'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2016/03/angular-material-auto-complete.html' title='Angular Material Auto - Complete'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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/AVvXsEjwhfV1yWMoyUdhsRkyg_llAn0PbuIwYzQTNzjWIgUnQ18yZNfUhLqYEcD1XYJHOgjxk5PzrqeS9Ur2Q-MLoaR6c_IY6Ru5LU1O4zvvqEy8ZXztXInlczLF91mATZOtl_LtSKayGN9ip3o/s72-c/autocomplet.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7215440885569094475.post-5092019367161321932</id><published>2016-03-08T22:30:00.000-08:00</published><updated>2016-03-08T22:34:22.347-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SignalR"/><title type='text'>Starting with SignalR Part 1 (Overview)</title><summary type="text">


SignalR,
a framework that facilitate&amp;nbsp;asynchronous&amp;nbsp;data transfer between the&amp;nbsp;server and the clients in real time.



Basically,
SignalR isolates us from low-level details, giving us the impression
of working on a permanently open persistent connection. To achieve
this, SignalR includes&amp;nbsp;components&amp;nbsp;specific to both&amp;nbsp;ends of
communication, which will facilitate message</summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/5092019367161321932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2016/03/starting-with-signalr-part-1-overview.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/5092019367161321932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/5092019367161321932'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2016/03/starting-with-signalr-part-1-overview.html' title='Starting with SignalR Part 1 (Overview)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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/AVvXsEhLG0Kz_HCNB4RnNSJAmJXjBf1_KeGmXHSGtoupE8H3e8wCQjGu9SKnmsY4OktyNCP3br46UbIJNSz88sKCBWwXOe0JDM54OrBymLKx-_XLT13QH1QyMPO_enYZqkaq2dN8mvhQ2ZgZWgo/s72-c/signalr-communication-fallback.png-.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7215440885569094475.post-8190952051801832105</id><published>2016-03-08T01:37:00.000-08:00</published><updated>2016-03-08T01:37:42.011-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="angularjs"/><category scheme="http://www.blogger.com/atom/ns#" term="ng-change"/><title type='text'>ng-change</title><summary type="text">






ng-change
can be used to capture any action performed by the user with input
type tag, select tag.




Using
ng-change with input type :



&amp;lt;input
type=&quot;number&quot;
class=&quot;form-control&quot;
ng-change=&quot;calculate()&quot;
/&amp;gt;




Here
ng-change modal will go to calculate() in the controller of this page
at the time of change text in the textbox. This is same as writing a
onTextChange() action on the </summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/8190952051801832105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2016/03/ng-change.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/8190952051801832105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/8190952051801832105'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2016/03/ng-change.html' title='ng-change'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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-7215440885569094475.post-1763989172431378899</id><published>2016-03-08T00:00:00.000-08:00</published><updated>2016-03-08T00:00:03.665-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><category scheme="http://www.blogger.com/atom/ns#" term="Entity framework"/><title type='text'>  Beginning-with-database-approach-Part 3</title><summary type="text">



In
Part 2 of beginning with entity framework we did CRUD operation using
entity framework. Now, there are few tips for using entity:



How to
update your Entity Data Model (.edmx)?




Open
your .edmx file &amp;gt;Right click &amp;gt;Select update from database

You
will get this window:
















































If
you have added new table, views, stored procedure in database.</summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/1763989172431378899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2016/03/beginning-with-database-approach-part-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/1763989172431378899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/1763989172431378899'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2016/03/beginning-with-database-approach-part-3.html' title='  Beginning-with-database-approach-Part 3'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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/AVvXsEitXGYo6uHfMSXtdZw1Y2UhtFb7Mo9ptewjva1fCyciXiklyzMRtSOOGsY5W6VwDeMhzz5ZKdfR_xPa-CLF4s_crlSlk_DNgRXOnFfA08_7psQXHeTm0P6tsuRomhmlqSoNs3nIcFeyiZg/s72-c/entityPart3image1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7215440885569094475.post-1305372851787832584</id><published>2016-03-02T02:05:00.000-08:00</published><updated>2016-03-08T00:02:58.900-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><category scheme="http://www.blogger.com/atom/ns#" term="Entity framework"/><title type='text'>Beginning-with-database-approach-Part 2</title><summary type="text">


In our first part we have
created our .edmx file with the help of ADO.net Entity Data Model using
database approach. 



Now, it’s time to start
using our entity Framework to do SQL operation.



Before that,&amp;nbsp; if you are using visual studio 2012 or later,
go to solution explorer, find your .edmx file and delete &amp;nbsp;.tt extension files from there.






























After that</summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/1305372851787832584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2016/03/beginning-with-database-approach-part-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/1305372851787832584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/1305372851787832584'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2016/03/beginning-with-database-approach-part-2.html' title='Beginning-with-database-approach-Part 2'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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/AVvXsEjOUYWfgGUmB20E-7l_6Bo0K-XMM4IPW6XBT5BDPHAzvnGaev116a_-elNTMSr1FZdVE7lMk29Q6yEgds-gxMfp95J0p3yovR-JBs7nkkGC-R9UL9eOSxj0Kl86zXnrup6CQ0TlMfLb3u4/s72-c/databaseApproachPart2Step1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7215440885569094475.post-2527969401725110346</id><published>2016-03-01T23:29:00.000-08:00</published><updated>2016-03-08T00:05:09.337-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><category scheme="http://www.blogger.com/atom/ns#" term="Entity framework"/><title type='text'>Beginning with database approach Part-1 </title><summary type="text">




This approach could be used with any previously build
database, that why known as database model approach. It will help us to
communicate with our database, with its predefined functions, and giving our C#
code more power in terms of SQL too.





Step 1:&amp;nbsp;Right-
Click on the project main file.



Project Name &amp;gt; Add &amp;gt; New Item &amp;gt; ADO.NET Entity Data
Model









Provide a </summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/2527969401725110346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2016/03/beginning-with-database-approach-part-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/2527969401725110346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/2527969401725110346'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2016/03/beginning-with-database-approach-part-1.html' title='Beginning with database approach Part-1 '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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/AVvXsEht8Mepj7ep2bNsl9-6qKVBlLuU27MV_l0N1GLD5kW3Vpn02Y5QOL1MukENUyRYLfcygtxNmcI1kHaLIFVbICz77IAJBL7qXAeowHlvTw-pj7hR-9JlssUJzkiddkWsHWe22fvpaUu3VR0/s72-c/databaseApproachStep1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7215440885569094475.post-2461874063721669507</id><published>2016-02-28T09:58:00.000-08:00</published><updated>2016-02-28T09:58:52.810-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="angularjs"/><category scheme="http://www.blogger.com/atom/ns#" term="ng-switch"/><title type='text'>Using ng-switch in Angularjs</title><summary type="text">


ng-switch :

ng-switch basically provide us with a functionality to switch views on some client action. This action could be through a drop-down &amp;nbsp;option change, button click or any other such client action.





For Example :




&amp;nbsp; &amp;lt;select ng-model=&quot;stockShow&quot;&amp;gt;

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;</summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/2461874063721669507/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2016/02/using-ng-switch-in-angularjs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/2461874063721669507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/2461874063721669507'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2016/02/using-ng-switch-in-angularjs.html' title='Using ng-switch in Angularjs'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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-7215440885569094475.post-1501828781873280835</id><published>2016-01-26T02:02:00.000-08:00</published><updated>2016-01-26T02:02:16.177-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="html"/><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><title type='text'>Sending Dynamic Table Data to Server Side</title><summary type="text">



Step 1: Add the jquery main file.

Step 2: &amp;nbsp;Add the following Code.


&amp;nbsp;function saveValues( ) {&amp;nbsp; var tableMatRequire = [];&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&#39;#matReqTable tr&#39;).each(function (row, tr) {&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tableMatRequire.push({&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IndentNo: $(&#39;.indentClass&#39;).val(),&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;</summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/1501828781873280835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2016/01/sending-dynamic-table-data-to-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/1501828781873280835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/1501828781873280835'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2016/01/sending-dynamic-table-data-to-server.html' title='Sending Dynamic Table Data to Server Side'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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-7215440885569094475.post-7930030353144920304</id><published>2016-01-17T21:15:00.000-08:00</published><updated>2016-01-17T21:15:09.725-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html"/><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><title type='text'>Making Add Row functionality in Html table using jquery</title><summary type="text">

Step 1:

Add Jquery download file or use the CDN provided :


&amp;lt;script src=&quot;https://code.jquery.com/jquery-2.2.0.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

Step 2:

Make your html table ..

&amp;nbsp;&amp;lt;h3&amp;gt;Add/ Delete Row &amp;lt;/h3&amp;gt;
&amp;lt;div class=&quot;row&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col-md-1&quot;&amp;gt;&amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col-md-9&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;table </summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/7930030353144920304/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2016/01/making-add-row-functionality-in-html.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/7930030353144920304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/7930030353144920304'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2016/01/making-add-row-functionality-in-html.html' title='Making Add Row functionality in Html table using jquery'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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/AVvXsEgm2rak5yLmFrf3KgZrcma4HnhxY0CxaqSTfwxp_wn2nTSptmRX1zlDjpmLuzeHGei72D3jWToAK71fjqkF2tNwto-9f6sWavtscZ7VVtqpRjldaN0FHb5HWvulZF9ApGWFNDtLw5CQ1UQ/s72-c/Add+row+with+jquery.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7215440885569094475.post-1882355611569861642</id><published>2015-12-28T03:33:00.000-08:00</published><updated>2015-12-28T03:33:21.992-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><category scheme="http://www.blogger.com/atom/ns#" term="Entity framework"/><title type='text'>Entity Framework Development Approaches</title><summary type="text">

This article is taken from msdn.microsoft.com, it was a necessary part so i provided the content here also.


The Entity Framework is the easiest ORM framework to learn for an ASP.NET developer. Because Microsoft continues to focus ORM development efforts on the Entity Framework, Microsoft and third parties continue to produce new tutorials, videos, and books. Most new tutorials use the Entity </summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/1882355611569861642/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2015/12/entity-framework-development-approaches.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/1882355611569861642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/1882355611569861642'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2015/12/entity-framework-development-approaches.html' title='Entity Framework Development Approaches'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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/AVvXsEhP9jku_xjy5be_jciEww-9rsjDo78rx7MAG4m5-ear6tJOsx1TRQqO7u8LPlAwxGoQtJcMVX0QRiZn8dhlzwvs9arRUjCW78YdcWXoSRuhu-VMUvZQRVupcaoFQ9EkS_8zx5GUdTdfAgY/s72-c/entityFramewrok.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7215440885569094475.post-2983957701654275255</id><published>2015-12-15T23:57:00.000-08:00</published><updated>2015-12-16T00:00:42.172-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Development"/><category scheme="http://www.blogger.com/atom/ns#" term="dropdown"/><title type='text'>How to make textbox, dropdownlist combination control using ajax combobox in asp.net</title><summary type="text">

Step 1 :

Add the AjaxControlToolkit Reference to your asp.net website and register its assembly on the required page.


&amp;lt;%@
Register
Assembly=&quot;AjaxControlToolkit&quot;
Namespace=&quot;AjaxControlToolkit&quot;
TagPrefix=&quot;asp&quot;
%&amp;gt;



Step 2:



Add the&amp;nbsp;ToolkitScriptManager above any ajax tool, using this code,




&amp;lt;asp:ToolkitScriptManager
ID=&quot;ToolkitScriptManager1&quot;
runat=&quot;server&quot;&amp;gt;

   
&amp;lt;/</summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/2983957701654275255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2015/12/how-to-make-textbox-dropdownlist-combination-control-using-ajax-combobox-extender-in-asp.net.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/2983957701654275255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/2983957701654275255'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2015/12/how-to-make-textbox-dropdownlist-combination-control-using-ajax-combobox-extender-in-asp.net.html' title='How to make textbox, dropdownlist combination control using ajax combobox in asp.net'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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-7215440885569094475.post-6005404335781244222</id><published>2015-12-10T03:08:00.000-08:00</published><updated>2015-12-10T03:08:44.796-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="validation"/><title type='text'>Using ValidatorCalloutExtender to Enhance RequiredFieldValidator to validate.</title><summary type="text">

Step 1 : First you require Ajaxtoolkit to be added to your &amp;nbsp;asp.net toolbox.

Step 2:&amp;nbsp;
Add the&amp;nbsp;RequiredFieldValidator control from toolbox for textbox control to validate.

Step 3:&amp;nbsp;
Add the&amp;nbsp;ToolkitScriptManager control from the toolbox just below the form tag.

Step 4:
Use the&amp;nbsp;ValidatorCalloutExtender control from the ajax toolkit tools which you have got after </summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/6005404335781244222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2015/12/using-validatorcalloutextender-to-enhance-RequiredFieldValidator-to-validate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/6005404335781244222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/6005404335781244222'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2015/12/using-validatorcalloutextender-to-enhance-RequiredFieldValidator-to-validate.html' title='Using ValidatorCalloutExtender to Enhance RequiredFieldValidator to validate.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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/AVvXsEjsy-cUZUo6PYPID0Bgn12U6hSLqNK9ncsoKJ3dsl30Iwh0ZroakY7gY-cohMbYZoysiAN8igj32EbYmgLTXb1fjOj6C3iRfg5yhcIxNv6U2psdVTXBU1HnkGU48c7GRX2Cd6mWncomLg0/s72-c/validation.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7215440885569094475.post-1594707246357712228</id><published>2015-12-09T23:13:00.000-08:00</published><updated>2015-12-09T23:13:31.162-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Development"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><title type='text'>How to pass repeater/any control from one page to another in asp.net?</title><summary type="text">

Step 1:

&amp;nbsp;Make two pages, one where the control (repeater) is present and another where you need to transfer it, namely source.aspx and destination.aspx.


Step 2:

At source.aspx page write down your control (repeater) and bind it, in my case i am passing the repeater, so that i could print it on another page, you can have other cases to use this functionality..

So at design page of </summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/1594707246357712228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2015/12/how-to-pass-repeater-any-control-from-one-page-to-another-in-asp.net.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/1594707246357712228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/1594707246357712228'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2015/12/how-to-pass-repeater-any-control-from-one-page-to-another-in-asp.net.html' title='How to pass repeater/any control from one page to another in asp.net?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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-7215440885569094475.post-8392034140257101355</id><published>2015-12-08T04:28:00.000-08:00</published><updated>2015-12-08T04:28:38.038-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Development"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><title type='text'>How to open new popup form  on gridview button click ? </title><summary type="text">


Step 1:

We will use ajaxtoolkit to open a new form on gridview button click or on normal button click.
You have to add reference to AjaxToolKit.dll, which you can found in the package of ajaxtoolkit from&amp;nbsp;ajaxcontroltoolkit.codeplex.com.

Step 2:
You can also add Ajax tools into the asp.net toolbox, and then you can directly use its control from there, or you can hard-code.
&amp;nbsp;First, </summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/8392034140257101355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2015/12/how-to-open-new-popup-form-on-gridview-button-click.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/8392034140257101355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/8392034140257101355'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2015/12/how-to-open-new-popup-form-on-gridview-button-click.html' title='How to open new popup form  on gridview button click ? '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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-7215440885569094475.post-501386077748974842</id><published>2015-12-03T02:32:00.000-08:00</published><updated>2015-12-28T03:36:25.214-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Development"/><category scheme="http://www.blogger.com/atom/ns#" term="dropdown"/><category scheme="http://www.blogger.com/atom/ns#" term="Entity framework"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><title type='text'>How to bind dropdown with multiple columns using entity framework?</title><summary type="text">


Problem:

We have to bind the table to the dropdown where we need the complete name as the text value of dropdown and emp_id as datavalue.








The name of dropdownlist is ddlRequestTo and the entity database object named context with tbl_employeePersonal





Solution:



private
void
bindRequestTo()


        {

           
ddlRequestTo.DataSource
= (from
emp in
</summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/501386077748974842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2015/12/how-to-bind-dropdown-with-multiple-columns-using-entity-framework.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/501386077748974842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/501386077748974842'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2015/12/how-to-bind-dropdown-with-multiple-columns-using-entity-framework.html' title='How to bind dropdown with multiple columns using entity framework?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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/AVvXsEgRi0DbHKQ45fKkbWGynPaf6XZ1L-QXhwlmbP4YlmZqiZKbck3zxCcPw61h81hfkgycNFIASwfIqMC43OHtbukRPgZ6xWyYFQ2IaAMCKWGr7REYroUY93cCgOFvdsSC_JvgNyhafPJprFM/s72-c/dropdown_bind.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7215440885569094475.post-7603208829096155803</id><published>2015-11-30T05:09:00.000-08:00</published><updated>2015-11-30T05:09:31.203-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Development"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><title type='text'>How to bind gridview using entity framework from designer and backend code ?</title><summary type="text">



Using Designer



Step 1:



Create gridview instance on the page where you want your gridview :




&amp;lt;asp:GridView
ID=&quot;grdEducation&quot;
runat=&quot;server&quot;
&amp;gt;&amp;lt;/asp:GridView&amp;gt;




Step 2:



Move to design page, you will get something like this :







Step 3:



Click on the arrow shown in the image, you will be provided with this form:











Here i have selected Entity and given it </summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/7603208829096155803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2015/11/how-to-bind-gridview-using-entity-framework-from-designer-and-backend-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/7603208829096155803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/7603208829096155803'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2015/11/how-to-bind-gridview-using-entity-framework-from-designer-and-backend-code.html' title='How to bind gridview using entity framework from designer and backend code ?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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/AVvXsEjqSEKYqJaQJQBRSNZaWpmQaxAqLZkFe-T6EUt_9m0dOm5AaIsh3r7VdE4czWOatPBsM_Jbc6UQQs4XEocJRarB0zhgsq8mj9MXGWmuaQfN0cVdUzJV4uzNAZguJhyiLZ8vQcdW6MlzcQs/s72-c/bindGridview1.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7215440885569094475.post-535614523243377066</id><published>2015-11-29T23:34:00.000-08:00</published><updated>2015-12-28T03:36:50.923-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Development"/><category scheme="http://www.blogger.com/atom/ns#" term="dropdown"/><category scheme="http://www.blogger.com/atom/ns#" term="Entity framework"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><title type='text'>How to Bind Dropdownlist in Asp.net using entity framework</title><summary type="text">

Question :

How can we bind dropdown list in Asp.net from a table (tbl_department) using entity framework where tbl_department consist of departmentId and departName ?





Solution

Designer.aspx




&amp;lt;asp:DropDownList
ID=&quot;ddlDepartment&quot;
runat=&quot;server&quot;
AutoPostBack=&quot;true&quot;&amp;gt;



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





code.cs





db_EmployeeManagEntities
context = new
db_EmployeeManagEntities();



</summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/535614523243377066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2015/11/how-to-bind-dropdownlist-in-aspnet-using-entity-framework.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/535614523243377066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/535614523243377066'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2015/11/how-to-bind-dropdownlist-in-aspnet-using-entity-framework.html' title='How to Bind Dropdownlist in Asp.net using entity framework'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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-7215440885569094475.post-9017801909141297505</id><published>2015-11-21T02:32:00.002-08:00</published><updated>2015-11-21T02:32:22.017-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Extension Methods in C#</title><summary type="text">

Extension methods enable you to &quot;add&quot; methods to existing types without creating a new derived type, recompiling, or otherwise modifying the original type.


How Do We Create Extension Methods?




Step 1: Create the Static Class



Step 2: Create the Static Method and give any logical name to it.&amp;nbsp;



Step 3: In the Extension Method Parameter, just pass this along with the object type.



</summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/9017801909141297505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2015/11/extension-methods-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/9017801909141297505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/9017801909141297505'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2015/11/extension-methods-in-c.html' title='Extension Methods in C#'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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-7215440885569094475.post-4849329182634075669</id><published>2015-11-20T02:28:00.000-08:00</published><updated>2015-11-20T02:34:18.576-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Thread Pooling in C#</title><summary type="text">

Thread pooling is the process of creating a collection of threads during the initialization of a multi-threaded application, and then reusing those threads for new tasks as and when required, instead of creating new threads.

Once a thread in the pool completes its task, it is returned to a queue of waiting threads, where it can be reused. This reuse enables applications to avoid the cost of </summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/4849329182634075669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2015/11/thread-pooling-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/4849329182634075669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/4849329182634075669'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2015/11/thread-pooling-in-c.html' title='Thread Pooling in C#'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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-7215440885569094475.post-2527276548917262251</id><published>2015-11-18T23:57:00.000-08:00</published><updated>2015-11-19T23:32:21.943-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Threading Overview in C#</title><summary type="text">



What threads really are ?





A thread is a sequence of instructions executed within the context of a process. One can also say threads are the smallest possible part of the process that can be handled or controlled independently by a scheduler.



Multiple threads within a process share the memory, execution instruction, context data and other system resources.









Multi-threaded </summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/2527276548917262251/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2015/11/threading-overview-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/2527276548917262251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/2527276548917262251'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2015/11/threading-overview-in-c.html' title='Threading Overview in C#'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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/AVvXsEiwza-mzhAsAuUMDtkckF_ijAZkd4SE-R-R-bvW9PQXM740dP4UlxeOFuceuMqx7lc58Qgr90VGE1zjOHXajV1L3JOdEkM5Zk_7zZXGPpRsAqNpc9nMniiKjtxI1c2gmrqz2z_Y7GJeB4s/s72-c/Thread+basic.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7215440885569094475.post-176541182137198703</id><published>2015-11-07T03:34:00.000-08:00</published><updated>2015-11-19T22:55:07.601-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Delegate In C# With Example</title><summary type="text">

Delegate is a type which &amp;nbsp;encapsulate a reference to a method inside a delegate object. Delegate are object-oriented, type-safe, and secure.


If this is our method :



 public
int
add(int
a, int
b)

        {

           
return
a + b;

        }











&amp;nbsp;To make reference to the method (add).&amp;nbsp;



&amp;nbsp;First we need to define the delegate to make its object (obvious).





</summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/176541182137198703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2015/11/delegate-in-c-with-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/176541182137198703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/176541182137198703'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2015/11/delegate-in-c-with-example.html' title='Delegate In C# With Example'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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-7215440885569094475.post-8505741937605750967</id><published>2015-11-05T22:20:00.000-08:00</published><updated>2015-11-19T22:56:36.649-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Development"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><title type='text'>Validating Currency and Number upto 4 decimals</title><summary type="text">



Question :

I would like to validate whether a string satisfy the following currency format with maximum 4 decimal places and could allow &#39;,&#39; regardless of culture.
Eg:
2,000,000(valid)
200000.0000(valid)
200 (valid)
200.00000(invalid)

How could it be done?





Solution :

I have tried this on a web application :



design page :


&amp;lt;asp:TextBox ID=&quot;txtNumber&quot; runat=&quot;server&quot;&amp;gt;&amp;lt;/</summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/8505741937605750967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2015/11/validating-currency-and-number-upto-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/8505741937605750967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/8505741937605750967'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2015/11/validating-currency-and-number-upto-4.html' title='Validating Currency and Number upto 4 decimals'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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-7215440885569094475.post-8202891873095254653</id><published>2015-11-05T03:53:00.000-08:00</published><updated>2015-12-03T02:39:59.208-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Development"/><category scheme="http://www.blogger.com/atom/ns#" term="dropdown"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><title type='text'>How to bind dropdownlist at page load in asp.net ?</title><summary type="text">



Design Code :


&amp;lt;asp:DropDownList ID=&quot;ddlName&quot; runat=&quot;server&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AutoPostBack=&quot;true&quot;&amp;gt;

&amp;nbsp; &amp;nbsp; &amp;lt;/asp:DropDownList&amp;gt;


Note : AutoPostback is marked true.







At .cs&amp;nbsp;


&amp;nbsp; protected void Page_Load(object sender, EventArgs e)
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!IsPostBack)
&amp;nbsp; &amp;nbsp; &amp;nbsp; </summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/8202891873095254653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2015/11/how-to-bind-dropdownlist-at-page-load.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/8202891873095254653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/8202891873095254653'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2015/11/how-to-bind-dropdownlist-at-page-load.html' title='How to bind dropdownlist at page load in asp.net ?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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-7215440885569094475.post-5057635015053288839</id><published>2015-11-04T03:38:00.000-08:00</published><updated>2015-11-04T03:40:08.404-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Development"/><title type='text'>File validation on size and extension</title><summary type="text">


When you provide fileUpload button to let user upload some file, you surely require to validate the file extension and size of file.


Getting File Extension :

string fileExt = Path.GetExtension(fileUpload1.FileName);
//Here fileUpload1 is the fileUpload button id.

Now you can check this extension with the required extension.



Getting File Size :

&amp;nbsp;&amp;nbsp;double fileSize = fileUpload1.</summary><link rel='replies' type='application/atom+xml' href='http://csharpimp.blogspot.com/feeds/5057635015053288839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpimp.blogspot.com/2015/11/file-validation-on-size-and-extension.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/5057635015053288839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7215440885569094475/posts/default/5057635015053288839'/><link rel='alternate' type='text/html' href='http://csharpimp.blogspot.com/2015/11/file-validation-on-size-and-extension.html' title='File validation on size and extension'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07044040065415530822</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>