Introduction to Lucene.NET

Lucene.NET is an exact port to the original Lucene search engine library that is written in C#. It provides a framework (APIs) for creating applications in a full text search. You can add more power to your existing search in your ASP.NET web application or website.

Any sarch function is made up of two easy steps, index the text and to search the text. Lucene.NEt does it both. This article describes how to use Lucene.NET to add a full text search in your ASP.NET applications.

 

Read the rest of the post here: http://www.codeguru.com/csharp/.net/net_asp/article.php/c16869/Introduction-to-LuceneNet.htm

Share and Enjoy

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

Unobtrusive Validation in ASP.NET 4.5 Web Forms

ASP.NET forms provided validation controls ever since its initial release. In the earlier releases, ASP.NET validation controls uses JavaScript emitted by the ASP.NET Web Form framework. However, this unontrusive validation makes use of data attributes of HTML5 for validation.

Unobtrusive validation makes use of JQuery library data-* attributes of HTML5 to validate web form controls. It can be enabled in the web.config file, Global.asax, with individual Web Form code-behind. With obtrusive validations which reduces the response size because no JavaScript is emitted in the page framework.

Read the rest of the news here: http://www.codeguru.com/csharp/.net/net_asp/using-unobstructive-validation-in-asp.net-4.5-web-forms.htm

Share and Enjoy

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

Use Cross Origin Resources (CORS) in ASP.NET Web API

As a security feature, AJAX prevents calls to resources that lives outside the current origin. Which means you can’t provide a service exposed by Web API to some origin. However, if you want to allow legitimate acces to a resource, this is where Cross Origin Resources (CORS) come in place.

CORS or Cross Engine Resource Sharing is a W3C standard that deals with the mechanism for making AJAX calls across various origins. ASP.NET Web API Supports CORS comes in the form of System.Web.Cors and System.Web.Http.Cors.
Read the rest of the post here: http://www.codeguru.com/csharp/.net/net_asp/using-cross-origin-resource-sharing-cors-in-asp.net-web-api.html

Share and Enjoy

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

AMQP Support With Windows Azure Service Bus

AMQP Support With Windows Azure Service Bus

For the past five years, Microsoft has been working with a lot of companies to develop an advanced Messaage Queing Protocol (AMQP) Standard. The group conists of tech vendors like Red Hat, VMWare, and enterprises like Credit Suisse and JPMorgan Chase. The goal is to build a protocol standard for messaging that enables easy messaging and interoperability.

Today, AMQP 1.0 has released with support for Windows Azure Service Bus. It is backed up by enterprise SLA and ready for production use.

With this release, you can use Windows Azure Service Bus to build applications that are using a variety of messaging libraries written in different languages on different operating systems.

And other features.

Read the rest of the post here: http://weblogs.asp.net/scottgu/archive/2013/05/23/announcing-the-release-of-amqp-support-with-windows-azure-service-bus.aspx

Share and Enjoy

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

WebMatrix 3 Released

WebMatrix is a free lightweight development tool that was first introduced in 2010. This tool provides great focus in web development experience in ASP.NET, PHP, and Node.js.

With today’s release of WebMatrix it already includes Windows Azure integration, souce control tooling for Git and TFS, and a new remote editing experience. What you can expect from WebMatrix 3 is a simple, super fast, and effective way to edit your sites and manage them in Windows Azure locally.

One of the most requested features in WebMatrix 2 before was version control but now WebMatrix 3 supports both Git and TFS. WebMatrix 3 now finds a way to providing an amazing developer experience for live remote editing of your sites.

Read the rest of the post here: http://weblogs.asp.net/scottgu/archive/2013/05/01/announcing-the-release-of-webmatrix-3.aspx

Share and Enjoy

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

Windows Azure SDK 2.0 Released

