[Mono-list] Missing implementation: System.Web.UI.HtmlForm.Action?

Bálint Kardos kardosbalint at gmail.com
Tue Nov 4 11:54:38 EST 2008


Hi,
I'm just wondering, why if it's a bug or a security feature,
but with current Mono 2.0, the aspx page's default form's action can't be
changed, it will give an error:

protected void Page_Load(object sender, EventArgs e)
{
      this.Form.Action = "myformname"; // HtmlForm.Action gets/sets the
Form's Action tag.
}

Method not found: 'System.Web.UI.HtmlControls.HtmlForm.set_Action'.

System.MissingMethodException: Method not found:
'System.Web.UI.HtmlControls.HtmlForm.set_Action'.
  at System.Web.UI.Control.OnLoad (System.EventArgs e) [0x00029] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0.1\mcs\class\System.Web\System.Web.UI\Control.cs:953
  at System.Web.UI.Control.LoadRecursive () [0x00020] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0.1\mcs\class\System.Web\System.Web.UI\Control.cs:1432
  at System.Web.UI.Page.ProcessLoad () [0x0004a] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0.1\mcs\class\System.Web\System.Web.UI\Page.cs:1588
  at System.Web.UI.Page.ProcessPostData () [0x0004d] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0.1\mcs\class\System.Web\System.Web.UI\Page.cs:1567
  at System.Web.UI.Page.InternalProcessRequest () [0x001bf] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0.1\mcs\class\System.Web\System.Web.UI\Page.cs:1527
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext
context) [0x0005b] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0.1\mcs\class\System.Web\System.Web.UI\Page.cs:1343


on MS.net fw 2.0 or 3.5, you can do it.

üdvözlettel
with regards

Kardos Bálint
_______________________________________
http://skaelede.hu 10 (0xA) év a magyar weben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20081104/9ee6d207/attachment-0001.html 


More information about the Mono-list mailing list