<td id="PrintMode1" Runat="server" width="50" align="center" valign="middle" >
<asp:TextBox ID="TextBox1" onkeypress="isnum()" runat="server" Width="50"></asp:TextBox>
</td>当我在td中加上Runat="server" 后,在后台中不能向TextBox中赋值,去掉就可以,不知道为什么 有什么解决方法吗?
<asp:TextBox ID="TextBox1" onkeypress="isnum()" runat="server" Width="50"></asp:TextBox>
</td>当我在td中加上Runat="server" 后,在后台中不能向TextBox中赋值,去掉就可以,不知道为什么 有什么解决方法吗?
If pfzp <> "" Then
If k < pfzpid.Length Then
DirectCast(ctrl, TextBox).Text = pfzpid(k).ToString()
Else
DirectCast(ctrl, TextBox).Text = "0.00"
End If
Else
DirectCast(ctrl, TextBox).Text = "0.00"
End If k = k + 1
End If
Next ctrl 是这样的
<asp:TextBox ID="TextBox1" onkeypress="isnum()" runat="server" Width="50"> </asp:TextBox>
</td>
改成
<asp:panel id="PrintMode1" Runat="server" >
<td width="50" align="center" valign="middle" >
<asp:TextBox ID="TextBox1" onkeypress="isnum()" runat="server" Width="50"> </asp:TextBox>
</td>
</asp:panel>
后台 隐藏pane就可以了
不是<input>类型的控件,在没通过TextBox1.Attribut.add("onkeypress","isnum();return false")
能执行脚本吗?呵呵,具体我也不大懂,哪位能帮看看这对吗?