samdnp

Stories submitted by friends of samdnp

Share C# Anonymous Types across Functions and Scope(blogs.msdn.com)

submitted by crpietschmanncrpietschmann(11.3k) 8 months, 28 days ago

So earlier today I was lamenting that an anonymous type can't be shared between functions with Wes Dyer, when he said "Well actually they can..." read more...

add a comment |category: |Views: 7

tags: another

Fun With jQuery Deferred(intridea.com)

submitted by crpietschmanncrpietschmann(11.3k) 1 year, 3 months ago

If you've upgraded to the recently released jQuery 1.5 you may have heard about the fancy new AJAX facilities that allow you to define things like this: var jax = $.ajax({ url: '/some/url' }) jax.success(function() { alert("It worked!");") }); read more...

add a comment |category: |Views: 27

tags: another

ASP.NET MVC Tip #48 – Disable Request Validation(stephenwalther.com)

submitted by crpietschmanncrpietschmann(11.3k) 1 year, 3 months ago

By default, the ASP.NET MVC framework prevents you from submitting form data that contains potentially malicious content. This feature is called request validation. This is a good feature. You don't want people sneaking scripts into your website that can steal passwords or other sensitive user information. Normally, you want to leave request validation enabled. Unlike a Web Forms application, you cannot disable request validation by using the <%@ Page ValidateRequest=”false” %> directive. You also cannot disable request validation in the web configuration (web.config) file. If you want to disable request validation then you must use the [ValidateInput] attribute. You apply the [ValidateInput] attribute to the controller action that accepts the form input. read more...

add a comment |category: |Views: 41

tags: another

ASP.NET MVC 3 RTM Released!(www.microsoft.com)

submitted by crpietschmanncrpietschmann(11.3k) 1 year, 4 months ago

ASP.NET MVC 3 is a framework for developing highly testable and maintainable Web applications by leveraging the Model-View-Controller (MVC) pattern. The framework encourages developers to maintain a clear separation of concerns among the responsibilities of the application – the UI logic using the view, user-input handling using the controller, and the domain logic using the model. ASP.NET MVC applications are easily testable using techniques such as test-driven development (TDD). The installation package includes templates and tools for Visual Studio 2010 to increase productivity when writing ASP.NET MVC applications. For example, the Add View dialog box takes advantage of customizable code generation (T4) templates to generate a view based on a model object. The default project template allows the developer to automatically hook up a unit-test project that is associated with the ASP.NET MVC application. Because the ASP.NET MVC framework is built on ASP.NET 4, developers can take advantage of existing ASP.NET features like authentication and authorization, profile settings, localization, and so on. read more...

1 comment |category: |Views: 212

tags: another

Use Non-default Membership Provider for WCF Authentication Service(msdn.microsoft.com)

submitted by crpietschmanncrpietschmann(11.3k) 1 year, 6 months ago

This topic shows how to programmatically select the membership provider when you call the ASP.NET authentication service by using Windows Communication Foundation (WCF). You can use a non-default membership provider when you have to authenticate users by using different membership providers, based on information that you get at run time. To authenticate through a non-default membership provider, you create an event handler for the Authenticating event. read more...

add a comment |category: |Views: 144

tags: another

ASP.NET MVC 3 Release Candidate published(weblogs.asp.net)

submitted by dotnetchrisdotnetchris(157) 1 year, 6 months ago

This morning the ASP.NET team shipped the ASP.NET MVC 3 RC (release candidate). You can download it here. read more...

add a comment |category: |Views: 6

tags: another

Silverlight Cached Assemblies and you can to!(timheuer.com)

submitted by crpietschmanncrpietschmann(11.3k) 1 year, 6 months ago

One of the new features I mentioned in my What’s new/changed post on Silverlight 3 is the fact that any application developer can take advantage of the cached assembly functionality provided by Silverlight. Let me show you how and start with the current situation. read more...

add a comment |category: |Views: 5

tags: another

Silverlight: Embed IronRuby/DLR Scripting within XAML using IValueConv(pietschsoft.com)

submitted by crpietschmanncrpietschmann(11.3k) 1 year, 7 months ago

After I wrote the “Intro to IronRuby/DLR Scripting in C# Silverlight 4 Application” post, I came across an interesting series on embedding DLR scripts in XAML with WPF. This is an interesting series, although the code doesn’t run in Silverlight, due to the fact that Silverlight is only a subset of WPF and doesn’t support the System.Windows.Markup.MarkupExtension class. I test out a couple things in Silverlight, and I was able to get similar DLR scripting functionality working under Silverlight using a combination of a simple, custom IValueConverter and a custom UserControl class. read more...

