Selaa lähdekoodia

ChangeLog: Updated ChangeLog.
FormViewCommandEventArgs.cs:
FormViewCommandEventHandler.cs:
FormViewDeletedEventArgs.cs:
FormViewDeletedEventHandler.cs:
FormViewDeleteEventArgs.cs:
FormViewDeleteEventHandler.cs:
FormViewInsertedEventArgs.cs:
FormViewInsertedEventHandler.cs:
FormViewInsertEventArgs.cs:
FormViewInsertEventHandler.cs:
FormViewModeEventArgs.cs:
FormViewModeEventHandler.cs:
FormViewPageEventArgs.cs:
FormViewPageEventHandler.cs:
FormViewUpdatedEventArgs.cs:
FormViewUpdatedEventHandler.cs:
FormViewUpdateEventArgs.cs:
FormViewUpdateEventHandler.cs: Added new delegates.

svn path=/trunk/mcs/; revision=32139

Sanja Gupta 21 vuotta sitten
vanhempi
sitoutus
a36c2fc646
19 muutettua tiedostoa jossa 909 lisäystä ja 0 poistoa
  1. 21 0
      mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
  2. 52 0
      mcs/class/System.Web/System.Web.UI.WebControls/FormViewCommandEventArgs.cs
  3. 34 0
      mcs/class/System.Web/System.Web.UI.WebControls/FormViewCommandEventHandler.cs
  4. 63 0
      mcs/class/System.Web/System.Web.UI.WebControls/FormViewDeleteEventArgs.cs
  5. 34 0
      mcs/class/System.Web/System.Web.UI.WebControls/FormViewDeleteEventHandler.cs
  6. 73 0
      mcs/class/System.Web/System.Web.UI.WebControls/FormViewDeletedEventArgs.cs
  7. 34 0
      mcs/class/System.Web/System.Web.UI.WebControls/FormViewDeletedEventHandler.cs
  8. 57 0
      mcs/class/System.Web/System.Web.UI.WebControls/FormViewInsertEventArgs.cs
  9. 34 0
      mcs/class/System.Web/System.Web.UI.WebControls/FormViewInsertEventHandler.cs
  10. 76 0
      mcs/class/System.Web/System.Web.UI.WebControls/FormViewInsertedEventArgs.cs
  11. 34 0
      mcs/class/System.Web/System.Web.UI.WebControls/FormViewInsertedEventHandler.cs
  12. 59 0
      mcs/class/System.Web/System.Web.UI.WebControls/FormViewModeEventArgs.cs
  13. 34 0
      mcs/class/System.Web/System.Web.UI.WebControls/FormViewModeEventHandler.cs
  14. 53 0
      mcs/class/System.Web/System.Web.UI.WebControls/FormViewPageEventArgs.cs
  15. 34 0
      mcs/class/System.Web/System.Web.UI.WebControls/FormViewPageEventHandler.cs
  16. 65 0
      mcs/class/System.Web/System.Web.UI.WebControls/FormViewUpdateEventArgs.cs
  17. 34 0
      mcs/class/System.Web/System.Web.UI.WebControls/FormViewUpdateEventHandler.cs
  18. 84 0
      mcs/class/System.Web/System.Web.UI.WebControls/FormViewUpdatedEventArgs.cs
  19. 34 0
      mcs/class/System.Web/System.Web.UI.WebControls/FormViewUpdatedEventHandler.cs

+ 21 - 0
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

@@ -1,3 +1,24 @@
+2004-08-10  Sanjay Gupta <[email protected]>
+
+	* FormViewCommandEventArgs.cs:
+	* FormViewCommandEventHandler.cs:
+	* FormViewDeletedEventArgs.cs:
+	* FormViewDeletedEventHandler.cs:
+	* FormViewDeleteEventArgs.cs:
+	* FormViewDeleteEventHandler.cs:
+	* FormViewInsertedEventArgs.cs:
+	* FormViewInsertedEventHandler.cs:
+	* FormViewInsertEventArgs.cs:
+	* FormViewInsertEventHandler.cs:
+	* FormViewModeEventArgs.cs:
+	* FormViewModeEventHandler.cs:
+	* FormViewPageEventArgs.cs:
+	* FormViewPageEventHandler.cs:
+	* FormViewUpdatedEventArgs.cs:
+	* FormViewUpdatedEventHandler.cs:
+	* FormViewUpdateEventArgs.cs:
+	* FormViewUpdateEventHandler.cs: Added new delegates.
+
 2004-08-10  Sanjay Gupta <[email protected]>
 
 	* DetailsViewCommandEventArgs.cs:

