473,385 Members | 1,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ASP Web Form Control not displayed!

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.
Nov 21 '05 #1
2 998
"Amjad" <Am***@discussions.microsoft.com> wrote in message news:30**********************************@microsof t.com...
(.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
Nov 21 '05 #2
Thanks Derek. That was the problem. I registered ASP.NET in IIS and
everything is fine now.
"Derek Harmon" wrote:
"Amjad" <Am***@discussions.microsoft.com> wrote in message news:30**********************************@microsof t.com...
(.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

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
14
by: simonmarkjones | last post by:
Hi, I'm having a bit of trouble editing an old database that was created quite a while ago by someone else. There is a form that lets the user select a member of staff and show details about the...
4
by: Tull Clancey | last post by:
I have a class that inherits a form. How can I handle clicks and changes to controls on the inherited form within my class? Cheers, Tull.
3
by: Netter | last post by:
I made a usercontrol (a couple of years ago). Actually it is a calculator with lots of little buttons. I have the control on a form. When I view the form in the IDE (or when running) the...
4
by: rszebras | last post by:
I inherited a database (as a novice at Access) and need to modify it to make it more efficient, i.e., the assignment form needs to autopopulate with the client's name, address, phone number, etc.,...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.