抱歉,简单的问题: [英] Sorry for simple question:

查看:50
本文介绍了抱歉,简单的问题:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的......如何从我的代码隐藏中设置aspx页面html标题?

MTIA

wardeaux

OK... how do I set the aspx page html title from my codebehind?
MTIA
wardeaux

推荐答案

查看此常见问题,
http://authors.aspalliance.com/kenc/faq5.aspx


-Saravana
www.ExtremeExperts.com


" Wardeaux" < WA ****** @ bellsouth.net>在消息中写道

news:Ou ************** @ TK2MSFTNGP14.phx.gbl ...
Check out this faq,
http://authors.aspalliance.com/kenc/faq5.aspx

-Saravana
www.ExtremeExperts.com

"Wardeaux" <wa******@bellsouth.net> wrote in message
news:Ou**************@TK2MSFTNGP14.phx.gbl...
好的......怎么样从代码隐藏中设置aspx页面html标题?
MTIA
wardeaux
OK... how do I set the aspx page html title from my codebehind?
MTIA
wardeaux



Hi Wardeaux,


在您的< title>之间放置一个Web控件和< / title>标签,那么你可以从你的代码隐藏中引用控制来操纵它的输出。 (提示:

使用Literal网页控制)

问候,

Nils Magnus Englund


" Wardeaux" < WA ****** @ bellsouth.net>在消息中写道

news:Ou ************** @ TK2MSFTNGP14.phx.gbl ...
Hi Wardeaux,

Put a Web control between your <title> and </title> tags, then you could
reference that control from your codebehind to manipulate its output. (tip:
use the Literal web control)
Regards,
Nils Magnus Englund

"Wardeaux" <wa******@bellsouth.net> wrote in message
news:Ou**************@TK2MSFTNGP14.phx.gbl...
好的......怎么样从我的代码隐藏设置aspx页面html标题?
MTIA
wardeaux
OK... how do I set the aspx page html title from my codebehind?
MTIA
wardeaux



.. aspx.cs

protected string _title;

_title =" Hello";

..aspx

< head>

< title><%= _ title%>< / title>

< / head>


MattC

" Wardeaux" < WA ****** @ bellsouth.net>在消息中写道

news:Ou ************** @ TK2MSFTNGP14.phx.gbl ...
..aspx.cs
protected string _title;
_title = "Hello";
..aspx
<head>
<title><%=_title%></title>
</head>

MattC
"Wardeaux" <wa******@bellsouth.net> wrote in message
news:Ou**************@TK2MSFTNGP14.phx.gbl...
好的......怎么样从我的代码隐藏中设置aspx页面html标题?
MTIA
wardeaux
OK... how do I set the aspx page html title from my codebehind?
MTIA
wardeaux



这篇关于抱歉,简单的问题:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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