<%@ Page Language="vb" EnableSessionState="False" EnableViewState="True" Trace="False" Debug="False" Inherits="createformcode" src="ex32VB.vb" %>
<HTML>
	<HEAD>
		<title></title>
	</HEAD>
	<body bgcolor="#ffffff">
		<form runat="server" id="form1">
			选择生成一个 .NET表单数据表:
			<asp:dropdownlist id="tblList" 
				runat="server" />
			&nbsp;&nbsp;
			<asp:Button 
				id="GetTable" 
				Text="取得数据表格" 
				onclick="GetTable_Click"
				runat="server" />
			<asp:panel 
				id="myPanel"
				runat="server" 
				visible="false">
			<BR>为生成表单选择列. 
			<asp:datagrid 
				id="MyDataGrid" 
				runat="server" 
				AutoGenerateColumns="False" 
				HeaderStyle-BackColor="#aaaadd" 
				Font-Size="8pt" 
				Font-Name="Verdana" 
				CellPadding="3" BorderWidth="1" 
				BorderColor="black">
					<Columns>
				<asp:TemplateColumn HeaderText="增加?">
							<ItemTemplate>							
				<asp:CheckBox id="chkAdd" runat="server" />
								
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:BoundColumn HeaderText="名字" DataField="name" />
						<asp:TemplateColumn HeaderText="生成验证?">
							<ItemTemplate>
								
				<asp:CheckBox id="chkValid" runat="server" />
								
							</ItemTemplate>
						</asp:TemplateColumn>
					</Columns>
				</asp:datagrid>
			<asp:Button id="Button1" 
				onclick="btnSubmit_Click" 
				runat="server" 
				Text="生成表单">
			</asp:Button> 
			</asp:panel>
			<asp:panel 
				id="pnlTextarea" 
				visible="false"
				 runat="server">
				<P>拷贝这些代码作为一个新的ASP.NET的页面表单</P>
			<TEXTAREA id="taResults" 
				name="taResults" 
				rows="40" cols="90" 
				runat="server"> 
				&lt;/asp:panel&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt;
				</TEXTAREA>
			</asp:panel>
		</form>
	</body>
</HTML>
