asp.net代码不显示结果 [英] asp.net code not displaying results

查看:63
本文介绍了asp.net代码不显示结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




几乎是aspnet和xp的新手 - 我正在使用XP专业版,Service Pack 2.


我安装IIS,设置一个虚拟目录,创建一个aspx文件,并在w3schools网站的一些代码中粘贴

,然后尝试使用我的localhost查看页面

。 br />

加载aspx页面,但是要求编写NOW

函数的小aspnet脚本 - 不会显示。自从我从w3schools复制它以来,我假设

它在语法上是正确的。


在发送之前 - 我只是将文件保存为ASP文件并且尝试了显示它的
- 它确实有效。


有谁可以澄清我的悲伤在哪里?


谢谢,

凯文

Hi,

Pretty much a newbie to aspnet and xp -- I am using XP Pro, Service Pack 2.

I installed IIS, set up a virtual directory, created an aspx file and pasted
in a little code from the w3schools site and then tried viewing the page
using my localhost.

The aspx page loads, but the little aspnet script asking to write the NOW
function -- won''t display. Since I copied it from w3schools, I am assuming
it is syntactically correct.

Before sending this off -- I just saved the file as an ASP file and tried
displaying it -- and it works.

Can anyone clarify where my grief is?

thanks,
Kevin

推荐答案

你拍的脚本 - 它是一个ASP脚本。或者是一个ASP.NET脚本?


我怀疑它是一个ASP脚本,这意味着它不一定适用于

ASP.NET,因为ASP.NET有不同的语法,不同的库集,


我会忘记尝试从网上复制东西,然后开始

学习.NET和ASP.NET的基础知识,然后慢慢开始

跳进去。


"凯文汉肯 < th ****** @ gmail.com写信息

新闻:eC **************** @ TK2MSFTNGP05.phx.gbl .. 。
The script you took - is it an ASP script. or an ASP.NET script?

I suspect it is an ASP script, which means it won''t necessarily work in
ASP.NET, since ASP.NET has a different syntax, different set of libraries,
etc.

I would forget trying to copy things off the web, and start off with
learning the basics about .NET and ASP.NET, and starting off slowly before
jumping right in.

"Kevin Hanken" <th******@gmail.comwrote in message
news:eC****************@TK2MSFTNGP05.phx.gbl...




几乎是aspnet和xp的新手 - 我正在使用XP专业版,Service Pack < br $>
2.


我安装了IIS,设置了一个虚拟目录,创建了一个aspx文件并用一小段代码粘贴了
w3schools网站,然后尝试使用我的localhost查看

页面。


aspx页面加载,但是小aspnet脚本要求编写NOW

函数 - 不会显示。自从我从w3schools复制它以来,我假设

它在语法上是正确的。


在发送之前 - 我只是将文件保存为ASP文件并且尝试了显示它的
- 它确实有效。


有谁可以澄清我的悲伤在哪里?


谢谢,

凯文
Hi,

Pretty much a newbie to aspnet and xp -- I am using XP Pro, Service Pack
2.

I installed IIS, set up a virtual directory, created an aspx file and
pasted in a little code from the w3schools site and then tried viewing the
page using my localhost.

The aspx page loads, but the little aspnet script asking to write the NOW
function -- won''t display. Since I copied it from w3schools, I am assuming
it is syntactically correct.

Before sending this off -- I just saved the file as an ASP file and tried
displaying it -- and it works.

Can anyone clarify where my grief is?

thanks,
Kevin



好吧,我不确定我能得到多少基础。这是复杂的代码

我复制并粘贴了 -


<%Response.Write(now())%>


和w3schools网站认为它是asp.net兼容 - 实际上它们

提供了一个链接来显示这段功能强大的代码 - 并显示它。 br />

感谢您的帮助。


Marina Levit [MVP]" < so ***** @ nospam.comwrote in message

news:%2 **************** @ TK2MSFTNGP06.phx.gbl .. 。
Well, i am not sure how much more basic I can get. Here is the complex code
I copied and pasted --

