随笔分类 -  aspnet前后台交互

aspnet 后台调用前台js函数
摘要:this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "testalert", " <script type=text/javascript >testAlert();</script>"); 阅读全文

posted @ 2017-11-23 15:40 A欣

aspnetpaper分页
摘要:if (!IsPostBack) { try { this.AspNetPager_openlog.RecordCount = (int)bot.GetRecordCount("");//注意此处不要遗漏 BindData(); } catch { } } protected void AspNet 阅读全文

posted @ 2017-08-08 15:37 A欣

asp.netcheckBox添加绑定属性,后台获取
摘要:前台 <asp:CheckBox ID="CheckBox1" runat="server" Value ='<%#Eval("Uid")%>' OnCheckedChanged ="userstate_CheckedChanged" /> 后台获取 protected void userstate 阅读全文

posted @ 2017-08-02 18:42 A欣

用js实现关闭页面后台事件
摘要:前台代码: window._onbeforeunload = function(){ $('txtrefchild').click(); return true;} 后代代码: protected void txtrefchild_Click(object sender, EventArgs e){ 阅读全文

posted @ 2017-07-27 11:41 A欣

导航