473,809 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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=DateT ime.Now.Hour.To String() + ":" +
DateTime.Now.Mi nute.ToString() + ":" +
DateTime.Now.Se cond.ToString() ;
}
</script>

<html>
<head><title>Th e 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 1219
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.e xe which should be located in the
C:\WINDOWS\Micr osoft.NET\Frame work\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.freedom 2surf.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=DateT ime.Now.Hour.To String() + ":" +
DateTime.Now.Mi nute.ToString() + ":" +
DateTime.Now.Se cond.ToString() ;
}
</script>

<html>
<head><title>Th e 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*******@grkj ashdjkf.com> wrote in message
news:Oh******** ******@TK2MSFTN GP10.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.e xe which should be located in the
C:\WINDOWS\Micr osoft.NET\Frame work\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.freedom 2surf.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=DateT ime.Now.Hour.To String() + ":" +
DateTime.Now.Mi nute.ToString() + ":" +
DateTime.Now.Se cond.ToString() ;
}
</script>

<html>
<head><title>Th e 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
3310
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 wants a desktop application made out of Internet technologies. We're writing an application that has JavaScript enabled as a client machine requirement. We need to support Windows with IE 5+ and Netscape 7+ plus Mac with IE 5+ and Netscape 6.2+.
6
19618
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, etc) This is because it's a data driven site where space is at a premium and we'd rather discourage use of back, stop and refresh. The problem arises because some "view data" pages are designed to be printed and have an onclick="window.print();"...
1
2044
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 server.This will increase performance and improve scallability. With asp.net, using server controls. It seems every action at the client browser require a trip to the server, for instance, page_load ( to fill combo boxes), or the event of the combo...
0
925
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 in, one different workstations each time, their IE 6.0 browser does not let them click on certain HTML links. The links are regular HTML to the browser, but when clicked nothing happens. No progress bar begins and the browser doesn't respond. ...
4
23734
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 Larsen
10
3263
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, width, height resolutely refuses to do this, as it remains docked top-left at around 100,100 within the form, with a size of approx 300,250. How do I fill the winform with the wb control? Reading further, it looks like another argument for...
15
2334
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, FireFox, and Safari). We've made heavy usage of the new MENU control and other intrinsic 2.0 controls.... nothing fancy! just using ASP.NET's built-in controls and very nice, pervasive, and clean usage of CSS. Now I find after more testing that the...
8
3931
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
9603
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10387
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9200
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7662
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.