Creating Asynchronous Actions in ASP.NET MVC
15 April 14 12:15 PM | bipinjoshi

Asynchronous actions allow you to handle more concurrent requests and can be implemented using async / await keywords. Asynchronous actions are useful in situations where you are performing some network operation such as calling a remote service. This article discusses asynchronous actions and also shows how to create them in an ASP.NET MVC.

http://www.binaryintellect.net/articles/933eb468-cec4-4c34-8d47-7c1d549a5927.aspx

 

Problem setting the default value for ASP.NET MVC DropDownList
10 April 14 08:30 AM | bipinjoshi

Recently one of the readers reported a problem that the DropDownList helper is not working as expected. The problem was resolved by slightly tweaking the code but since it sounded like a tricky thing that many beginners would stumble upon I am writing this post. Let's see what the problem is, its cause and finally the little tweak that I mentioned earlier.

http://www.binaryintellect.net/articles/69395e7d-7c7c-4318-97f5-4ea108a0da97.aspx

 

Filed under: ,
Using LinkedIn JavaScript API for User Authentication and Profile Retrieval
07 April 14 08:24 AM | bipinjoshi

Integrating third-party sign-in with a website is quite common these days. Just like Facebook and Twitter, LinkedIn too allows you to ingrate LinkedIn authentication with your own website. One simple way to achieve such an integration is to use LinkedIn JavaScript API. Using this API you can authenticate a user with their LinkedIn credentials and also retrieve their profile and connection information. Once retrieved you can use that information to integrate LinkedIn authentication with your website's security and membership framework.

http://www.binaryintellect.net/articles/32851c88-670b-44d3-9ce8-ca06307b99be.aspx

 

Filed under: , ,
One Time Event Handlers using jQuery and ASP.NET
03 April 14 07:31 AM | bipinjoshi

Most of the times the JavaScript event handlers attached with an element fire every time the event under consideration is raised. For example, if you wire a click event handler to the click event of a button then clicking that button will invoke the event handler function every time. At times, however, this behavior is undesirable. You can unsubscribe the click event handler when it gets executed the first time. That means you need to create event handlers that fire only one time. Luckily, jQuery provides an inbuilt way to accomplish this task - one() method.

http://www.binaryintellect.net/articles/73afbd2e-aad8-4571-b4de-48e9521f79a6.aspx

Filed under: , ,
Using Attribute Routing in ASP.NET MVC
27 March 14 11:53 AM | bipinjoshi

ASP.NET MVC maps a URL to an action method through what is known as Routing. By default an ASP.NET MVC URL includes a controller and an action name where the request finally lands. However, you can customize many aspects of a route such as root prefix and route parameters. ASP.NET MVC 5 allows you to define routes through certain attributes. This attribute routing is simpler and more intuitive than the older technique of defining routes because a route definition is closer to the controller and its action method. This article discusses how attribute routing can be used with examples.

http://www.binaryintellect.net/articles/6d43c5ca-d16d-4227-98c0-7edc50495349.aspx

 

Filed under: ,
Performing Asynchronous Operations Using Entity Framework
24 March 14 11:01 AM | bipinjoshi

Asynchronous programming involves executing operations in the background so that the main thread can continue its own operations. This way the main thread can keep the user interface responsive while the background thread is processing the task at hand. .NET framework introduced the async and await keywords that simplify asynchronous programming. Entity Framework 6.0 also supports asynchronous operations for querying and saving of the data. This article discusses the basics of using asynchronous operations of Entity Framework in desktop as well as web applications.

http://www.binaryintellect.net/articles/879473a3-af55-485b-bbab-6cceb1713cac.aspx

Handling Errors in ASP.NET MVC Applications
18 March 14 08:54 AM | bipinjoshi

No matter how proficiently you developed your application there are chances that your code may not work as expected and will generate an error at runtime. Users may enter some invalid data, mathematical calculations can go wrong, some network level fault may cause errors and more. That is why it is always a good idea to implement a robust error handling mechanism in your web application. To that end ASP.NET MVC offers several techniques that help you build such an error handling mechanism. This article discusses them with examples.

http://www.binaryintellect.net/articles/42d95c5a-c885-4335-a494-8c3a47931dff.aspx

 

Filed under: ,
Introduction to Bootstrap
13 March 14 08:09 AM | bipinjoshi

With the increasing popularity of mobile devices, web developers are required to think about their website design for mobile devices from the beginning of a development project. Developing web applications targeting multiple devices can be challenging. Web developers often resort to third-party frameworks for features such as theming, widgets and responsive design. One such handy, popular and open source framework is Bootstrap. Using Bootstrap you can develop responsive websites without bothering too much about CSS. It provides a rich CSS framework that you can customize if the need arises. Adding common web page elements such as navigation menus, buttons, form elements and typography is quite easy with Bootstrap. This article is intended to give you a basic understanding of Bootstrap so that you can start using it in your web applications.

http://www.binaryintellect.net/articles/0031d6af-e779-4b56-9fd9-1e2ea5349b5a.aspx

 

Filed under: , ,
Back to Basics : Working with Debug Windows in Visual Studio
05 March 14 09:54 AM | bipinjoshi

Debugging is an important skill that every developer needs to acquire. .NET developers have a powerful debugger of Visual Studio at their disposal. Visual Studio offers many windows that can be used during the debugging session. Knowing these windows is essential for efficient debugging. To that end this article discusses some of the most commonly used debug windows of Visual Studio.

http://www.binaryintellect.net/articles/71a84778-0a0b-4674-9409-1755acb1f382.aspx

 

Introduction to CSS3 Media Queries
03 March 14 08:11 AM | bipinjoshi

With the increasing popularity of mobile devices, web developers are required to ensure that their website renders well on different devices. One important aspect in such a rendering is applying different CSS rules to different requesting devices. To that end CSS3 media queries allow you to apply CSS rules depending on the media type and its capabilities. This article examines what CSS3 media queries are and how to use them in your web pages.

http://www.binaryintellect.net/articles/a2a17152-a98f-4094-baef-5a79b51385e9.aspx

 

Filed under: , ,
More Posts Next page »