悟生慧

 

2011年3月28日

ASP.NET获取<EmptyDataTemplate></EmptyDataTemplate>模板中的textBox控件值

摘要: 前台<EmptyDataTemplate> <table> <tr style="color: Black; background-color: SkyBlue; font-weight: bold;"> <th scope="col" style="width: 10px;"> &nbsp; </th> <th scope="col" style="width: 190px;"> 名称 </th> &l 阅读全文

posted @ 2011-03-28 15:12 悟生慧 阅读(1220) 评论(0) 推荐(0)

ASP.NETLinkButton的Click事件中获取CommandArgument的值

摘要: /// <summary> /// LinkButton的onClick事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void linkBtnName_Click(object sender, EventArgs e) { LinkButton btn = (LinkButton)sender; //强转一下。 String SelectedKeyV 阅读全文

posted @ 2011-03-28 15:09 悟生慧 阅读(2689) 评论(1) 推荐(0)

关于绑定了GridView控件后怎么截取字符串和CSS样式来控制表头不换行

摘要: 第一种:<HTML> <HEAD> <TITLE> New Document </TITLE> <style type="text/css"> .aa{ display: block; width: 200px; overflow: hidden; white-space: nowrap; -o-text-overflow: ellipsis; text-overflow: ellipsis; } </style> </HEAD> <BODY> <div class=&qu 阅读全文

posted @ 2011-03-28 14:41 悟生慧 阅读(515) 评论(0) 推荐(0)

winfrom的TextBox获取光标

摘要: this.ActiveControl = txtStuName; 阅读全文

posted @ 2011-03-28 13:04 悟生慧 阅读(275) 评论(0) 推荐(0)

初始化页面的时候,如何使TextMode="Password"的asp:textbox有默认值显示?

摘要: <asp:textbox id="tboxPsw" runat="server" TextMode="Password" Width="170px"></asp:textbox>答2:tboxPsw.Attributes.Add("value","12343"); 阅读全文

posted @ 2011-03-28 13:02 悟生慧 阅读(1048) 评论(0) 推荐(0)

导航