Browse by Tags
All Tags »
ASP.NET Tips and Tricks (
RSS)
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...
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...
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>...
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...
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...
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...
[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...
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...
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