Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You've got something wonky. A couple things to check...</p> <p>One, make sure your code does not have a CodeFile directive. It should be compiled into the same assembly as your page classes. Make sure the Inherits directive is correct. It sounds very much like you are modifying a class that isn't the one you think it is.</p> <p>Two, make sure the designer file is using the correct type declaration for your control. If it says "WebControl" or something beside your type, which I suspect, that is a problem. You may need to tell Visual Studio where the code for this control is by setting the application root in Project Properties. That is how Visual Studio knows how to resolve the "~" path at design time.</p> <p>If that doesn't work... post some code.</p> <p><strong>UPDATE</strong>:<br> OK, the reason you are getting the original error is that the control is not declared in the designer file. If it's not in the designer file, then it <em>doesn't exist</em> and hence you get this error: "WelcomeLabel1' is not a member of 'WebApplication1._Default'. One reason this can happen is that you are not <strong>registering</strong> the control, or not registering it properly... so Visual Studio has no idea what to do with it. It's like declaring some random element that has no definition:</p> <pre><code>&lt;bp:WhatIsThis ID="someID" runat="server"&gt; </code></pre> <p>Visual Studio will not update your .designer file here because it has no clue what this object represents. I'm guessing the same thing is happening here.</p> <p><strong>UPDATE</strong> 2: You must include the .cs file in your project. This step is probably missing from the walk-through because it targets a Web Site, not a WAP. That's why your namespace is empty.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload