PDA

Click to See Complete Forum and Search --> : asp + mono, can't see web controls (newbie...)


r0k3t
Jan 26th, 2008, 09:27 AM
Hi there,

I just started with mono on ubuntu 7.10.

This is the issue - If I place a label on a page I can't see it in the code behind. It is like it can't seem to see any of the web controls. This is what I had to do to get it to work.


Label lbl = Page.FindControl("lbl") as System.Web.UI.WebControls.Label;
lbl.Text = "This is a test...";


Am I missing something? shouldn't I be able to see this control?

Thanks!

mendhak
Jan 29th, 2008, 04:43 AM
What version of ASP.NET does Mono 'emulate'? You may need to do this in pre-rendering (declaring a variable of the same name/type) if it's a pre 2.0 version.