<%Response.Write(now())%>

and the w3schools site sez it it is asp.net compatibile -- and in fact they
provide a link to display this powerful piece of code -- and it displays.

So thanks for your help.

"Marina Levit [MVP]" <so*****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...

你拍的脚本 - 它是一个ASP脚本。或者是一个ASP.NET脚本?


我怀疑它是一个ASP脚本,这意味着它不一定适用于

ASP.NET,因为ASP.NET有不同的语法,不同的库集,


我会忘记尝试从网上复制东西,然后开始

学习.NET和ASP.NET的基础知识,然后慢慢开始

跳进去。


"凯文汉肯 < th ****** @ gmail.com写信息

新闻:eC **************** @ TK2MSFTNGP05.phx.gbl .. 。
The script you took - is it an ASP script. or an ASP.NET script?

I suspect it is an ASP script, which means it won''t necessarily work in
ASP.NET, since ASP.NET has a different syntax, different set of libraries,
etc.

I would forget trying to copy things off the web, and start off with
learning the basics about .NET and ASP.NET, and starting off slowly before
jumping right in.

"Kevin Hanken" <th******@gmail.comwrote in message
news:eC****************@TK2MSFTNGP05.phx.gbl...

>

几乎是aspnet和xp的新手 - 我正在使用XP专业版,Service Pack
2.

我安装了IIS,设置了一个虚拟目录,创建了一个aspx文件,然后用w3schools网站上的一些代码粘贴,然后尝试查看页面使用我的localhost。

aspx页面加载,但是要求编写NOW
函数的小aspnet脚本 - 不会显示。自从我从w3schools复制它以来,我认为它在语法上是正确的。

在发送之前 - 我只是将文件保存为ASP文件并尝试显示它 - 它有效。

任何人都可以澄清我的悲伤在哪里?

谢谢,
凯文
>Hi,

Pretty much a newbie to aspnet and xp -- I am using XP Pro, Service Pack
2.

I installed IIS, set up a virtual directory, created an aspx file and
pasted in a little code from the w3schools site and then tried viewing
the page using my localhost.

The aspx page loads, but the little aspnet script asking to write the NOW
function -- won''t display. Since I copied it from w3schools, I am
assuming it is syntactically correct.

Before sending this off -- I just saved the file as an ASP file and tried
displaying it -- and it works.

Can anyone clarify where my grief is?

thanks,
Kevin




您安装了1.1或2.0 .Net Framework吗?


该代码不会运行除非安装了.Net Framework。

您可以下载免费的.Net Framework 2.0可再发行组件:
http://www.microsoft.com/downloads/d...DisplayLang=en


你可以免费下载.Net Framework 2.0 SDK:
http://www.microsoft.com/downloads/d...displaylang=en

如果你安装2.0,您可以使用免费的VWD Express 2005编写您的应用程序:
http://msdn.microsoft.com/vstudio/express/vwd/

如果你想从1.1开始,可再发行组件在这里:
http ://www.microsoft.com/downloads/d...displaylang=en

SDK就在这里:
http://www.microsoft。 com / downloads / d ... displaylang = zh


如果安装1.1,请确保同时安装.Net Framework的SP1:
http://www.microsoft .com / downloads / d ... displaylang = en


....和SP1的安全更新:
http://www.microsoft.com /downloads/d...displaylang=en

但是你不能用Visual Web Developer Express 2005开发1.1框架。



Juan T. Llibre,asp.net MVP

aspnetfaq.com: http://www.aspnetfaq.com/

asp.net faq: http://asp.net.do/faq/

foros de asp.net,en espa?ol: http:// asp。 net.do/foros/

================================ ===


" Kevin" < th ****** @ gmail.com在消息新闻中写道:%2 **************** @ TK2MSFTNGP06.phx.gbl ...
Did you install either the 1.1 or the 2.0 .Net Framework ?

That code won''t run unless the .Net Framework is installed.
You can download the free .Net Framework 2.0 redistributable at :
http://www.microsoft.com/downloads/d...DisplayLang=en

