你如何指定ASP.NET的WebForms您的内容类型? [英] How do you specify your Content Type in ASP.NET WebForms?

查看:150
本文介绍了你如何指定ASP.NET的WebForms您的内容类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我指定我的doctype是XHTML严格,但它的网络线路上的作为内容类型text / html发送。我想指定的内容类型是application / xhtml + XM,但我想不通的地方,或者,我可以从我的应用程序中配置该

I'm specifying my doctype as xhtml strict, but it's being sent over the wire as a content type of text/html. I'd like to specify that the content type is application/xhtml+xm, but I can't figure out where, or if, I can configure this from within my application

推荐答案

您可以在@ Page指定它的属性部分,像这样的:

You can specify it in the @ page attributes section, like this:

<%@ Page ContentType="application/xhtml+xm" %>

...更多在 MSDN

这篇关于你如何指定ASP.NET的WebForms您的内容类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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