简体   繁体   English

我可以使用WebMatrix2打开实时网站的文件夹吗?

[英]Can I open a folder of a live web site with WebMatrix2?

I want to edit a web site using WebMatrix, however the site was created with ASP.net, When I open the folder of My site I Get so many errors, I just want to know if I can edit the web site ? 我想使用WebMatrix编辑一个网站,但是该网站是使用ASP.net创建的,当我打开“我的网站”文件夹时,出现很多错误,我只想知道是否可以编辑该网站?

Thank you for your Help :) 谢谢您的帮助 :)

Of course you can edit the site. 您当然可以编辑该站点。 Even with the errors (even if something wasn't accessible in WebMatrix, couldn't you just open it up in say, notepad, or some other text editor?) 即使有错误(即使WebMatrix中无法访问某些内容,您也不能只在记事本或其他文本编辑器中打开它吗?)

WebMatrix uses ASP.NET (many times in the form of C#.net, but certainly not always, as it has other options, not the least of which being VB.net). WebMatrix使用ASP.NET(很多时候都以C#.net的形式使用,但肯定不是一直如此,因为它有其他选择,其中至少有VB.net就是这样)。

Is it stopping you from something? 它阻止了你吗?

----------------------------------------UPDATE--------------------------------------------- ----------------------------------------更新--------- ------------------------------------

I get those errors on certain things, too, but I have since coded things a bit different to avoid these errors (can't seem to find a suitable replacement for "unselectable" that works in IE, so I accept that error [many people will claim that their is CSS for that, which their is, but NOT for IE, no matter what they say]), but it doesn't "break" your site. 我在某些方面也遇到了这些错误,但是我为避免这些错误编写了一些不同的代码(似乎找不到适合IE的“ unselectable”的合适替代品,因此,我接受该错误[很多人会声称他们是CSS,而不是IE(无论他们说什么)),但不会“破坏”您的网站。 WebMatrix's Intellisense is just trying to keep you using today's (or rather the DOCTYPE you specify's) best practices. WebMatrix的Intellisense只是试图让您使用当今(或更确切地说是您指定的DOCTYPE)的最佳实践。 If the site works for you otherwise, it will be fine to ignore them. 如果该网站适合您,则可以忽略它们。 Certain things can be converted however, for your benefit, such as the fact that the valign attribute is not necessary as their is a CSS rule for that (eg, vertical-align: middle; ). 但是,为了您的利益,可以进行某些转换,例如valign属性不是必需的,因为它们是CSS规则(例如, vertical-align: middle; )。 Also, I was told to stay away from frames (maybe use iframe?), but again, if it works for you, it works for you. 另外,还告诉我不要使用框架(也许使用iframe吗?),但是同样,如果它对您有用,那么它对您有用。 WebMatrix is just an IDE, after all. 毕竟,WebMatrix只是一个IDE。 IIS works as IIS always has (except maybe for the fact that WebMatrix uses IIS Express, but that has never hindered me from doing anything, so far...). IIS的工作原理与IIS始终一样(也许除了WebMatrix使用IIS Express的事实外,到目前为止,它从未阻止我做任何事情...)。

Honestly, though, for a lot of the errors you are having, you should be using CSS for instead of HTML. 不过,老实说,对于您遇到的许多错误,您应该使用CSS代替HTML。 This would clear most of that stuff up for you, and you would be compliant with best practices, which is always advantageous (for SEO if nothing else). 这将为您清除大部分内容,并且您将遵循最佳实践,这始终是有利的(对于SEO,如果没有其他要求)。

I will state that I know WebMatrix supports both PHP and classic ASP. 我将声明我知道WebMatrix支持PHP和经典ASP。

Here's a link on that very detail (the classic ASP detail): 这是一个非常详细的链接(经典的ASP细节):

http://www.quickersite.com/r/default.asp?iID=HFJJLH&iPostID=MFDIFG http://www.quickersite.com/r/default.asp?iID=HFJJLH&iPostID=MFDIFG

----------------------------------------SHORT ANSWER--------------------------------------------- ----------------------------------------缩短答案-------- -------------------------------------

Yes you can edit your website in WebMatrix. 是的,您可以在WebMatrix中编辑您的网站。 If it is valid markup to the browser that renders it, it will render. 如果它是呈现它的浏览器的有效标记,它将呈现。 WebMatrix's errors will have no affect on it. WebMatrix的错误将对其没有影响。 Obviously this isn't true for your server-side code, though (C#, ASP, PHP, VB, or whatever you're using). 显然,这对于您的服务器端代码不是正确的(C#,ASP,PHP,VB或您使用的任何代码)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM