How to create a CSHTML and WebMatrix TweetMeme Helper

יום רביעי, יולי 7, 2010

How to create a CSHTML and WebMatrix TweetMeme Helper Microsoft has recently introduced the first beta of its new stack for building great web sites – WebMatrix. One of the key components of WebMatrix is the ASP.Net Web Pages “Razor” Syntax (or simply: CSHTML) that lets you write C# code inside the HTML markup. Helpers in WebMatrix Among the new possibilities and simplicity that this approach brings to people who build web sites, there is also the notion of Helper. Helpers are a way to use a single line of code for a common task that...

Getting Started with jQuery in Visual Studio 2008

יום שישי, יוני 5, 2009

Getting Started with jQuery in Visual Studio 2008 In this post I’ll talk about adding jQuery IntellSense in Visual Studio 2008, and how to add jQuery to a simple Web Application inside Visual Studio 2008. jQuery IntelliSense in Visual Studio 2008 - KB946581 In order to use jQuery in Visual Studio 2008 with IntelliSence a hotfix for Visual Studio 2008 must be installed: Download the hotfix from Connect Run the executable and extract its contents to a folder in your hard drive. ...
4 comments

ASP.Net QueryExtender Control and DomainDataSource

יום ראשון, אפריל 12, 2009

ASP.Net QueryExtender Control and DomainDataSource Just another post about .Net RIA Services with Silverlight and ASP.Net. Previously, I wrote about Using DomainDataSource in ASP.Net and ASP.Net DomainDataSource with Select Parameters. In this post I am talking about the new ASP.Net QueryExtender Control, that applies additional filtering to the DomainDataSource. It does that by an additional expression to the expression tree that the DomainDataSource generates before hitting the DomainService with the query. You can download the full source code for this sample: QueryExtender Sample.zip To use the ASP.Net QueryExtender control, you first need to add a reference...

ASP.Net DomainDataSource with Select Parameters

ASP.Net DomainDataSource with Select Parameters Continuing with .Net RIA Services with Silverlight and ASP.Net. In the last port I wrote about Using DomainDataSource in ASP.Net, and showed its basic usage. In this post I’ll show a more advanced scenario in which you want to use a domain service select method that takes parameters, and get the parameter value from a control on the form. In the previous post, we had a GridView bound to a DomainDataSource that called a Select Method on the DomainService. <asp:GridView runat="server" ID="GridView" ...

Using DomainDataSource in ASP.Net

יום שבת, אפריל 11, 2009

Using DomainDataSource in ASP.Net In ASP.Net 2.0 we were introduced to this concept of Data Source controls. We got the ObjectDataSource, XmlDataSource and SqlDataSource that let us bind a GridView or a ListBox to some data without having to write any additional code. In .Net Framework 3.5 we got LinqDataSource and with .Net Framework 3.5 – the EntityDataSource. In the future of ASP.Net, among other significant improvements around data access, we get a new way of accessing our data – DomainDataSource. The benefits of using the DomainDataSource is that is give us nice separation...