悬赏园豆:20
[已解决问题]
解决于 2008-08-08 18:58
<P>如题。</P>
<P>比如如下一个GridView </P><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>-->
<DIV class=cnblogs_code><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">asp:GridView </SPAN><SPAN style="COLOR: #ff0000">ID</SPAN><SPAN style="COLOR: #0000ff">="GridView1"</SPAN><SPAN style="COLOR: #ff0000"> runat</SPAN><SPAN style="COLOR: #0000ff">="server"</SPAN><SPAN style="COLOR: #ff0000"> AutoGenerateColumns</SPAN><SPAN style="COLOR: #0000ff">="False"</SPAN><SPAN style="COLOR: #ff0000"> <BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top> DataKeyNames</SPAN><SPAN style="COLOR: #0000ff">="NewsID"</SPAN><SPAN style="COLOR: #ff0000"> DataSourceID</SPAN><SPAN style="COLOR: #0000ff">="SqlDataSource1"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">Columns</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">asp:BoundField </SPAN><SPAN style="COLOR: #ff0000">DataField</SPAN><SPAN style="COLOR: #0000ff">="Title"</SPAN><SPAN style="COLOR: #ff0000"> HeaderText</SPAN><SPAN style="COLOR: #0000ff">="Title"</SPAN><SPAN style="COLOR: #ff0000"> SortExpression</SPAN><SPAN style="COLOR: #0000ff">="Title"</SPAN><SPAN style="COLOR: #ff0000"> </SPAN><SPAN style="COLOR: #0000ff">/></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">asp:BoundField </SPAN><SPAN style="COLOR: #ff0000">DataField</SPAN><SPAN style="COLOR: #0000ff">="AddTime"</SPAN><SPAN style="COLOR: #ff0000"> HeaderText</SPAN><SPAN style="COLOR: #0000ff">="AddTime"</SPAN><SPAN style="COLOR: #ff0000"> <BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top> SortExpression</SPAN><SPAN style="COLOR: #0000ff">="AddTime"</SPAN><SPAN style="COLOR: #ff0000"> DataFormatString</SPAN><SPAN style="COLOR: #0000ff">="{0:yyyy-MM-dd}"</SPAN><SPAN style="COLOR: #0000ff">/></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">asp:BoundField </SPAN><SPAN style="COLOR: #ff0000">DataField</SPAN><SPAN style="COLOR: #0000ff">="AccountID"</SPAN><SPAN style="COLOR: #ff0000"> HeaderText</SPAN><SPAN style="COLOR: #0000ff">="AccountID"</SPAN><SPAN style="COLOR: #ff0000"> <BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top> SortExpression</SPAN><SPAN style="COLOR: #0000ff">="AccountID"</SPAN><SPAN style="COLOR: #ff0000"> </SPAN><SPAN style="COLOR: #0000ff">/></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">asp:BoundField </SPAN><SPAN style="COLOR: #ff0000">DataField</SPAN><SPAN style="COLOR: #0000ff">="NewsID"</SPAN><SPAN style="COLOR: #ff0000"> HeaderText</SPAN><SPAN style="COLOR: #0000ff">="NewsID"</SPAN><SPAN style="COLOR: #ff0000"> InsertVisible</SPAN><SPAN style="COLOR: #0000ff">="False"</SPAN><SPAN style="COLOR: #ff0000"> <BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top> ReadOnly</SPAN><SPAN style="COLOR: #0000ff">="True"</SPAN><SPAN style="COLOR: #ff0000"> SortExpression</SPAN><SPAN style="COLOR: #0000ff">="NewsID"</SPAN><SPAN style="COLOR: #ff0000"> </SPAN><SPAN style="COLOR: #0000ff">/></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">asp:TemplateField</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">ItemTemplate</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">asp:TextBox </SPAN><SPAN style="COLOR: #ff0000">ID</SPAN><SPAN style="COLOR: #0000ff">="txtbx"</SPAN><SPAN style="COLOR: #ff0000"> runat</SPAN><SPAN style="COLOR: #0000ff">="server"</SPAN><SPAN style="COLOR: #ff0000"> Text</SPAN><SPAN style="COLOR: #0000ff">='<%# </SPAN><SPAN style="COLOR: #ff0000">Eval("AccountID") %</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">'></SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">asp:TextBox</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">ItemTemplate</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">asp:TemplateField</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">Columns</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">asp:GridView</SPAN><SPAN style="COLOR: #0000ff">></SPAN></DIV>
<DIV class=cnblogs_code><SPAN style="COLOR: #0000ff"> </SPAN></DIV>
<DIV class=cnblogs_code><SPAN style="COLOR: #0000ff">我要用javascript获取txtbx的值,然后根据这个值做些修改。用什么能实现。谢谢各位啦。</SPAN></DIV>