And you can download, free, the .Net Framework 2.0 SDK at :
http://www.microsoft.com/downloads/d...displaylang=en

If you install 2.0, you can use the free VWD Express 2005 to write your apps:
http://msdn.microsoft.com/vstudio/express/vwd/

If you want to start with 1.1, the redistributable is here :
http://www.microsoft.com/downloads/d...displaylang=en

And the SDK is here :
http://www.microsoft.com/downloads/d...displaylang=en

If you install 1.1, make sure you also install the .Net Framework''s SP1 :
http://www.microsoft.com/downloads/d...displaylang=en

....and the Security Update for SP1 :
http://www.microsoft.com/downloads/d...displaylang=en

You can''t develop for the 1.1 Framework with Visual Web Developer Express 2005, though.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espa?ol : http://asp.net.do/foros/
===================================

"Kevin" <th******@gmail.comwrote in message news:%2****************@TK2MSFTNGP06.phx.gbl...

嗯,我不确定我能得到多少基础。这是我复制和粘贴的复杂代码 -


<%Response.Write(now())%>


和w3schools网站认为它是asp.net兼容性 - 事实上它们提供了一个链接

显示这段功能强大的代码 - 并显示它。


感谢您的帮助。



Marina Levit [MVP]" < so ***** @ nospam.comwrote in message

news:%2 **************** @ TK2MSFTNGP06.phx.gbl .. 。
Well, i am not sure how much more basic I can get. Here is the complex code I copied and pasted --

<%Response.Write(now())%>

and the w3schools site sez it it is asp.net compatibile -- and in fact they provide a link to
display this powerful piece of code -- and it displays.

So thanks for your help.

"Marina Levit [MVP]" <so*****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...

>你拍的脚本 - 它是一个ASP脚本。还是一个ASP.NET脚本?

我怀疑它是一个ASP脚本,这意味着它不一定适用于ASP.NET,因为ASP.NET
有不同的语法,不同的图书馆等等。

我会忘记尝试从网上复制内容,然后开始学习关于.NET和ASP.NET的基础知识,然后慢慢开始跳进来。

Kevin Hanken < th ****** @ gmail.com写信息
新闻:eC **************** @ TK2MSFTNGP05.phx.gbl ...
>The script you took - is it an ASP script. or an ASP.NET script?

I suspect it is an ASP script, which means it won''t necessarily work in ASP.NET, since ASP.NET
has a different syntax, different set of libraries, etc.

I would forget trying to copy things off the web, and start off with learning the basics about
.NET and ASP.NET, and starting off slowly before jumping right in.

"Kevin Hanken" <th******@gmail.comwrote in message
news:eC****************@TK2MSFTNGP05.phx.gbl...

>>

几乎是aspnet和xp的新手 - 我正在使用XP专业版,Service Pack 2。

我安装了IIS,设置了一个虚拟目录,创建了一个aspx文件,并在w3schools网站上粘贴了一些代码,然后尝试使用我的localhost查看该页面。
aspx页面加载,但是要求编写NOW函数的小aspnet脚本 - 不会显示。因为我从w3schools复制它,我假设它在语法上是正确的。

在发送之前 - 我只是将文件保存为ASP文件并尝试显示它 - 并且
它工作。

任何人都可以澄清我的悲伤在哪里?

谢谢,
凯文
>>Hi,

Pretty much a newbie to aspnet and xp -- I am using XP Pro, Service Pack 2.

I installed IIS, set up a virtual directory, created an aspx file and pasted in a little code
from the w3schools site and then tried viewing the page using my localhost.

The aspx page loads, but the little aspnet script asking to write the NOW function -- won''t
display. Since I copied it from w3schools, I am assuming it is syntactically correct.

Before sending this off -- I just saved the file as an ASP file and tried displaying it -- and
it works.

Can anyone clarify where my grief is?

thanks,
Kevin





这篇关于asp.net代码不显示结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