Ask the Expert

.NET controls aren't displaying

Hello, Daniel. I am new to ASP.NET. I have written a small ASP.NET program "hello" (using C#). My program displays HTML controls, but it is not displaying .NET controls. Why?
It depends on the particular situation. If you're getting an error message, that can help to diagnose the problem. One usual mistake is to place server controls outside a form with runat="server" attribute. This doesn't work. Beware that HTML controls can be regular (not processed on the server) or server controls (right-click it and select Run as Server Control). If you're getting the former but not the latter, then you probably have an ASP.NET registration problem.

If this is the case, you can open the Visual Studio .NET command prompt and run: aspnet_regiis /i. This will register ASP.NET with IIS in all the Web sites you have configured.

This was first published in April 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: