[mono-vb] Bug

Rolf Bjarne Kvinge rolflists at ya.com
Thu Nov 19 08:55:15 EST 2009


> Every page should by default include the namespace System.Web.UI.WebControls
> because when you declare RowDataBound in every version of Visual
> studio, you just write Sub gvCurrentNavigation_RowDataBound(ByVal sender As Object, ByVal e As
> GridViewRowEventArgs)
> Note that it is GridViewRowEventArgs And not
> System.Web.UI.WebControls.GridViewRowEventArgs
> and System.Web.UI.WebControls is not included anywhere.
> plus normally you can also just declare Dim x as Button, and not
> Dim x as System.Web.UI.WebControls.Button
> Also if you have a
> Partial Class admin
> Inherits System.Web.UI.Page
> then this class includes the page namespace, and I shouldn't have to
> add System.Web.UI. in front of everytime I have the "Page" statement
> somewhere in my codebehind.
> In the same chapter goes:
> HttpContext for mono it's System.Web.HttpContext
> If you have an ASP.NET application in Visual Studio, this includes the
> namespace System.Web.
> so you don't have to write System.Web. in front of it everywhere.

Good idea, I'll try to fix this.

> Microsoft.Jscript.GlobalObject.escape does not exist
> It is a core function, since it's the only place where there is a 1:1
> equivalent of the javascript escape function. Without this function,
> you cannot JavaScript escape a string, which means you are unable to create
> a javascript messagebox which outputs vb.net exceptions.
> I suggest incorporating the google v8 javascript engine.
> Then you have complete support for any javascript function, you simply
> have to make an interface to it, which is not difficult, at least not
> for this one function.

I just had a look and it's there, you just have to add a reference to Microsoft.JScript.dll

> Another issue:
> Declaring this in the aspx:
> <asp:Button ID="btnNewNodeOK" runat="server" Text="OK" />
> Then, btnNewNodeOK can be perfectly handled with
> Protected Sub btnNewNodeOK_Click(ByVal sender As Object, ByVal e As
> System.EventArgs) Handles btnNewNodeOK.Click
> note the handles clause.
> It cannot be that I have to add every OnClick="btnNewNodeOK" and remove
> the handles statement from the codebehind for all my buttons or any
> other control's events, like linkbuttons.

You shouldn't have to do that, why do you think so?

> If I have to do that, I can just as well rewrite the entire code in
> PHP, which would be better anyway, but I just don't have the time.
> And then there is another thing:
> My treeview serialzation gives a bug:
> unimplemented compiler feature. Please file a bug report.
> Here all the code in question

Could you please attach the files to the mail instead of copy-paste them into the body? Your mailer has wrapped the lines, and it's not valid VB code anymore.


More information about the Mono-vb mailing list