add a comment |category: |Views: 16

tags: another

Dynamic XAP Discovery with Silverlight MEF (www.wintellect.com)

submitted by crpietschmanncrpietschmann(11.3k) 1 year, 7 months ago

What's missing, it seems, is a mechanism to dynamically discover the XAPs that are available on the server. If I'm using MEF to support a plug-in architecture, for example, I might want to drop a XAP containing a new plug-in into a folder on the server and have the plug-in automatically show up in my browser the next time the application runs. MEF won't do that on its own, but it will if you lend it a helping hand. After discussing various ways to do dynamic discovery in MEF with Jeremy Likness, I wrote a sample to demonstrate a technique based on passing InitParams to the Silverlight control. The technique is pretty simple. You begin by modifying the ASPX file that hosts your Silverlight application. First, you add an empty InitParams <params> element to the <object> element that instantiates the Silverlight control, and you include an ID and a runat="server" attribute so you can manipulate the element from server-side code: read more...

add a comment |category: |Views: 45

tags: another

Intro to IronRuby/DLR Scripting in C# Silverlight 4 Application(pietschsoft.com)

submitted by crpietschmanncrpietschmann(11.3k) 1 year, 7 months ago

I thought I’d share what I’m learning about adding IronRuby scripting to Silverlight 4 applications. I’m also focusing on C# as the host language, but the .NET object and methods used will be the same from VB.NET. read more...

add a comment |category: |Views: 18

tags: another

Embedding DLR Scripts in XAML- Part 2, A Simple DLR Markup Extension(www.thinkbottomup.com.au)

submitted by crpietschmanncrpietschmann(11.3k) 1 year, 7 months ago

This article demonstrates how to embed DLR scripts in XAML using a custom MarkupExtension. The scripting language can be any language supported by the DLR, such as Python or Ruby. read more...

add a comment |category: |Views: 20

tags: another

Your Software Can Learn A Lot From ATMs(www.codethinked.com)

submitted by justin_etheredgejustin_etheredge(8539) 1 year, 8 months ago

When it comes to ATMs, failure isn't really an option. But how do they accomplish their high reliability? And how can you leverage that in order to make your software better? read more...

1 comment |category: |Views: 278

tags: another

OpenID for ASP.NET MVC, A Quick Setup(andrewblogs.com)

submitted by beckelmwbeckelmw(2755) 1 year, 8 months ago

If you need to get your ASP.NET MVC website setup with some basic OpenID Authentication, I can help get you started. All you need is a DLL, a view, and two controller actions. read more...

add a comment |category: |Views: 228

tags: another

Use New Bing Maps Road Imagery In Silverlight Map Control(pietschsoft.com)

submitted by crpietschmanncrpietschmann(11.3k) 1 year, 9 months ago

Recently the consumer facing Bing Maps site changed the map imagery that is displayed for the Road map mode. This map imagery has not been officially made available for Bing Maps for Enterprise developers to use within their applications. The imagery is only officially available to the Bing Maps consumer website. Unofficially, you can still access the imagery if you know the URL format to get it. Below is an example of using the URL format for the new imagery to display it within the Bing Maps Silverlight Control. read more...

add a comment |category: |Views: 36

tags: another

ScottGu: Introducing “Razor” – a new view engine for ASP.NET(weblogs.asp.net)

submitted by JemmJemm(9604) 1 year, 10 months ago

"ASP.NET MVC has always supported the concept of “view engines” – which are the pluggable modules that implement different template syntax options. The “default” view engine for ASP.NET MVC today uses the same .aspx/.ascx/.master file templates as ASP.NET Web Forms. Other popular ASP.NET MVC view engines used today include Spark and NHaml. The new view-engine option we’ve been working on is optimized around HTML generation using a code-focused templating approach. The codename for this new view engine is “Razor”, and we’ll be shipping the first public beta of it shortly." read more...

add a comment |category: |Views: 552

tags: another

URL Rewrite – Multiple domains under one site. Part II(weblogs.asp.net)

submitted by wisemxwisemx(8074) 2 years ago

I believe I have it … I’ve been meaning to put together the ultimate outgoing rule for hosting multiple domains under one site. I finally sat down this week and setup a few test cases, and created one rule to rule them all. read more...

add a comment |category: |Views: 315

tags: another