+ 52 - 0
mcs/class/System.Web/System.Web.UI.WebControls/FormViewCommandEventArgs.cs

@@ -0,0 +1,52 @@
+//
+// System.Web.UI.WebControls.FormViewCommandEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta ([email protected])
+//
+// (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+namespace System.Web.UI.WebControls
+{
+	public class FormCommandEventArgs : CommandEventArgs
+	{
+		private object source;
+		private CommandEventArgs arguments;
+		
+		public FormViewCommandEventArgs (object source, CommandEventArgs arguments)
+		{
+			this.source = source;
+			this.arguments = arguments;
+		}
+		
+		public object CommandSource {
+			get { return source; }
+		}
+	}
+}
+
+#endif

+ 34 - 0
mcs/class/System.Web/System.Web.UI.WebControls/FormViewCommandEventHandler.cs

@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebControls.FormViewCommandEventHandler.cs
+//
+// Authors:
+//   Sanjay Gupta ([email protected])
+//
+// (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+	public sealed delegate void FormViewCommandEventHandler (object sender, FormViewCommandEventArgs e);
+}
+#endif

+ 63 - 0
mcs/class/System.Web/System.Web.UI.WebControls/FormViewDeleteEventArgs.cs

@@ -0,0 +1,63 @@
+//
+// System.Web.UI.WebControls.FormViewDeleteEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta ([email protected])
+//
+// (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.Collections.Specialized;
+using System.ComponentModel;
+
+namespace System.Web.UI.WebControls
+{
+	public class FormViewDeleteEventArgs : CancelEventArgs
+	{
+		private int rowIndex;
+		private Exception e;
+		private bool exceptionHandled;
+		
+		public FormViewDeleteEventArgs (int index)
+		{
+			this.rowsIndex = index;
+		}
+		
+		public int RowIndex {
+			get { return rowsIndex; }
+		}
+
+		public IOrderedDictionary Keys {
+			get { return new NotImplementedException(); }
+		}
+
+		public IOrderedDictionary Values {
+			get { return new NotImplementedException(); }
+		}
+	}
+}
+
+#endif

+ 34 - 0
mcs/class/System.Web/System.Web.UI.WebControls/FormViewDeleteEventHandler.cs

@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebControls.FormViewDeleteEventHandler.cs;
+//
+// Authors:
+//   Sanjay Gupta ([email protected])
+//
+// (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+	public sealed delegate void FormViewDeleteEventHandler (object sender, FormViewDeleteEventArgs e);
+}
+#endif

+ 73 - 0
mcs/class/System.Web/System.Web.UI.WebControls/FormViewDeletedEventArgs.cs

@@ -0,0 +1,73 @@
+//
+// System.Web.UI.WebControls.FormViewDeletedEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta ([email protected])
+//
+// (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.Collections.Specialized;
+
+namespace System.Web.UI.WebControls
+{
+	public class FormViewDeletedEventArgs : EventArgs
+	{
+		private int rowsAffected;
+		private Exception e;
+		private bool exceptionHandled;
+		
+		public FormViewDeletedEventArgs (int affectedRows, Exception e)
+		{
+			this.rowsAffected = affectedRows;
+			this.e = e;
+			this.exceptionHandled = false;
+		}
+		
+		public int AffectedRows {
+			get { return rowsAffected; }
+		}
+
+		public Exception Exception {
+			get { return e };
+		}
+
+		public bool ExceptionHandled {
+			get { return exceptionHandled; }
+			set { exceptionHandled = value; }
+		}
+	
+		public IOrderedDictionary Keys {
+			get { return new NotImplementedException(); }
+		}
+
+		public IOrderedDictionary Values {
+			get { return new NotImplementedException(); }
+		}
+	}
+}
+
+#endif

+ 34 - 0
mcs/class/System.Web/System.Web.UI.WebControls/FormViewDeletedEventHandler.cs

@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebControls.FormViewDeletedEventHandler.cs;
+//
+// Authors:
+//   Sanjay Gupta ([email protected])
+//
+// (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+	public sealed delegate void FormViewDeletedEventHandler (object sender, FormViewDeletedEventArgs e);
+}
+#endif

