<title id="mytitle" runat="server"></title>in C# code:
mytitle.InnerText = "Hello World";if you use code behind, declare in your page class:
protected HtmlGenericControl mytitle;you can also use javascript:
document.title = "Hello World";
mytitle.InnerText = "Hello World";if you use code behind, declare in your page class:
protected HtmlGenericControl mytitle;you can also use javascript:
document.title = "Hello World";
解决方案 »
- 页面来源能否伪造?
- 关于验证控件的奇怪现象!
- 在dropdownlist绑定了数据源之后,如何让dropdownlist显示时是“请选择”
- 你要把我逼疯吗?? 高手进!!!版主进!!!!在线等
- 菜鸟问题:页面间传值?急!!!!!!!!!!!
- 求助,.net的上传组件如何怎么没有enableviewstate属性啊?
- 一个简单的问题
- 打印日志输入到Access数据库问题?
- 想将水晶报表保存为pdf 文件, 为什么不成功, 但也不报错, 是不是漏了点什么东西?
- 英雄救眉*聊天室Application,Gloabl.asax的问题??谢先!
- Please tell me how to pop up a MessageBox.
- 我的项目为什么打不开?????十万火急????
mytitle.InnerText = "Hello World"if you use code behind, declare in your page class:Imports System.Web.UI.HtmlControlspublic class myCodeBehind : Inherits System.Web.UI.Page
public mytitle as HtmlGenericControl....end class
千万记得先保存再返回“设计”中,
否则dotnet的语法自动检查
会把runat="server"语句删除
很惨哦:(