473,396 Members | 1,783 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,396 software developers and data experts.

Browser doesn't show controls. (New in .NET)

Jim
My browser doesn't show text boxes, labels etc.
It seems that it doesn't read the script at all (C#).

I use the following program (from a wrox book):

<----------------------------------------
<script language="c#" runat="server">
void Page_Load()
{
time.Text=DateTime.Now.Hour.ToString() + ":" +
DateTime.Now.Minute.ToString() + ":" +
DateTime.Now.Second.ToString();
}
</script>

<html>
<head><title>The Punctual Web Server</title></head>
<body>
<h1>Welcome</h1>
In WebServerLand the time is currently:
<asp:label id="time" runat="server" />
</body>
</html>
-------------------------------------------------------------------->

And the browser displays only...

<----------------------------------
Welcome
In WebServerLand the time is currently:
-------------------------------------------------------------------->

.... and it doesn't show the time!

I have set a virtual dir. in my local computer and IIS is running.

Any idea?

Thanks, Jim.
Nov 18 '05 #1
2 1207
The code works fine for me. Do you have the dot net framework installed was
it installed before or after installation of IIS? You may need to run
aspnet_regiis.exe which should be located in the
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 or similiar folde repending on
which version you have installed. See this thread on google groups: similar
problem
http://groups.google.com/groups?q=%2...ftngp07&rnum=1

"Jim" <a@b.c> wrote in message news:bu**********@news.freedom2surf.net...
My browser doesn't show text boxes, labels etc.
It seems that it doesn't read the script at all (C#).

I use the following program (from a wrox book):

<----------------------------------------
<script language="c#" runat="server">
void Page_Load()
{
time.Text=DateTime.Now.Hour.ToString() + ":" +
DateTime.Now.Minute.ToString() + ":" +
DateTime.Now.Second.ToString();
}
</script>

<html>
<head><title>The Punctual Web Server</title></head>
<body>
<h1>Welcome</h1>
In WebServerLand the time is currently:
<asp:label id="time" runat="server" />
</body>
</html>
-------------------------------------------------------------------->

And the browser displays only...

<----------------------------------
Welcome
In WebServerLand the time is currently:
-------------------------------------------------------------------->

... and it doesn't show the time!

I have set a virtual dir. in my local computer and IIS is running.

Any idea?

Thanks, Jim.

Nov 18 '05 #2
Jim
(:->

I run 'aspnet_regiis /i' and it works fine now.

Thanks a lot Showjumper.
"Showjumper" <sh*******@grkjashdjkf.com> wrote in message
news:Oh**************@TK2MSFTNGP10.phx.gbl...
The code works fine for me. Do you have the dot net framework installed was it installed before or after installation of IIS? You may need to run
aspnet_regiis.exe which should be located in the
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 or similiar folde repending on which version you have installed. See this thread on google groups: similar problem
http://groups.google.com/groups?q=%2...ftngp07&rnum=1
"Jim" <a@b.c> wrote in message news:bu**********@news.freedom2surf.net...
My browser doesn't show text boxes, labels etc.
It seems that it doesn't read the script at all (C#).

I use the following program (from a wrox book):

<----------------------------------------
<script language="c#" runat="server">
void Page_Load()
{
time.Text=DateTime.Now.Hour.ToString() + ":" +
DateTime.Now.Minute.ToString() + ":" +
DateTime.Now.Second.ToString();
}
</script>

<html>
<head><title>The Punctual Web Server</title></head>
<body>
<h1>Welcome</h1>
In WebServerLand the time is currently:
<asp:label id="time" runat="server" />
</body>
</html>
-------------------------------------------------------------------->

And the browser displays only...

<----------------------------------
Welcome
In WebServerLand the time is currently:
-------------------------------------------------------------------->

... and it doesn't show the time!

I have set a virtual dir. in my local computer and IIS is running.

Any idea?

Thanks, Jim.


Nov 18 '05 #3

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

Similar topics

20
by: msa | last post by:
Hi there, First off, let me say that I know that launching to full screen is a bad idea. I would never do it given the choice, but I must follow orders from my boss, the boss that desparately...
6
by: Biguana | last post by:
Hi, Just wondering if anyone can help here. We have a site where most of the site opens in a window with no toolbars or menubar: window.open('mypage.aspx','self','toolbar=0, menubar=0, etc,...
1
by: Al | last post by:
hi, I am new to asp.net. I have a question about Marshelling b/w client browser and web server(database). I heared that it is better to minimize going back and forth b/w client browser and the...
0
by: Christopher Beltran | last post by:
This may not be an asp.net problem but one of our customers is running into this with our asp.net application. They log into our web application which is hosted on their servers. After logging...
4
by: Peter Larsen | last post by:
Hi, I want to be able to show a file browser embedded on a form - a browser which is similar to the browser you get by SHBrowseForFolder(). Is that possible ? Thank you in advance. BR Peter...
10
by: Yuk Tang | last post by:
Another step on the road to enlightenment, aka producing a UI. I've added a webbrowser control to a form, and I want it to fill the space of the form. Playing around with docking, left, top,...
15
by: CMM | last post by:
So I'm half way through overseeing a large project in ASP.NET 2.0. My superiors have decided that it would be nice if we ensured the site worked on all the major platforms (as they see it: IE,...
8
by: Radu | last post by:
Hi. I have an ASP control on my page: <asp:Calendar ID="calStart" ................ Etc </asp:Calendar> and I have a Custom Validator defined as <asp:CustomValidator
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.