jalpesh

Stories submitted by jalpesh

LinqDatasource A Great Control for declarative programming(jalpesh.blogspot.com)

submitted by jalpeshjalpesh(1347) 1 year, 8 months ago

I have used data source control many times and its great it provides us great features for declarative binding. LinqDataSource Control is a great control and it allows us to bind linq queries without writing any code declaratively. Let’s create a example in that example I am not going to write a single line of code and we are going to create view,Update and Delete functionality. So first we need a table which will have data. So, I am going to use the same table which I have used in my old posts. Below i... read more...

add a comment |category: |Views: 2

tags: another

Calling an asp.net web service from jQuery(jalpesh.blogspot.com)

submitted by jalpeshjalpesh(1347) 1 year, 8 months ago

As I have post it in earlier post that jQuery is one of most popular JavaScript library in the world amongst web developers Lets take a example calling ASP.NET web service with jQuery . You will see at the end of the example that how easy it is to call a web service from the jQuery. Let’s create a simple Hello World web service. Go to your project right click->Add –> New Item and select web service and add a web service like following. Now modify the code of web service like following.[WebService(Name... read more...

add a comment |category: |Views: 7

tags: another

jQuery- JavaScript Library Write less do more(jalpesh.blogspot.com)

submitted by jalpeshjalpesh(1347) 1 year, 9 months ago

This is introductory post jQuery an open source JavaScript library. I know what you guys thinking and I also know that jQuery does not required introduction. It is so much popular and most of web developers whether they are developing using asp.net,php,Jsp or any language on web they are using jQuery but this post is for who is not aware of it and or they are new to the web based programming. We all are using JavaScript for client side scripting language almost 95% percentage of web application uses Ja... read more...

add a comment |category: |Views: 49

tags: another

Using Let Keyword in Linq(jalpesh.blogspot.com)

submitted by jalpeshjalpesh(1347) 1 year, 9 months ago

I am using Linq-To-Object in my current project to remove some extra loops and I have found one of the great keyword in Linq called ‘Let’. Let keyword provides facility to declare a temporary variable inside the Linq Query.We can assign the result of manipulation to temporary variable inside query and we can use that temporary variable to another manipulation. Let’s take a simple example of Linq query I am using an integer array to find square and after finding the square of the integer value I will use... read more...

add a comment |category: |Views: 88

tags: another

Entity Framework 4.0- Bind Stored Procedure with Result Entity class(jalpesh.blogspot.com)

submitted by jalpeshjalpesh(1347) 1 year, 9 months ago

Microsoft Entity Framework version 4.0 is a brand new ORM(Object Relational Mapper) from Microsoft. It’s provides now some new features which are not there in the earlier version of Entity framework. Let’s walk through a simple example of a new features which will create a new Entity class based on stored procedure result. We will use same table for this example for which they have used earlier for Linq Binding with Custom Entity. Below is the table which have simple fields like first name,last name etc... read more...

add a comment |category: |Views: 94

tags: another

Visual Studio –>Add Database –> Named pipe Provider Error for SQL Serv(jalpesh.blogspot.com)

submitted by jalpeshjalpesh(1347) 1 year, 9 months ago

Recently I have been working on a article for my blog for that I just tried to add a database file on my solution with visual studio and I have received following error. An error has occurred while establishing a connection to the server. (provider: Named Pipes Provider, error: 40 – Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 5) An error has occurred while establishing a connection to the server. When connecting to SQL Server 2008, this failure may be caused by... read more...

add a comment |category: |Views: 2

tags: another

Reboot require check fails while installing SQL Server 2008 R2 Express(jalpesh.blogspot.com)

submitted by jalpeshjalpesh(1347) 1 year, 9 months ago

Before some days i was installing SQL Server 2008 R2 Express edition on my machine and every time when it runs checks for required settings it was failing giving error reboot required. I have rebooted my machine several time and result was same. After that i have search it on internet and found that was due to some registry settings. To pass this check you need to remove following entries.Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager Then find PendingFileRenameOperations an... read more...

add a comment |category: |Views: 3

tags: another

Range Operator in Linq.(jalpesh.blogspot.com)

submitted by jalpeshjalpesh(1347) 1 year, 11 months ago

Linq is almost providing all the functionalities and i have found one another great operator called range operator which will return a sequence of integer number from start point to number of count. Here is the signature of range operator in Linq. public static IEnumerable read more...

add a comment |category: |Views: 16

tags: another

Persisting row selection in data bound control like GridView,ListView(jalpesh.blogspot.com)

submitted by jalpeshjalpesh(1347) 1 year, 11 months ago

Some times we need show large amount of data like hundred of rows but its very difficult to show that in a single web page so we are using the paging mechanism of inbuilt data bound control of .NET Framework like GridView and ListView. But in paging of data bound control its very hard to remember the row selection like suppose you have selected a row in page 1 and then you goto the page2 and return back to page1 the selected row will not be there. So to do that thing you have right custom coding for tha... read more...

add a comment |category: |Views: 13

tags: another

Zip operator in Linq with .NET 4.0(jalpesh.blogspot.com)

submitted by jalpeshjalpesh(1347) 1 year, 11 months ago

Microsoft .NET framework 4.0 is having many features that make developers life very easy. Its also provides some enhancement to Linq also. I just found a great operator called Zip which merge the sequence of two entities. Here is the explanation of Zip Operator from MSDN. “The method merges each element of the first sequence with an element that has the same index in the second sequence. If the sequences do not have the same number of elements, the method merges sequences until it reaches the end of on... read more...

add a comment |category: |Views: 5

tags: another

Sum and Concat Operator operators in Linq.(jalpesh.blogspot.com)

submitted by jalpeshjalpesh(1347) 1 year, 11 months ago

Linq contains lots useful operators and i have found more two operators that can be help full in our day to day programming life. Here are explanation. Concat Operator: Concat operator concats two entities into single entities its very use full when we are doing some string operator where need to do string operations like concatenation. Here in example i have taken two arrays and concat into single entity. Sum Operator: When we are developing application like shopping cart and other stuff this operat... read more...

add a comment |category: |Views: 4

tags: another

Take,Skip and Reverse Operator in Linq(jalpesh.blogspot.com)

submitted by jalpeshjalpesh(1347) 1 year, 11 months ago

I have found three more new operators in Linq which is use full in day to day programming stuff. Take,Skip and Reverse. Here are explanation of operators how it works. Take Operator: Take operator will return first N number of element from entities. Skip Operator: Skip operator will skip N number of element from entities and then return remaining elements as a result. Reverse Operator: As name suggest it will reverse order of elements of entities. Here is the examples of operators where i have taken ... read more...

add a comment |category: |Views: 2

tags: another

Union,Except and Intersect operator in Linq(jalpesh.blogspot.com)

submitted by jalpeshjalpesh(1347) 1 year, 11 months ago

While developing a windows service using Linq-To-SQL i was in need of something that will intersect the two list and return a list with the result. After searching on net i have found three great use full operators in Linq Union,Except and Intersect. Here are explanation of each operator. Union Operator: Union operator will combine elements of both entity and return result as third new entities. Except Operator: Except operator will remove elements of first entities which elements are there in second e... read more...

add a comment |category: |Views: 28

tags: another

http://jalpesh.blogspot.com/2010/06/aspnet40-compatibility-settings-fo(jalpesh.blogspot.com)

submitted by jalpeshjalpesh(1347) 1 year, 11 months ago

With asp.net 4.0 Microsoft has taken a great step for rendering controls. Now it will have more cleaner html there are lots of enhancement for rendering html controls in asp.net 4.0 now all controls like Menu, List View and other controls renders more cleaner html. But recently i have faced strange problem in rendering controls I have my site in asp.net 3.5 and i want to convert it in asp.net 4.0. I have applied my style as per 3.5 rendering and some of items are obsolete in asp.net 4.0. Modifying style ... read more...

add a comment |category: |Views: 0

tags: another

ASP.NET 4.0- CompressionEnabled Property in session state 4.0(jalpesh.blogspot.com)

submitted by jalpeshjalpesh(1347) 1 year, 11 months ago

Hello Guys, This blog has been quite for few days. Because i was busy with some personal and professional work both and that’s why i am not able to work on writing blog posts which i have discovered in last few days. Here is one features of asp.net 4.0 that I am going to explain. As a web developer we all know about session. Without the use of session any database driven web application is incomplete. As we all know unlike windows form web forms are state less so when user interacts with web applicatio... read more...

add a comment |category: |Views: 5

tags: another

Two new profile in new visual studio 2010.(jalpesh.blogspot.com)

submitted by jalpeshjalpesh(1347) 2 years ago

Visual studio 2010 is a great tool and i have become fan of visual studio 2010. I have found two new code profile in visual studio 2010.Web Development Profile Web Development Code Optimized Profile. Web Development profile will hide the top bar which contains the client object and and event dropdowns. So it will have more spaces. Another one web development code optimized which will hide all the things except main windows. It will hide Toolbox,CSS properties and all other things so you will have mo... read more...

add a comment |category: |Views: 2

tags: another