【发布时间】:2011-06-24 09:59:32
【问题描述】:
我有一个由第 3 方控件生成的表。该表只有一行一列。此列中的 html 文本如下:
<p>
this is a test</p>
<p>
<input name="amount" type="text" value="this is for amount" /></p>
<p>
this is a test</p>
<p>
<input name="test" type="text" value="this is for test" /></p>
<p>
this is a test</p>
问题是如何获取保存在 html 输入控件中的值? 我尝试了以下代码,但失败了:
t.Rows[0].Cells[0].FindControl("amount");
提前谢谢...
【问题讨论】: