473,385 Members | 1,732 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.

aspx very simple problem (beginner)

I have developed a very simple aspx that simply looks
like:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="WebApps1.WebForm1"
aspCompat="True"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript"
content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post"
runat="server">
any text 1<br>
<% Response.Write
(DateTime.Now.ToString()) %>
any text 2<br>
</form>
</body>
</HTML>
// end of aspx

I have move the aspx to the IIS directory and when
executing the aspx only the html data is shown.
"any text 1
any text 2"

but nothing about "Response.Write(DateTime.Now.ToString()"

I have install .Net Framework 1.1 and XP Professional.

Thanks a lot in advance from this very beginner .Net
programmer.

Jul 21 '05 #1
1 1320
When you do a view source on that page, you'll probably also see that the
server side code is still visible.

Looks like the ASP.NET mappings in IIS are not configured.

You can solve this by issuing the following command from the .NET command
prompt.

aspnet_regiis -i

This should repair/install the mappings.

Hope this helps,
Wim Hollebrandse
http://www.wimdows.net
http://www.wimdows.com
"David" <dg*******@hotmail.com> wrote in message
news:2b*****************************@phx.gbl...
I have developed a very simple aspx that simply looks
like:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="WebApps1.WebForm1"
aspCompat="True"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript"
content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post"
runat="server">
any text 1<br>
<% Response.Write
(DateTime.Now.ToString()) %>
any text 2<br>
</form>
</body>
</HTML>
// end of aspx

I have move the aspx to the IIS directory and when
executing the aspx only the html data is shown.
"any text 1
any text 2"

but nothing about "Response.Write(DateTime.Now.ToString()"

I have install .Net Framework 1.1 and XP Professional.

Thanks a lot in advance from this very beginner .Net
programmer.

Jul 21 '05 #2

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

Similar topics

4
by: Abraham | last post by:
in my sql server database i have a table with the following fields; email username password secret_Questin i have connected this table to ASP.net... So can anyone give me the code of...
2
by: jt | last post by:
Being a beginner on ASP and having examples to work with ASP, I came across a small ASPX module that I would like to call from the ASP module. How can I do this? Appreciate your help. jt
11
by: JKop | last post by:
Take the following simple function: unsigned long Plus5Percent(unsigned long input) { return ( input + input / 20 ); } Do yous ever consider the possibly more efficent:
1
by: | last post by:
Hi guys! I am a beginner with aspx (i have some background with .asp). And i am trying tu use a 'code-behind' page in order to execute all transactions in that page and leave as clean as possible...
2
by: Beginner | last post by:
I know this is an old question, but searching all over the internet plus several MS security conferences, still haven't got a straight anwser. Basically, the login.aspx is on one dedicated server...
6
by: Victor Hadianto | last post by:
Hi All, I'm a beginner with ASP.Net so please bear with me. I'm having difficulties trying to understand the behaviour of static variable across multiple ASP.Net page. My static variable is a...
1
by: David | last post by:
I have developed a very simple aspx that simply looks like: <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="WebApps1.WebForm1" aspCompat="True"%> <!DOCTYPE...
1
by: c_beginner | last post by:
yes, this is my how work question. Since I am lack in getting an assistance with my lab work I put this in this advance group. Sorry for the trouble I am making. Write a program to calculate the...
0
by: toddwerts | last post by:
I have an aspx page with some form controls in it. They all work fine except for one thing, the control (list) that is populated based on the selected item in the first control (dropdownlist1) is...
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: 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...
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
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...

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.