G
Guest
How can I update the html inside of a panel?
How can I make this code work
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Button1_Click(object sender, EventArgs e)
{
Panel1.innerHTML = "<html>Hello World!!!<html>"; //This will not
work.
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<aspanel ID="Panel1" runat="server" Height="144px" Style="z-index:
100; left: 64px;
position: absolute; top: 48px" Width="256px">
Say Hello</aspanel>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click"
Style="z-index: 102;
left: 104px; position: absolute; top: 200px" Text="Button"
Width="176px" />
</div>
</form>
</body>
</html>
How can I make this code work
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Button1_Click(object sender, EventArgs e)
{
Panel1.innerHTML = "<html>Hello World!!!<html>"; //This will not
work.
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<aspanel ID="Panel1" runat="server" Height="144px" Style="z-index:
100; left: 64px;
position: absolute; top: 48px" Width="256px">
Say Hello</aspanel>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click"
Style="z-index: 102;
left: 104px; position: absolute; top: 200px" Text="Button"
Width="176px" />
</div>
</form>
</body>
</html>