Hi,
I get your mean, you want to change the MetaRefresh's value in content page's button click event, but failed, right?
I created a test application, but did not repro your problem, have you debuged your code and make sure the button_click event be executed when you click on the button control? Or you can create a new simple application and have a try to check the problem still exists.
Below is my test code:
1. the maste page codebehind:
public string UserName
{
get
{
return this.txtLoginUser.Text;
}
set
{
this.txtLoginUser.Text = value;
}
}
protected void Page_Load(object sender, EventArgs e)
{
}
2. The content page's aspx file:
<%@ Page Language="C#" MasterPageFile="~/TestMasterPage/masterpage/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="TestMasterPage_masterpage_Default" Title="Untitled Page" %>
<%@ MasterType VirtualPath="~/TestMasterPage/masterpage/MasterPage.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="middleContent" Runat="Server">
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
</asp:Content>
3. The content page's codebehind:
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
this.Master.UserName = "Tom";
}
If these cannot help you, if you can , could you provided the more related Code, we may be able to help further.