+ 57 - 0
mcs/class/System.Web/System.Web.UI.WebControls/FormViewInsertEventArgs.cs

@@ -0,0 +1,57 @@
+//
+// System.Web.UI.WebControls.FormViewInsertEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta ([email protected])
+//
+// (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.Collections.Specialized;
+using System.ComponentModel;
+
+namespace System.Web.UI.WebControls
+{
+	public class FormViewInsertEventArgs : CancelEventArgs
+	{
+		private object argument;
+		
+		public FormViewInsertEventArgs (object argument)
+		{
+			this.argument = argument;
+		}
+		
+		public object CommandArgument {
+			get { return argument; }
+		}
+
+		public IOrderedDictionary Values {
+			get { return new NotImplementedException(); }
+		}
+	}
+}
+
+#endif

+ 34 - 0
mcs/class/System.Web/System.Web.UI.WebControls/FormViewInsertEventHandler.cs

@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebControls.FormViewInsertEventHandler.cs;
+//
+// Authors:
+//   Sanjay Gupta ([email protected])
+//
+// (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+	public sealed delegate void FormViewInsertEventHandler (object sender, FormViewInsertEventArgs e);
+}
+#endif

+ 76 - 0
mcs/class/System.Web/System.Web.UI.WebControls/FormViewInsertedEventArgs.cs

@@ -0,0 +1,76 @@
+//
+// System.Web.UI.WebControls.FormViewInsertedEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta ([email protected])
+//
+// (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.Collections.Specialized;
+
+namespace System.Web.UI.WebControls
+{
+	public class FormViewInsertedEventArgs : EventArgs
+	{
+		private int rowsAffected;
+		private Exception e;
+		private bool exceptionHandled;
+		private bool keepInsertedMode;
+		
+		public FormViewInsertedEventArgs (int affectedRows, Exception e)
+		{
+			this.rowsAffected = affectedRows;
+			this.e = e;
+			this.exceptionHandled = false;
+			this.keepInsertedMode = false;
+		}
+		
+		public int AffectedRows {
+			get { return rowsAffected; }
+		}
+
+		public Exception Exception {
+			get { return e };
+		}
+
+		public bool ExceptionHandled {
+			get { return exceptionHandled; }
+			set { exceptionHandled = value; }
+		}
+	
+		public bool KeepInInsertMode {
+			get { return keepInsertedMode; }
+			set { keepInsertedMode = value; }
+		}
+
+		public IOrderedDictionary Values {
+			get { return new NotImplementedException(); }
+		}
+	}
+}
+
+#endif

+ 34 - 0
mcs/class/System.Web/System.Web.UI.WebControls/FormViewInsertedEventHandler.cs

@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebControls.FormViewInsertedEventHandler.cs;
+//
+// Authors:
+//   Sanjay Gupta ([email protected])
+//
+// (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+	public sealed delegate void FormViewInsertedEventHandler (object sender, FormViewInsertedEventArgs e);
+}
+#endif

+ 59 - 0
mcs/class/System.Web/System.Web.UI.WebControls/FormViewModeEventArgs.cs

@@ -0,0 +1,59 @@
+//
+// System.Web.UI.WebControls.FormViewModeEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta ([email protected])
+//
+// (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.ComponentModel;
+
+namespace System.Web.UI.WebControls
+{
+	public class FormViewModeEventArgs : CancelEventArgs
+	{
+		private FormViewMode mode;
+		private bool cancelEdit;
+		
+		public FormViewModeEventArgs (FormViewMode mode, bool cancelingEdit)
+		{
+			this.mode = mode;
+			this.cancelEdit = cancelingEdit;
+		}
+		
+		public bool CancelingEdit {
+			get { return cancelEdit; }
+		}
+
+		public FormViewMode NewMode {
+			get { return mode; }
+			set { mode = value;}
+		}
+	}
+}
+
+#endif

+ 34 - 0
mcs/class/System.Web/System.Web.UI.WebControls/FormViewModeEventHandler.cs

@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebContrls.FormViewModeEventHandler.cs;
+//
+// Authors:
+//   Sanjay Gupta ([email protected])
+//
+// (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+	public sealed delegate void FormViewModeEventHandler (object sender, FormViewModeEventArgs e);
+}
+#endif

+ 53 - 0
mcs/class/System.Web/System.Web.UI.WebControls/FormViewPageEventArgs.cs

