New Real-Time Data Streaming and Data Factory Services in Azure

The last three weeks has been a busy day for Azure. Two weeks ago, they have announced a partnership with Docker to enable great containeer-based development experiences on Linux, Windows Server and Microsoft Azure. Last week, Azure held a Cloud Day even and announced the new G-Series of  Virtual Machines as well as Premium Services offering.

Now, Azure announced new services that have just been released in Azure Data Space. These are:

Event Hubs

Stream Analytics

Data Factory

Azure Event Hub is now available but Azure Stream Analytic and Data Factory services are available in public preview.

Read the rest of the article here: http://weblogs.asp.net/scottgu/azure-announcing-new-real-time-data-streaming-and-data-factory-services

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

ASP.NET Expired Session Problem

Most ASP.NET application are using sessions, particularl y data driven application. These kinds of applications are using “Inproc” mode of session. During the development phase, the developer does not face any of the problems with session. When the application is deployed, this problem arise one by one. This post will share and highlight some thoughts about expired session problems.

This usually happens in a shared hosting solution where the session is shared between the user and the session is about to expire. Usually the session timeout is set to 20 minutes so if you have an application that is tightly couple with Session, this means that you’ll have a bigger problem with expired sessions.

Read the rest of the post here: http://www.codeproject.com/Tips/834184/ASP-Net-Session-Expired-Problem

 

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Sudoku Game Using VB.NET 2013

Sudoku is a poplar game before that has been the favorites of most people who prefer spending time thinking critically. Like chess or any other puzzle games, Sudoku has also paved its way to the web, newspapers and even in mobile devices like Android and iOS. If you want to build your own Sudoku game, this tutorial is for you.

A basic Sudoku  game is played on a 9×9 grid that are subdivided into 3×3 mini grids. The game starts out with some cells filled with numbers from 1 to 9. The objective of the game is to fill the blank cells and each grid should contain the same number only once.

This article also describes how the game is put together as well as the background on the design and code decisions that the author has made along the way.

Read the rest of the post here: http://www.codeproject.com/Articles/832156/Complete-Sudoku-Game-for-Windows-using-VB-Net

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Top Features of ASP.NET vNext

ASP.NET vNext is the upcoming version of ASP.NET. This version has been redesigned from the ground up. It has been designed to provide users with a lean and composable .NET stack for building cloud-based apps. Expect that applications will be faster, more modular and consumes less memory. .NET vNext is the next major release of .NET Framework. This version will have a cloud-optimized mode which will have a similar clone of the Famework comared to the full .NET Framework, ASP.NET will be built on .NET vNext.

 

Explore the rest of the features of ASP.NET vNExt. Read the rest of the post here: http://www.codeproject.com/Articles/832778/Top-Features-of-ASP-NET-vNext

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Send Data From JavaScript to C# Server Code

This post describes how to send data from a JavaScript client to a C# handler on the server. The article will guide you through the development of small ASP.NET application that enables to send a JSON Data from a HTML page to a C# server code handler.

This assumes that you are an intermediate developer with some basic knowledge in C# and ASP.NET.

 

First, open Visual Studio then choose C# > Web > ASP.NET application then select Empty.

If using Visual Studio 2013, it will generate an empty ASP.NET project for you.

Add a new HTML and paste the following code:

<label id="From" />How to send Data from JavaScript to C# Handler<br />
    <table>
        <tr>
            <td><label id="From"/>From : </td>
            <td><input id="TxtFrom"></td>
        </tr>
        <tr>
            <td><label id="To"/>To : </td>
            <td><input id="TxtTo" required="required"></td>
        </tr>
        <tr>
            <td><label id="To" />Body : </td>
            <td><textarea id="TxtBody" required="required" 
            rows="10" cols="30"></textarea></td>
        </tr>
        <tr>
            <td/>
            <td style="align-content:flex-end">
                <button onclick="loadJsonData();">Send Data to the Server</button>
            </td>
        </tr>
</table>


