从内容页面的代码隐藏访问标题 [英] Accessing title from codebehind for content page

查看:54
本文介绍了从内容页面的代码隐藏访问标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想从后面的代码访问标题..

我知道这很容易,但是对于内容页面,我对如何从后面的代码访问以下代码感到困惑:

Hi all,

I want to access title from code behind..

I know it''s an easy task, but for content page, I am bit confused about how I access the title from code behind to following code:

<%@ Page   Title="" Language="C#" MasterPageFile="~/MasterPages/MasterManageBussiness.Master" ValidateRequest="false" AutoEventWireup="true" CodeBehind="editBusinessProfile.aspx.cs" Inherits="MyApplication.Business.editBusinessProfile"  %>


推荐答案

Me.Title = "Title name" // VB

this.Title = "Title name" // C#


这篇关于从内容页面的代码隐藏访问标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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