Last week, i've talked about compatibility problems in __dopostback script.
In fact ms.net call __dopostback script with '$' in the name of the component, 
mono call call __dopostback script with ':'
Here's the patch that fix this problem, so you can now call __dopostback with 
'$' or ':', it doesn't matter anymore...

Hubert FONGARNAND
_______________________________________________
Ce message et les �ventuels documents joints peuvent contenir des informations 
confidentielles.
Au cas o� il ne vous serait pas destin�, nous vous remercions de bien vouloir 
le supprimer et en aviser imm�diatement l'exp�diteur. Toute utilisation de ce 
message non conforme � sa destination, toute diffusion ou publication, totale 
ou partielle et quel qu'en soit le moyen est formellement interdite.
Les communications sur internet n'�tant pas s�curis�es, l'int�grit� de ce 
message n'est pas assur�e et la soci�t� �mettrice ne peut �tre tenue pour 
responsable de son contenu.
Index: class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- class/System.Web/System.Web.UI/ChangeLog	(revision 40487)
+++ class/System.Web/System.Web.UI/ChangeLog	(working copy)
@@ -1,3 +1,8 @@
+2005-02-14  Hubert Fongarnand <[EMAIL PROTECTED]>
+
+	* Page.cs: __do_postback script now support names with '$' instead of
+	':'
+
 2005-02-10  Lluis Sanchez Gual <[EMAIL PROTECTED]>
 
 	* Page.cs: Added support for validation groups. Some fixes in
Index: class/System.Web/System.Web.UI/Page.cs
===================================================================
--- class/System.Web/System.Web.UI/Page.cs	(revision 40487)
+++ class/System.Web/System.Web.UI/Page.cs	(working copy)
@@ -666,7 +666,7 @@
 			writer.WriteLine ("\tvar theForm = document.getElementById ('{0}');", formUniqueID);
 
 		writer.WriteLine ("\tfunction __doPostBack(eventTarget, eventArgument) {");
-		writer.WriteLine ("\t\ttheForm.{0}.value = eventTarget;", postEventSourceID);
+		writer.WriteLine ("\t\ttheForm.{0}.value = eventTarget.replace('$',':');", postEventSourceID);
 		writer.WriteLine ("\t\ttheForm.{0}.value = eventArgument;", postEventArgumentID);
 		writer.WriteLine ("\t\ttheForm.submit();");
 		writer.WriteLine ("\t}");

Reply via email to