mostlylucid

scott galloway's personal blog...
posts - 916, comments - 758, trackbacks - 11

My Links

News

Archives

Post Categories

Misc. Coding

January 2009 Entries

ASP.NET 4.0: Page.MetaKeywords and Page.MetaDescription simple, but useful!

One of the smaller additions we've made to ASP.NET 4.0 WebForms is the addition of two properties on the Page class, Page.MetaKeywords and Page.MetaDescription. What these two properties do is provide access to / create meta tags within your  page as follows: <head runat="server">     <title>Untitled Page</title>     <meta name="keywords" content="These, are, my, keywords' />     <meta name="description" content="This is the description of my page" /> </head> Simple, right? In fact these two properties work the same way as...

posted @ Thursday, January 29, 2009 7:49 AM | Feedback (6) | Filed Under [ ASP.NET 4.0 ]

ASP.NET 4.0: ViewStateMode…giving you more control over ViewState!

ViewState is a pain...there, I've said it! What causes the most pain with ViewState is the fact that people misuse it a lot, leaving it enabled for every control in  a page when in fact you only really need it for that one control which really needs to persist it's contents to the next page. Dave Reed a developer on the ASP.NET team has written a truly epic post on 'Truly Understanding ViewState', and before you read what comes next, you really should head off and read that first... Back? Ok, well now you understand...

posted @ Wednesday, January 28, 2009 7:55 AM | Feedback (5) | Filed Under [ ASP.NET 4.0 ]

ASP.NET 4.0: Browser Capabilities Providers (esoterica warning!)

ASP.NET determines the capabilities of the browser with which a user is browsing your site using a feature called 'browser capabilities'. In ASP.NET 3.5 SP1 there are two main ways in which you can define the capabilities which a browser has: 1. To make the change for your entire machine. Go into C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\Browsers, find the browser you want to alter, find the specific capability you want to alter in the XML, change it then run aspnet_regbrowsers.exe -I from the VS Tools command line to rebuild the Browser Capabilities assembly and add it to the GAC... 2. To make a change for just...

posted @ Monday, January 26, 2009 9:47 AM | Feedback (1) | Filed Under [ ASP.NET 4.0 ]

ASP.NET 4.0: WebForm Routing (quick ’n dirty version)

  NOTE: This is a quick introduction,. I'll drill into this more in a future post. One of the things we're adding in ASP.NET 4.0 is built-in support for using Routing together with WebForms. Now, I'm totally aware that this is possible to do already and that a number of people have posted ways of doing this with the Web Routing feature which shipped with ASP.NET 3.5 SP1. We're just adding some features to make it easier to do... So, what are we adding? WebFormRouteHandler, this is a...

posted @ Sunday, January 25, 2009 6:13 PM | Feedback (9) | Filed Under [ ASP.NET 4.0 ]

ASP.NET 4.0 WebForms Podcast is now up

On Channel 9, Jonathan Carter has put together a great overview of what's coming up in ASP.NET 4.0 WebForms. I'll be putting together a couple of in depth screencasts / blog posts in the coming months (well, if I still have a job...gulp!)

posted @ Thursday, January 01, 2009 4:20 PM | Feedback (0) | Filed Under [ WebForms ]

Powered by: