诚心求教:datacolumn对象数据类型声明代码错误
<%@ import namespace="system.data" %><%@ import namespace="system.data.oledb" %>
<script language="vb" runat="server">
sub page_load(sender as object,e as eventargs)
dim pstab as new datatable()
dim pscol as new datacolumn
dim aa as string
aa="标题1"
pstab.tablename="mytab"
pscol=new datacolumn()
pscol.columnname=aa
**************'pscol.datatype=system.type.gettype("system.string")
此处为声明数据类型,程序运行到此就报错。请高人指点一二。诚谢!
pstab.columns.add(pscol)
response.write("<center><font size=13 color=blue>数据添加完成</font></center>")
end sub
</script>