Z
Zhan feng Wang
Hi,friends,
I'd lo=ike to knwo if I can update a span in the html, in C#, I can do
that as following:
<html>
<body style="background-color:f6e4c6">
<form action="Asn1Studio.aspx" method="post" runat="server">
<center>
<asp:button type=submit text="Run" OnClick="SubmitBtn_Click"
runat="server"/></br>
</form>
</center>
<table align="center">
<tr><th><span>Output from infering schema and creating
tables...</span></th></tr>
<tr><th><span>ONG</span></th></tr>
<tr><td><h4><xmp id="output" runat="server"/></h4></td></tr>
</table>
</body>
</html>
<script language="C#" runat=server>
private void SubmitBtn_Click(Object sender, EventArgs e)
{
StringWriter writer = new StringWriter();
Console.SetOut(writer);
output.InnerHtml = writer.ToString();
}
</script>
Thanks
I'd lo=ike to knwo if I can update a span in the html, in C#, I can do
that as following:
<html>
<body style="background-color:f6e4c6">
<form action="Asn1Studio.aspx" method="post" runat="server">
<center>
<asp:button type=submit text="Run" OnClick="SubmitBtn_Click"
runat="server"/></br>
</form>
</center>
<table align="center">
<tr><th><span>Output from infering schema and creating
tables...</span></th></tr>
<tr><th><span>ONG</span></th></tr>
<tr><td><h4><xmp id="output" runat="server"/></h4></td></tr>
</table>
</body>
</html>
<script language="C#" runat=server>
private void SubmitBtn_Click(Object sender, EventArgs e)
{
StringWriter writer = new StringWriter();
Console.SetOut(writer);
output.InnerHtml = writer.ToString();
}
</script>
Thanks