Posts Tagged ‘asp.net’

February 2, 2008 0

10 ASP.NET Performance and Scalability Secrets

By in Uncategorized

Very good article. Covers all the following topics: ASP.NET Pipeline optimization ASP.NET Process configuration optimization Things you must do for ASP.NET before going live Content Delivery Network Caching AJAX calls on browser Making best use of Browser Cache On demand progressive UI loading for fast smooth experience Optimize ASP.NET 2.0 Profile provider How to query [...]

Tags: ,

January 5, 2008 0

Workaround for Response.Redirect

By in Uncategorized

This is a workaround to do a redirect while using ASP.NET AJAX Framework. The traditional Response.Redirect method can not be used since it is not compatible with the .NET AJAX framework. StringBuilder sb = new StringBuilder(); sb.Append(“<script language=\”javascript\”>\n”); sb.Append(“function Redirect()\n”); sb.Append(“{\n”); sb.Append(” window.parent.location.href = \”" + ResolveUrl(myURL) + “\”;\n”); sb.Append(“}\n”); sb.Append(“</script>\n”); Page.ClientScript.RegisterClientScriptBlock(this.GetType(), “Redirect”, sb.ToString()); myBtn.Attributes.Add(“onclick”, [...]

Tags: ,

November 13, 2007 0

Setting a default button in .NET

By in Uncategorized

One way is to use a class like this to add an onkeydown client event to a to a textbox. using System; using System.Web.UI.WebControls; namespace System.Web.UI.DefaultButton { /// <summary> /// Methods to set default button /// </summary> public class DefaultButton { /// <summary> /// Sets default button for the specified control /// </summary> /// <param [...]

Tags:

April 27, 2007 0

ASP.NET 2.0 Tips and Tricks

By in Uncategorized

Some cool tips and tricks posted on Dan Wahlin’s blog. ASP.NET 2.0 is an awesome framework for developing Web applications. If you’ve worked with it for awhile then that’s no secret. It offers some great new features that you can implement with a minimal amount of code. I wanted to start a list of some [...]

Tags: ,

April 1, 2007 1

Using the Login control in .NET

By in Uncategorized

When I first started out programming in .NET, the first obstacle I faced was setting up the database for the login control. So here it is, these steps might help you solve that problem – 1. Run C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe 2. Follow the steps and create the ASPNETDB.mdf in the location of your choice. (I personally prefer [...]

Tags: