使用的.aspx而不是剃刀ASP.NET WebMatrix中 [英] ASP.NET Webmatrix using .aspx instead of Razor

查看:107
本文介绍了使用的.aspx而不是剃刀ASP.NET WebMatrix中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有教导如何建立在WebMatrix的页面,但一个教程的使用的.aspx而不是剃刀

I would like to know if there is a tutorial that teaches how to build your pages in Webmatrix but using .aspx and not razor.

我已经找到了所有教程到目前为止只教剃刀语法,我不能使用,因为我的虚拟主机不支持.cshtml。

All the tutorials I've found so far only teaches Razor syntax and I can't use that because my webhosting doesn't support .cshtml.

我想连接到数据库并执行SQL Querys,这样的教程或文章展示了如何做到这一点会为我工作。

I would like to connect to a database and performs SQL Querys, so a tutorial or article that shows how to do that will work for me.

感谢。

推荐答案

不可能的。 ASP.NET网页(您使用的是什么WebMatrix中)只使用剃刀。

Not possible. ASP.NET Web Pages (what you're using in WebMatrix) ONLY uses Razor.

我严重怀疑你的主机不支持CSHTML文件。如果他们支持.NET 4.0,那么他们支持CSHTML文件。闲来无事必须在自己的服务器上安装。

I seriously doubt your host doesn't support CSHTML files. If they support .NET 4.0, then they support CSHTML files. Nothing else needs to be installed on their servers.

这篇关于使用的.aspx而不是剃刀ASP.NET WebMatrix中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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