Read the rest of the code here: http://www.codeproject.com/Tips/832696/How-to-send-Data-from-JavaScript-to-Csharp-Server

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

JQuery Plugin for Watching CSS Styles and Attributes

Years ago, the author wrote a small JQuery plug-in that is used to monitor changes to CSS styles of a DOM element. This plug-in allows for monitoring CSS styles and attributes on an element and get notified if the monitored CSS style changed. This is useful to sync up to objects or take actions when certain conditions are true after an element update.

However, this was years ago and old APIs have now been  depreciated by some browsers. There has always been a fallback but it is proved to be inefficient.

In this post, the author updated and created a new version of the jquery-watch plug-in. He also added a few features like the ability to monitor attributes and CSS styles and moving the code to a GitHub repository along with a better documentation. This now works with newer APIs that are supported by most modern browsers.

Read the rest of the post here: http://www.windowshostingplans.com/wp-admin/post-new.php

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Add Checkbox Column to GridView in ASP.NET

Oftentimes, we need to give users a checkbox in the GridView which let the users select multiple rows from the GridView. We can do that in WindowsForms, but in this post, we’ll see how you can add a CheckBox column to an existing GridView control in ASP.NET.

Before you get started, you should already have a GridView with existing set of columns that are populated with data.

Here’s a definition of the Gridview of the ASPX page:

<asp:gridview ID="grdData" runat="server" AutoGenerateColumns="False" CellPadding="4" CssClass="grdData"
            ForeColor="#333333" GridLines="None" Width="200">
            <alternatingrowstyle BackColor="White" ForeColor="#284775"></alternatingrowstyle>
            <columns>
                <asp:boundfield DataField="ID" HeaderText="ID"></asp:boundfield>
                <asp:boundfield DataField="Name" HeaderText="Name"></asp:boundfield>
            </columns>
            <editrowstyle BackColor="#999999"></editrowstyle>
            <footerstyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White"></footerstyle>
            <headerstyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White"></headerstyle>
            <pagerstyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center"></pagerstyle>
            <rowstyle BackColor="#F7F6F3" ForeColor="#333333"></rowstyle>
            <selectedrowstyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333"></selectedrowstyle>
            <sortedascendingcellstyle BackColor="#E9E7E2"></sortedascendingcellstyle>
            <sortedascendingheaderstyle BackColor="#506C8C"></sortedascendingheaderstyle>
            <sorteddescendingcellstyle BackColor="#FFFDF8"></sorteddescendingcellstyle>
            <sorteddescendingheaderstyle BackColor="#6F8DAE"></sorteddescendingheaderstyle>
        </asp:gridview>

 
Read the rest of the post here: http://www.codeproject.com/Articles/830795/How-To-Add-A-CheckBox-Column-to-GridView-in-ASP-Ne
 

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Integrate Full Text Search to Spring MVC using Hibernate

For a full text search to the web app, there are several approaches available:

Add a customized SQL dialect for the Hibernate and use MYSQL or any SQL DB full text search functionality.

Use hibernate search and integrate with existing Spring MVC app.

 

Although it is recommended to not use the first approach as it is not portable. Which means, using the second approach is the best approach. This article intends to track all the information and give the audience a good working copy of the app.

Read the rest of the tutorial here:http://www.codeproject.com/Articles/830529/Integrating-Full-Text-Search-to-Spring-MVC-with-Hi

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Model Validation in MVC4

The most common web application security flaw is the failure to properly validate input from the client or the environment. Date from the client should never be trusted as the client has every possibility to tamper with the data. You need to ensure that the data is not only validated, but the business rule is correct.

In this article, we’ll tackle model validation in MVC4 using the following approaches:

Big Data Annotations

Using ModelState object

Using Fluent Validation package

Using JQuery Validation plug-in.

First, lets create an application with a simple model, view and controller. After that we apple the different approaches to validate data.

Read the rest of the post here: http://www.windowshostingplans.com/wp-admin/post-new.php

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS