[Mono-list] asp.net idSeparator

Peter Hagen peter at wingsofdeath.nu
Tue Nov 18 04:46:33 EST 2008


Hi

I'm testing my .net 1.1 website on the new Mono 2.0.1. One thing I can't
figure out, is that my site doesn't work correctly because of a
difference in the separator in clientid/UniqueId. Until this version I
could split the control id's with ':', but somehow it now using the '$'.
If I look through the code in
mcs/class/System.Web/System.Web.UI/Control.cs, I believe the ':' should
be used:

-------------------------------------
#if NET_2_0
                protected internal bool IsChildControlStateCleared {
                        get { return _isChildControlStateCleared; }
                }

                protected internal bool IsViewStateEnabled {
                        get {
                                for (Control control = this; control !=
null; control = control.Parent)
                                        if (!control.EnableViewState)
                                                return false;

                                return true;
                        }
                }

                protected bool LoadViewStateByID {
                        get { return false; }
                }

                protected char IdSeparator {
                        get { return '$'; }
                }
#else
                internal char IdSeparator {
                        get { return ':'; }
                }
#endif
-------------------------------------

I'm sure that my project (Monodevelop) is build as .net 1.1, but somehow
the '$' is being used. Is this a bug?

cheers

Peter



More information about the Mono-list mailing list