I need to dynamically generate some HTML, depending on the data contained in the DataSet. I want to embed the code into the HTML using a script block.
How do I call this method. It needs to be called at the proper place within the page so the HTML will be rendered correctly
Thank
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="ScriptBlock.WebForm1" %><html><head><title>WebForm1</title></head><body MS_POSITIONING="GridLayout"><form id="Form1" method="post" runat="server"><script language =C#
private void DoSomething(
code goes in her
</script></form></body></html>