~mkw

Average guy, above average luck...the blog of M. Keith Warren

Browse by Tags

All Tags » ASP.NET Tips and Tricks (RSS)
443 <--> 80 - Seamlessly moving requests in and out of SSL
Sometimes you feel secure, sometimes you don’t. Better put, sometimes a page needs to be secured and sometimes it does not. One of the things I wanted to do on a recent project was avoid unnecessary page encryption when the content did not require it...
ASP.NET: Application level data caching with callbacks
In my current application, the vast majority of the web site is broken into content ‘parts’ that can all be edited through a built in content manager. Pages consist of one or multiple parts which are elements of HTML persisted to the SQL database...
ASP.NET TidbiTIP #3
HOWTO: Cause a page to escape any frames it may be embedded within /// <summary> /// If the page is loaded inside a frame, /// calling this method will cause the page to leave the frame and load by itself. /// </summary> /// <remarks>...
ASP.NET TidbiTIP #2
HOWTO: Use server side code to set focus onto a control on the client side... /// <summary> /// Sets focus to a control on the client side when the page is loaded /// </summary> /// <param name="control"> The control instance you wish...
ASP.NET TidbiTIP #1
HOWTO: Push a javascript alert using server side code protected virtual void MessageBox( string message) { RegisterStartupScript( System.Guid.NewGuid().ToString(), string .Format("<script language='javascript'>alert('{0}');</script>", message...
Server Controls - avoiding cc*:somecontrol
I have noticed a number of server controls people have put together lately, some commercial but most free on places like Code Project that always render out with the generic tag prefix. It occured to me that the control of this is not readily obvious...
Giving the user what they want!
[UPDATE] Scott pointed out the the fact that you can force file names in a download using content-disposition. This is probably the easiest way but the solution listed below will allow you to call to files that do not exists; ie KentuckyThirdDistrict...
ASP.NET: Windows Authentication on SQL Server
Many of you know that Microsoft suggests using the security provided by inherent windows auth when logging into SQL Server from an ASP.NET application. With Windows 2000 this usually means adding the ASPNET user to SQL Server or the NETWORK SERVICE user...
REQ: ASP.NET Feature
For web.config files configuration Name =”Release” > system.web > … system.web > configuration > configuration Name =”Debug” > system.web > … system.web > configuration > If ASP.NET could parse config files while understanding...
More Posts