hi
I tried creating a new class library project, but it comes up with errors when i try to compile the follwoing:
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
namespace ActionlessForm
{
public class Form : System.Web.UI.HtmlControls.HtmlForm
{
protected override void RenderAttributes(HtmlTextWriter writer)
{
writer.WriteAttribute("name", this.Name);
base.Attributes.Remove("name");
writer.WriteAttribute("method", this.Method);
base.Attributes.Remove("method");
this.Attributes.Render(writer);
base.Attributes.Remove("action");
if (base.ID != null)
writer.WriteAttribute("id", base.ClientID);
}
}
}
....and i get the following errors:
Error 1 The type or namespace name 'UI' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) C:\Documents and Settings\G Mattock\My Documents\Visual Studio 2005\Projects\ISAPIReWritePostBack\ISAPIReWritePostBack\Class1.cs 8 36 ISAPIReWritePostBack
Error 2 The type or namespace name 'HtmlTextWriter' could not be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\G Mattock\My Documents\Visual Studio 2005\Projects\ISAPIReWritePostBack\ISAPIReWritePostBack\Class1.cs 10 50 ISAPIReWritePostBack