Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello sir, I have written a sample code in vs2012 like, a label crated with the help of code(<>) and a Button drag with the help of Toolbox.
then i run the website. I got a browser window and it's have only a button,, it is not displaying label. Actually what I am going to say is My Design part(with help of toolbox) is executing Perfectly,where the code part.. it shows nothing(empty)
I did not install iis yet.May i know where is the problem Exactly??
Posted
Comments
CHill60 12-Feb-15 8:21am    
We can't help you without seeing the code!
deepankarbhatnagar 13-Feb-15 2:37am    
PLease provide code to solve your query..

A version of IIS is installed with every installation of VS so that you can test websites without affecting production code.
When you run the website from within VS, that is the IIS that gets activated and processes the pages to your browser.

The most likely reason you can't see the label is because you haven't put any text in it!
Edit your page HTML, and put "BEFORE" before the label and "AFTER" after it - then run your page again. Almost certainly, you will see "BEFOREAFTER" with nothing between them.

Solution: put some text in the label. :laugh:
 
Share this answer
 
Comments
Member 10710428 12-Feb-15 19:52pm    
Thank you sir.
OriginalGriff 13-Feb-15 4:43am    
You're welcome!
Since that website is running, and the web page is being displayed to you, that means the IIS is running and there is no other tuning required by you to do in order to make it work.

The solution (as OriginalGriff has already mentioned with a grin), is that you're having a Label control, but you're not having any text in it. So, to see it either add some text to it, or add a few CSS styles to it so that it would be displayed to you (or you would feel it is present there; because it is there). The HTML you write is always present, but it would require some style or atleast some content to display in order for the user to understand that there is a control present on the screen.
 
Share this answer
 
Comments
Member 10710428 12-Feb-15 19:52pm    
Thank you sir

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900