摘要: 问题与要求是这样的。网页ASPX有一个Label,此也是TextBox的Title。还有几个用户控件ASCX,每个ASCX都有一个属性。网页会根据实际情况的需要而去动态加载这些用户控件。在加载时,网页ASPX的TextBox的Title的Label的文字会根据加载的用户控件的属性而改变。写得有点呦口。下面Insus.NET在几个用户控件中,只列写一个,因为语法一样,只是属性值不一样。UserControlA usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Web.U 阅读全文
posted @ 2012-11-01 17:10 Insus.NET 阅读(833) 评论(0) 推荐(1) 编辑
摘要: 近段时间,Insus.NET不断补学习Javascript知识。但在练习写返回上一页的功能时,却遇上一点小问题:<script>history.go(-1);</script>不管怎样,它就是不返回上一页。经查资料,原来在asp.net的处理方式已经有所改变。当用户点击按钮时,页已经刷新了。因此我们需要把-1改为-2方可以返回至前一页。View Code protectedvoidButtonGoBack_Click(objectsender,EventArgse){this.Page.ClientScript.RegisterClientScriptBlock(thi 阅读全文
posted @ 2012-11-01 10:23 Insus.NET 阅读(1415) 评论(0) 推荐(1) 编辑