How To Set a Date Format In GridView Using ASP.NET 2.0(Using HtmlEncode Property)

(AKA, the DataFormatString="{0:M-dd-yyyy}" Problem)   A very common desire is to set a column of a GridView to display just the month, day and year of a DateTime type. The problem is the by default, the HtmlEncode property of the BoundField attribute ( <asp:BoundField ...) is set to True. The reason for this (as pointed out in the documentation of this attribute) is that this helps prevent cross-site scripting attacks and malicious content from being displayed. Microsoft recommends that the HtmlEncode attribute be enabled whenever possible. If you have a problem like this involving ASP.NET WebForms or MVC, consulting services are available. This is quite an old post, but still relevant even as we head into 2012 with the … Continue Reading

Membership Editor Works With Atlas March CTP

Membership Editor Works With Atlas March Community Technology Preview IE and Firefox! In two previous postings I used the January version of Atlas. At MIX06, Microsoft released the next version which is known as the March CTP. I have updated my web demonstration programs to take advantage of the new Atlas. The basic difference now is that the demonstrations all now work with Firefox as well as IE. I don't know about other browser compatability issues, but I'd sure like to hear if they work in your browser. The code can be run at the following locations: http://livedemos.peterkellner.net/ (using March Atlas) http://livedemos.peterkellner.net/DefaultNoAjax.aspx (no Atlas, just for comparison) and demonstrating adding Membership with … Continue Reading

Adding Personalization via Profiles to the ObjectDataSource in ASP.NET 2.0

Also published on Microsoft’s MSDN Network at Microsoft ASP.NET 2.0 Member/Role Management with IIS, Part 4: Adding Personalization with Profiles to the ObjectDataSource Applies to: Microsoft ASP.NET 2.0 Microsoft Visual Studio 2005 Microsoft Internet Information Services … Continue Reading

AJAX Meets ASP.NET 2.0 Membership Management For IIS

Microsoft ASP.NET 2.0 Member/Role Management with IIS, Part 3: AJAX Enhancements with Microsoft's Atlas   Peter Kellner http://PeterKellner.net March 2006 Applies to: Microsoft ASP.NET 2.0 Microsoft Visual Studio 2005 Microsoft Internet Information Services  Run Live Demonstration Of AJAX Technology Click Here for Source Code Associated With This Article  Contents Introduction What is AJAX and Atlas Background The AJAX Enhanced Version Technologies Used in AJAX Enhanced Version Steps Involved in Building (or upgrading) to AJAX using Atlas Using UpdatePanel ASP.NET Tag What is Really Happening Enhancing the … Continue Reading

Follow

Get every new post delivered to your Inbox

Join other followers: