1.模版列放webcontrol时,运行程序察看html代码发现为<input type=submit>,此时3正常。
2.模版列放Htmlcontrol时,运行程序察看html代码发现为<input type=button>此时3,4都不正常。报Specified cast is not valid.
3.  ((Button)e.Item.Controls("btnCancel")).Visible = false;
4.  ((HtmlButton)e.Item.Controls("btnCancel")).Visible = false;
现在我需要将button设置type=button,我哪里做的不对呢,有人知道吗?