ASP.NET MVC Tip #45 – Use Client View Data (3)
share
digg
by
swalther (17)
on
ASP.NET Weblogs (126)
3 days, 17 hours
ago
permalink
In this tip, I explore one approach to building Ajax applications with ASP.NET MVC. I show how you can use view data when building Ajax applications with ASP.NET MVC in the same way as you would use view data when building server-side application. I demonstrate how to create a custom HTML Helper that renders client view data. One of the primary benefits of building an ASP.NET MVC application is that it enables you to build ...
Writespace - Fullscreen Writing Environment Add-in for Word (1)
share
digg
by
jdanforth (2)
on
ASP.NET Weblogs (126)
4 days, 1 hour
ago
permalink
I just published this open source project on Codeplex, and this information is available on the Writespace Codeplex home page as well. Writespace is a fullscreen writing environment, developed with WPF (Windows Presentation Foundation) as a ClickOnce installed add-in for Word 2007 . Unfortunately Codeplex cannot host ClickOnce applications, so to install the add-in you will have to download and run the installer locally until I've found a site to host it. Writespace is inspired ...
Typemock Isolator 5.1 Released (1)
share
digg
by
Paulo Morgado (2)
on
ASP.NET Weblogs (126)
5 days, 14 hours
ago
permalink
This major version adds static method support and non-public method faking to the AAA API. Check out the release notes. I don’t like the reflective approach to testing private methods. With the new additions to the AAA API, testing this class: public class MyClass { public string Public() { return this.Private(); } private string Private() { throw new NotImplementedException(); } } can be done like this: [TestMethod] [Isolated] public void PrivateTest() { MyClass fake = ...
ASP.NET AJAX and HTTP Handlers: A Cautionary Tale (1)
share
digg
by
aspnetqa (2)
on
ASP.NET Weblogs (126)
5 days, 17 hours
ago
permalink
For those of you using the ASP.NET AJAX Controls, there is a potential pitfall in how HTTP handlers are managed that can affect your AJAX applications. This issue may take a little bit longer to explain than most, but that’s because it involves a concept probably unfamiliar to most AJAX developers: the concept of HTTP handlers. For background, HTTP handlers are intimately tied to the way in which ASP.NET handles requests on the server. In ...
Download Virtual TechDays (17,18,19 sep '08) recorded sessions and presentations (1)
share
digg
Best practices for creating websites in IIS 6.0 (3)
share
digg
by
oazabir (12)
on
ASP.NET Weblogs (126)
1 week
ago
permalink
Every time I create an IIS website, I do some steps, which I consider as best practice for creating any IIS website for better performance, maintainability, and scalability. Here' re the things I do: Create a separate application pool for each web application I always create separate app pool for each web app because I can select different schedule for app pool recycle. Some heavy traffic websites have long recycle schedule where low traffic websites ...
WCF .svc Gives HTTP 404 on Host, Works Perfectly on Local (1)
share
digg
by
HeartattacK (2)
on
ASP.NET Weblogs (126)
1 week, 1 day
ago
permalink
I was recently working on a project that used WCF web services extensively. Everything was ready for deployment, I deployed to the remote host, and voila – nothing works (nothing WCF related). After a LOT of frustration, I managed to make it work. I found two areas which were causing the problem: 1. The .svc extension was NOT setup right at our host. You can set this in the web.config webhandlers section for IIS 7, ...
Create ASP.NET MVC Controllers under Namespace and specific URL (2)
share
digg
by
oazabir (12)
on
ASP.NET Weblogs (126)
1 week, 1 day
ago
permalink
When you have a lot of controllers, you need to organize them under Namespaces. Also, it is better to put controllers under subfolders in order to organize them properly and have some meaningful URL for them like /Admin/User where Admin is the subfolder and User is the controller. For example, you might have a lot of controllers that are APIs exposed by your web app, not regular pages. So, you might want to put them ...
Another Standard Deviation Extension for LINQ (1)
share
digg
by
Dkultra (2)
on
ASP.NET Weblogs (126)
1 week, 1 day
ago
permalink
Just wanted to post my SDev extension for linq HopeFully someone will find it helpfull Happy coding all DKModule Module1 <Runtime.CompilerServices.Extension()> _Function StDev(Of T)(ByVal Values As System.Collections.Generic.IEnumerable(Of T), ByVal selector As Func(Of T, Double)) Return Statistics.StDev(Values.Select(selector).ToList())End Function End ModulePublic Class Statistics Public Shared Function StDev(ByVal Values As System.Collections.Generic.List(Of Double))Dim n = Values.Count() Dim SigXSquare = (From i In Values Select i * i).Sum()Dim SigX = Values.Sum() Dim SigSquareX = SigX * SigXDim MySTDev As Double ...
Create REST API using ASP.NET MVC that speaks both Json and plain Xml (2)
share
digg
by
oazabir (12)
on
ASP.NET Weblogs (126)
1 week, 1 day
ago
permalink
ASP.NET MVC Controllers can directly return objects and collections, without rendering a view, which makes it quite appealing for creating REST like API. The nice extensionless Url provided by MVC makes it handy to build REST services, which means you can create APIs with smart Url like "something.com/API/User/GetUserList" There are some challenges to solve in order to expose REST API: Based on who is calling your API, you need to be able to speak both ...
New REST "must read" papers (1)
share
digg
by
gsusx (2)
on
ASP.NET Weblogs (126)
1 week, 1 day
ago
permalink
Normal 0 false false false EN-US X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri",...(read more)
ASP.NET MVC Application Building: Family Video Website #5 – Multiple File Upload with Progress (2)
share
digg
by
swalther (17)
on
ASP.NET Weblogs (126)
1 week, 2 days
ago
permalink
In this series of tutorials, I build an entire ASP.NET MVC application from start to finish. In this entry, I add a Silverlight file upload control to make it easier to upload multiple media files. This blog entry is part of a series of entries on using ASP.NET MVC to build an entire Family Video Website from scratch. Before reading this entry, you might want to read the previous four entries: Family Video Website #1 ...
Silverlight and Shoutcast! (2)
share
digg
by
djsolid (3)
on
ASP.NET Weblogs (126)
1 week, 4 days
ago
permalink
Finally a solution!!!!!!!! How can we stream a shoutcast radio via a Silverlight application? Well in 6 steps... 1. Open Expression Blend 2. Create a Project 3. Add a media element 4. Add the code below at the cs (or vb) file public Page(){ // Required to initialize variables InitializeComponent(); this.Loaded += new RoutedEventHandler(Page_Loaded);}void Page_Loaded(object sender, RoutedEventArgs e){ try { myElem.Source = new Uri("mms://mystation:port/;"); myElem.Play(); } catch (Exception ex) { }} 5. We put mms ...
Cloud Computing. (1)
share
digg
by
Socratees (2)
on
ASP.NET Weblogs (126)
1 week, 5 days
ago
permalink
RMS says Cloud computing is a trap, and Ellison says He's sick of cloud computing. But still I think they're here to exist forever. It's little over hyped - just like any other new technology. But sure it's the next-gen model of computing.
Microsoft to ship and support jQuery (1)
share
digg
by
guybarrette (6)
on
ASP.NET Weblogs (126)
1 week, 6 days
ago
permalink
ScottGu announced yesterday that Microsoft will ship and support jQuery, a fantastic Javascript library.Read all about it here:ScottGuScottHajQuery AnnouncementBertrand Le Roy
Performant is still not an adjective (1)
share
digg
by
jeff (223)
on
ASP.NET Weblogs (126)
2 weeks, 2 days
ago
permalink
From MSDN... "Deep Zoom enables the ability to zoom almost arbitrarily large images in Silverlight in a performant manner."This is still the most ridiculously over-used word in tech circles, because it's made up. It can, technically, be used as a noun, but "performer" is more common. Seriously, with so many English majors writing code these days, how does this happen? I guess I find its use agitant. ;)
[Vista Problem] ASP.NET web site not loaded in Visual Studio Under Windows Vista (1)
share
digg
by
HosamKamel (6)
on
ASP.NET Weblogs (126)
2 weeks, 3 days
ago
permalink
You may get the below error while trying to load ASP.NET web site/Web application while using Visual Studio under Windows Vista. To resolve this error and get the project loaded follow the following steps : 1- close the current running instance of Visual Studio 2- Run the Visual Studio again but in Administration Mode , to do so : - From Start menu select Visual Studio , right click and select Run as Administrator option. ...
SharePoint Crawl and SQL Server Errors - Event ID: 17310 (1)
share
digg
by
Dan Lewis (8)
on
ASP.NET Weblogs (126)
2 weeks, 3 days
ago
permalink
After setting up a crawl rule to crawl something other than SharePoint sites (such as a file share), you may encounter some errors for SQL Server. If you start to see these repeatedly - check that you have the latest service pack for Microsoft SQL Server 2005 installed. That will resolve your issue. If you aren't sure how to check, see this post: What service pack is on my SQL Server? Event Type: Error Event ...