Articles - Microsoft.net

0

Like

Error handling code can be a drag but the simple fact is that everyone needs to write it because runtime errors can and do occur. Developing a Silverlight app is no different here, exceptions will occur and you as a developer will need to deal with them.

One of the common things in Silverlight is communicate with a server through WCF and as soon as we start executing code on the server that is just another place where errors can occur. No big deal you might think as that is the same with any other application using WCF. Well the fact that it will also happen in other applications is certain ...Read more
Posted by: Teena
On 29 Sep 2011 | Views: 733 | Categories: WCF
0

Like

hese days, Web sites are providing access to a large amount of data, everything from RSS feeds to pictures to movie titles and more. Often, all you need to do in an application is send an HTTP request to a Web site. The Web site sends the data back via XML, and the easiest way to work with that data is to use LINQ queries. In this episode, Robert shows you how to use LINQ to XML to make sense of the XML data a Web site sends you. He gives examples of working with an RSS feed, retrieving images from Flickr, querying for wineries and wines using Wine.com, and returning movies from NetFlix. You& ...Read more
Posted by: Teena
On 29 Sep 2011 | Views: 686 | Categories: Linq
1

Like

The first thing you may be wondering is how in the world we're going to highlight a user's search criteria. Rather than delve into the specifics in this article, I will point you to two other excellent articles here on 4Guys that explain these topics. First, take a gander at Richard Lowe's Common Applications of Regular Expressions, which illustrates how to use regular expressions such functionality can easily be incorporated through the use of regular expressions. (You may also wish to check out and this live demo.) As Richard's article shows, highlighting selected words is fa ...Read more
Posted by: Michael
On 26 Sep 2011 | Views: 671 | Categories: ASP.NET
0

Like

The Dynamic Language Runtime (DLR) from Microsoft is an ongoing effort to bring a set of services that run on top of the Common Language Runtime (CLR) and provides language services for several different dynamic languages. These services include:

A dynamic type system, to be shared by all languages utilizing the DLR services

Dynamic method dispatch

Dynamic code generation

Hosting API ...Read more
Posted by: Michael
On 26 Sep 2011 | Views: 1062 | Categories: DLR
0

Like

The dynamic language runtime (DLR) is a runtime environment that adds a set of services for dynamic languages to the common language runtime (CLR). The DLR makes it easier to develop dynamic languages to run on the .NET Framework and to add dynamic features to statically typed languages.

Dynamic languages can identify the type of an object at run time, whereas in statically typed languages such as C# and Visual Basic (when you use Option Explicit On) you must specify object types at design time. Examples of dynamic languages are Lisp, Smalltalk, JavaScript, PHP, Ruby, Python, ColdFusion, Lu ...Read more
Posted by: Michael
On 26 Sep 2011 | Views: 1047 | Categories: DLR
1

Like

My first article in this series focused on how to have Multiple submit buttons in the same ASP.NET MVC form, and how to differentiate them in your action method. If you missed it you can read it here. The second part focused on how to do this with Ajax. If you want to hijack your form and post it via Ajax, you need to do some extra work. Controls that have a name attribute are posted as part of the form because they’re a successful control. However when you use Ajax to post a form, only successful controls are serialized into string. Submit buttons aren’t serialized seeing as though the form w ...Read more
Posted by: Michael
On 24 Sep 2011 | Views: 1020 | Categories: MVC, ASP.NET
2

Like

Everybody knows Razor is the new view engine ASP.NET Web Pages, so I thought I’d write about some Razor syntax you may not be aware of. The three methods I’ll be focusing on today are RenderBody, RenderPage and RenderSection. You’ll need to understand how each of these work if you want to get know the Razor syntax intimately. This code also works in WebMatrix if you're using it. ...Read more
Posted by: Michael
On 24 Sep 2011 | Views: 1416 | Categories: MVC, ASP.NET
1

Like

When you’re working with MVC, you sometimes work with partial views. With the new Razor view engine, partial views can be called through the RenderPage method. RenderPage renders the content of one page within another page. What isn’t obvious from the beginning is how to access data that is passed into the partial page. I thought I’d do a quick article and show you how. This code also works in WebMatrix if you're using it. If you want to know more about RenderPage ...Read more
Posted by: Michael
On 24 Sep 2011 | Views: 703 | Categories: MVC, ASP.NET
1

Like

I’ve created an example project that uses the jQuery library to create an ajax enabled ASP.NET MVC website. Generally what this project does:

•Load views through ajax (with back-button support)

•Do ajax-style form-posts and retrieve only the messages, errors and updated content

•Do json form-posts and retrieve the errors and messages as a json object
Here are the quicklinks for all you people who don’t want to read the story. ...Read more
Posted by: Michael
On 24 Sep 2011 | Views: 845 | Categories: MVC, jQuery, AJAX
1

Like

The JQuery has the following methods that can be used to perform Ajax requests:

ajax() - Load a remote page using an HTTP request. This is jQuery's low-level AJAX implementation.

load() - Load HTML from a remote file and inject it into the DOM.
get() - Load a remote page using an HTTP GET request.

getJSON() - Load JSON data using an HTTP GET request.

getScript() - Loads, and executes, a local JavaScript file using an HTTP GET request.

post() - Loads HTML by performing an HTTP post request. ...Read more
Posted by: Michael
On 23 Sep 2011 | Views: 749 | Categories: MVC, AJAX
Page 81 of 89
Other lins

.Net Techies
Other lins