IIS
Inserting a PayPal Buy Now Button into an ASP.NET Form
When working with ASP.NET pages, one difficulty that often arises is that you need two forms on the page – the normal form required by ASP.NET and a second form for something else such as a PayPal button or a search tool. The solution that I discovered is to not have two forms but simply [...]
Microsoft reporting: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
This error was bugging me for a long time until I found this excellent forum discussion:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=541116&SiteId=1
The following points summarize the causes and solutions from the forum and offer some additional help:
1. Check if you have changed the length of any fields in the underlying database table after creating the dataset. If you have, [...]
A better way of handling maxRequestLength exceptions
ASP.NET 2 includes the FileUpload control to make it easier to create pages that allow users to upload files. The default maximum file size is 4096 KB to minimize the potential for denial of service attacks. You can change the maximum file size by editing your configuration files (see for example http://msdn2.microsoft.com/en-US/library/system.web.configuration.httpruntimesection.maxrequestlength(VS.80).aspx and http://support.softartisans.com/kbview_825.aspx).
The problem [...]
Creating multiple websites in IIS 6 for student projects
Every term I had to create between 100 and 200 web sites for students in my classes. Here are the steps I used to create those site in IIS 6. The student’s active directory accounts were already set up by our system administrator. I use FrontPage Server Extensions to allow students to transfer files to [...]
Formatting columns in a GridView
Formatting columns in a GridView is relatively straightforward, once you know the appropriate format string.
Here are the steps if you are using Expression Web, Visual Studio, or Visual Web Developer:
Open the Task Pane of your GridView and select Edit Columns
In the Selected Fields Box, select the column you want to edit
Find the HTMLEncode property and [...]
Converting SQL Server newline character to HTML break <br/>
A common scenario (at least for me) is the following:
1. Accept text input into a web form that includes multiline text boxes. The text often includes line breaks.
2. The text is stored in a database such as SQL Server 2005. SQL Server 2005 has no problem storing the line breaks.
3. I then display the data [...]
Changing the Password Complexity in ASP.NET
Here is a great blog post on how to change the password complexity requirements in ASP.NET:
http://weblogs.asp.net/owscott/archive/2005/05/11/406550.aspx
