[WebCategory ("Behavior")]
#if NET_2_0
[Themeable (false)]
- public virtual
-#else
- public
#endif
- string CommandArgument {
+ public string CommandArgument {
get {
return ViewState.GetString ("CommandArgument", "");
}
[WebCategory ("Behavior")]
#if NET_2_0
[Themeable (false)]
- public virtual
-#else
- public
#endif
- string CommandName {
+ public string CommandName {
get {
return ViewState.GetString ("CommandName", "");
}
#endif
[DefaultValue ("")]
[Editor ("System.Web.UI.Design.UrlEditor, " + Consts.AssemblySystem_Design, "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)]
- [MonoTODO]
- public virtual string PostBackUrl
- {
+ public virtual string PostBackUrl {
get {
- throw new NotImplementedException ();
+ return ViewState.GetString ("PostBackUrl", String.Empty);
}
set {
- throw new NotImplementedException ();
+ ViewState["PostBackUrl"] = value;
}
}
}
#if NET_2_0
- [MonoTODO]
protected virtual PostBackOptions GetPostBackOptions ()
{
- throw new NotImplementedException ();
+ return new PostBackOptions(this, PostBackUrl, null, false, true,
+ false, true, CausesValidation,
+ ValidationGroup);
}
#endif
bool LoadPostData (string postDataKey, NameValueCollection postCollection)
{
string x, y;
-
- x = postCollection [postDataKey + ".x"];
- y = postCollection [postDataKey + ".y"];
-
+ string unique = UniqueID;
+ x = postCollection [unique + ".x"];
+ y = postCollection [unique + ".y"];
if (x != null && x != "" && y != null && y != "") {
pos_x = Int32.Parse(x);
pos_y = Int32.Parse(y);
Page.RegisterRequiresRaiseEvent (this);
return true;
+ } else {
+ x = postCollection [unique];
+ if (x != null && x != "") {
+ pos_x = Int32.Parse (x);
+ pos_y = 0;
+ Page.RegisterRequiresRaiseEvent (this);
+ return true;
+ }
}
return false;