@@ -0,0 +1,53 @@
+//
+// System.Web.UI.WebControls.FormViewPageEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta ([email protected])
+//
+// (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.ComponentModel;
+
+namespace System.Web.UI.WebControls
+{
+	public class FormViewPageEventArgs : CancelEventArgs
+	{
+		private int pageIndex;
+		
+		public FormViewPageEventArgs (int pageIndex )
+		{
+			this.pageIndex = pageIndex; 
+		}
+		
+		public int NewPageIndex {
+			get { return pageIndex; }
+			set { pageIndex = value;}
+		}
+	}
+}
+
+#endif

+ 34 - 0
mcs/class/System.Web/System.Web.UI.WebControls/FormViewPageEventHandler.cs

@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebControls.FormViewPageEventHandler.cs;
+//
+// Authors:
+//   Sanjay Gupta ([email protected])
+//
+// (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+	public sealed delegate void FormViewPageEventHandler (object sender, FormViewPageEventArgs e);
+}
+#endif

+ 65 - 0
mcs/class/System.Web/System.Web.UI.WebControls/FormViewUpdateEventArgs.cs

@@ -0,0 +1,65 @@
+//
+// System.Web.UI.WebControls.FormViewUpdateEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta ([email protected])
+//
+// (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.Collections.Specialized;
+using System.ComponentModel;
+
+namespace System.Web.UI.WebControls
+{
+	public class FormViewUpdateEventArgs : CancelEventArgs
+	{
+		private object argument;
+		
+		public FormViewUpdateEventArgs (object argument)
+		{
+			this.argument = argument;
+		}
+		
+		public object CommandArgument {
+			get { return argument; }
+		}
+
+		public IOrderedDictionary Keys {
+			get { return new NotImplementedException(); }
+		}
+
+		public IOrderedDictionary NewValues {
+			get { return new NotImplementedException(); }
+		}
+
+		public IOrderedDictionary OldValues {
+			get { return new NotImplementedException(); }
+		}
+	}
+}
+
+#endif

+ 34 - 0
mcs/class/System.Web/System.Web.UI.WebControls/FormViewUpdateEventHandler.cs

@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebContrls.FormViewUpdateEventHandler.cs;
+//
+// Authors:
+//   Sanjay Gupta ([email protected])
+//
+// (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+	public sealed delegate void FormViewUpdateEventHandler (object sender, FormViewUpdateEventArgs e);
+}
+#endif

+ 84 - 0
mcs/class/System.Web/System.Web.UI.WebControls/FormViewUpdatedEventArgs.cs

@@ -0,0 +1,84 @@
+//
+// System.Web.UI.WebControls.FormViewUpdatedEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta ([email protected])
+//
+// (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.Collections.Specialized;
+
+namespace System.Web.UI.WebControls
+{
+	public class FormViewUpdatedEventArgs : EventArgs
+	{
+		private int rowsAffected;
+		private Exception e;
+		private bool exceptionHandled;
+		private bool keepEditMode;
+		
+		public DetailsViewUpdatedEventArgs (int affectedRows, Exception e)
+		{
+			this.rowsAffected = affectedRows;
+			this.e = e;
+			this.exceptionHandled = false;
+			this.keepEditMode = false;
+		}
+		
+		public int AffectedRows {
+			get { return rowsAffected; }
+		}
+
+		public Exception Exception {
+			get { return e };
+		}
+
+		public bool ExceptionHandled {
+			get { return exceptionHandled; }
+			set { exceptionHandled = value; }
+		}
+	
+		public bool KeepInEdittMode {
+			get { return keepEditMode; }
+			set { keepEditMode = value; }
+		}
+
+		public IOrderedDictionary Keys {
+			get { return new NotImplementedException(); }
+		}
+
+		public IOrderedDictionary NewValues {
+			get { return new NotImplementedException(); }
+		}
+
+		public IOrderedDictionary OldValues {
+			get { return new NotImplementedException(); }
+		}
+	}
+}
+
+#endif

+ 34 - 0
mcs/class/System.Web/System.Web.UI.WebControls/FormViewUpdatedEventHandler.cs

@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebControls.FormViewUpdatedEventHandler.cs;
+//
+// Authors:
+//   Sanjay Gupta ([email protected])
+//
+// (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+	public sealed delegate void FormViewUpdatedEventHandler (object sender, FormViewUpdatedEventArgs e);
+}
+#endif