Microsoft has just released Microsoft Windows Azure SDK for .NET. With this major release, there are many great features and enhancements. The new capabilities include:

  • Cloud Services now support for new high memory VM sizes, faster cloud service publishing and visual studio tooling.
  • Storage client 2.0 is now included in the projects and visual studo explorer supports working with storage tables.
  • Service bus has now upgraded client library with messaging pump programming model support, support for messages, and auto-deleting messaging entities.
  • Powershell automation has now been updated PowerShell 3.0 with a lot of new PowerShell commands for automating websites, cloud services, VMs and more.
  • Visual Studio is now updated for publishing management and diagnostics.

Read the rest of the post here: http://weblogs.asp.net/scottgu/archive/2013/04/30/announcing-the-release-of-windows-azure-sdk-2-0-for-net.aspx

 

Share and Enjoy

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

How to Route using ASP.NET

ASP.NET platform was originally developed to serve request and physical pages. This approach worked for year and still works until today in the context of Web Forms. It was a useful pattern when sites were created for individual file-based pages linked together. We still have such pages but the problem is we have to create pages by aggregating data from different endpoints to both the client and the server.

As a solution, a new requirement was made, a HTTP-based endpoints which are capable of serving plain data serialized to JSON strings. This will require more control over the format of the URL.

This article will show you how to route the ASP.NET way: https://www.simple-talk.com/dotnet/asp.net/routing-the-asp.net-way/

Share and Enjoy

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

How to Create an OpenXML Word File in .NET

Microsoft Office documents are an important factor in your application because it builds a more standard method of representing a tabular or multi format data. It is also the standard type for that application making it the best format to use.

Office file formats before where really hard to transfer from one company to another. This is because file formats before were proprietary, meaning a company might be using that file format but the other company isn’t.

To solve this issue, openXML office document was created by Microsoft. OpenXML is simply a more reliable and flexible structured document that we can use in place of the proprietary documents.

If your documents are still in proprietary formats, now may be the time to change it to openXML for a more flexible way to manage documents. This article will show you how: https://www.simple-talk.com/dotnet/.net-tools/creating-an-openxml-word-file-with-.net/

Share and Enjoy

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

How to Call JavaScript in ASP.NET User Controls

In ASP.NET you can call server-side function on a user control. However, if you want to do some custom code if you want to call a JavaScript function that sits inside user control without performing a postback.

For example, you have a user control, Greeter which displays the message to the user. Now you’ll want to initiate the greting with some JavaScript outside the Greeter control.

Here’s the code for Greeter.ascx:
<%@ Control Language=”vb” %>

<%– Server-side code. –%>
<script runat=”server”>
Private _greeterName As String = Nothing

Public ReadOnly Property GreeterName As String
Get
If _greeterName Is Nothing Then
_greeterName = “Greeter_” + Guid.NewGuid.ToString(“N”)
End If
Return _greeterName
End Get
End Property
</script>

<%– JavaScript. –%>
<script type=”text/javascript”>
window[“<%= Me.GreeterName %>”] = function () {
var messageId = “<%= divMessage.ClientID %>”;
var messageElement = document.getElementById(messageId);
messageElement.style.display = “block”;
};
</script>

<%– Markup. –%>
<div runat=”server” id=”divMessage” style=”display: none;”>
Hello
</div>

If you want to learn more about how this can be done, read the rest of the post here: http://www.codeproject.com/Tips/595712/Call-JavaScript-in-an-ASP-NET-User-Control

Share and Enjoy

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

How to Develop ASP.NET Applications and Deploying it Into Windows Azure Cloud

The ASP.NET Framework for developing web applications has 2 options: ASP.NET Web Pages and ASP.NET MVC applications. ASP.NET is basically an alternative web application using the Microsoft .Net application framework. ASP.NET Framework is a framework that divides the application into three components, namely Model, View, and Controller.

In this article, we are going to use Microsoft Azure SDK 1.5 to build a sample application and deploying it into the cloud. Installing the Azure SDK means that you already have the MVC templates ready for creating an MVC 4 application.

http://dotnetslackers.com/articles/aspnet/Developing-ASP-NET-MVC-4-Application-and-Deploying-to-Windows-Azure-Cloud.aspx

Share and Enjoy

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