我正在提交以下表格:
<td colspan="2">
<asp:TextBox Width="100%" Height="200px" ID="NoteTextBox" CssClass="tb_sm" Style="text align:left"
runat="server" TextMode="MultiLine"></asp:TextBox></td></tr>
<tr><td align="right"> <asp:Button ID="Done" runat="server" Text="Done" OnClick="Done_click"/></td>
public string Done_click(object sender, EventArgs e) {
String a = NoteTextBox.Text;
// on the basis of that value i have to return a string
if(a == "xyz") {retrun "Ok"}
else {return "nop"}
}
根据某些条件从Done_click
方法返回一个字符串,我没有得到的是在给定的打印返回值ID=NoteTextBox
。
我该怎么做?