Results 1 to 2 of 2

Thread: asp + mono, can't see web controls (newbie...)

  1. #1

    Thread Starter
    Hyperactive Member r0k3t's Avatar
    Join Date
    Dec 2005
    Location
    Cleveland
    Posts
    361

    asp + mono, can't see web controls (newbie...)

    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.

    Code:
    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!

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: asp + mono, can't see web controls (newbie...)

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width