ASP Web Form Control not displayed!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I created a new ASP.NET Web Form application and added to the project a Web
Form Button control and a Web Form Label control. Now when I try to view the
(.aspx) file in Browser, I could see the text in the Label Control but I
couldn't see the button at all! Does any one know where the problem might be?

PS. If I add an HTML Button control, I can see this button in the browser.
 
Amjad said:
(.aspx) file in Browser, I could see the text in the Label Control but I
couldn't see the button at all! Does any one know where the problem might be?

PS. If I add an HTML Button control, I can see this button in the browser.

Select the View | Source command from within Internet Explorer and see if the
source that comes up is identical to your .aspx page (i.e., it contains <aspx:Label>
etc. tags instead of HTML tags). You'll "see" the text of a label because HTML
discards tags it doesn't understand but can still display child text nodes, whereas
an aspx:Button's caption is an attribute value so you wouldn't see that.

If it's true that the Browser is receiving the raw .aspx document instead of the
results of IIS running the .aspx document through the ASP.NET ISAPI filter,
then you probably need to register ASP.NET with IIS (did you install IIS after
installing the Framework?) using this command-line utility,

aspnet_regiis.exe -i

If you're not seeing the raw .aspx document when you View | Source in the
browser, then this isn't the problem you're having.


Derek Harmon
 
Thanks Derek. That was the problem. I registered ASP.NET in IIS and
everything is fine now.
 
Back
Top