摘要: 首先介绍一下自己的背景,本人09年研究生毕业,大学就不介绍了,反正是上海的一所211大学,学的是计算机科学与技术专业,学生时代,从事过ACM,没有什么太大的成就,中国的牛人是在太多,我的水平,估计连高中生都pk不过。毕业后到现在,一共待过4个公司,Wicresoft,Chinasoft,Beyondsoft,一直到现在的位于人民广场的一个公司,公司名就暂不介绍了,如果哪天不在这个公司做了,再把公司名字说出来吧。在Wicresoft,主要从事Asp.net开发,使用C#,这个也是一种使用到现在的主要语言,由于Wicresoft的工资实在太低,做了一年,合同结束后,就跳到了位于闵行紫竹的China 阅读全文
posted @ 2012-10-31 21:26 minglz 阅读(35897) 评论(87) 推荐(25) 编辑
摘要: for Firefox:function selectRow(obj, id, rowID, e) { // maybe 'e' should put last if ($.browser.mozilla) { var event = e; if (event.ctrlKey == true) { // do something here } }}for IE:function selec... 阅读全文
posted @ 2012-03-20 13:46 minglz 阅读(515) 评论(0) 推荐(0) 编辑
摘要: 在Visual Studio中如果Load一个控件,路径可以像一下这么写:usrQuestion control = (usrQuestion)this.Page.LoadControl("/UserControls/usrQuestion.ascx");以上的load是成功的,程序可以在指定的路径下找到控件。但是将网站部署到IIS中,发现程序找不到该控件,显示错误为:“The virtual path '/UserControls/usrQuestion.ascx' maps to another application”,解决该问题的方法为在路径的最前面 阅读全文
posted @ 2011-12-23 10:15 minglz 阅读(414) 评论(1) 推荐(0) 编辑
摘要: CheckBox 控件新增加了两个属性:InputAttributes 和 LabelAttributes 。利用这两个属性,可以很方便地为label和input标签添加自定义属性,而使用 Attributes 则是不能完成这2个任务的。举一个例子,页面中定义一个asp:CheckBox:<asp:CheckBox ID="cbTest" Text="CheckBox" runat="server" />在后台代码中使用Attributes属性为其添加onclick事件:cbTest.Attributes.Add(&quo 阅读全文
posted @ 2011-12-12 10:24 minglz 阅读(1076) 评论(1) 推荐(1) 编辑
摘要: 开发asp.net控件的时候,有时候需要为控件定义javascript方法,当页面加载该控件的时候,javascript方法也会一同被加载。但是这样有可能会产生一个问题,当页面中只包含该控件一次,那么不会产生问题,但是如果包含该控件多次,则可能产生javascript方法的调用问题。举一个例子,如下:定一个控件:userControl.ascx,该控件的作用就是当选中checkbox时,会显示div中的"Hello!",反之则隐藏。<%@ Control Language="C#" AutoEventWireup="true" 阅读全文
posted @ 2011-12-08 10:55 minglz 阅读(783) 评论(2) 推荐(0) 编辑
摘要: $(document).ready(function() { $("#btnSubmit").click(function() { alert($("input[name='RadioButtonList1']:checked").val()); }); }); <asp:RadioButtonList ID="RadioButtonList1" runat="server"> <asp:ListItem>1</asp:ListItem> <asp:List 阅读全文
posted @ 2011-12-06 16:39 minglz 阅读(994) 评论(1) 推荐(0) 编辑
摘要: <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> <asp:Panel ID="p1" runat="server"> <a href='a.aspx?Id=<%# Eval("id") %>'>编辑</a> </asp:Panel> </ItemTemplate></asp:Repeater>prote 阅读全文
posted @ 2011-12-05 11:00 minglz 阅读(682) 评论(0) 推荐(0) 编辑
摘要: <a href="mailto:xxx@yahoo.cn">xxx</a>After click on xxx 阅读全文
posted @ 2011-12-05 09:52 minglz 阅读(591) 评论(0) 推荐(0) 编辑
摘要: Imagine you have a control which registers some trivial script, which has to be executed during loading of the page. To do that you will usually use following method:page.ClientScript.RegisterStartupScript(…)After some time, you decide to use the same control inside of UpdatePanel and find out that 阅读全文
posted @ 2011-12-02 15:23 minglz 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 定义和用法rules 属性规定内侧边框的哪个部分是可见的。从实用角度出发,最好不要规定 rules,而是使用 CSS 来添加边框样式。实例下面的例子规定只有行之间的边框是可见的:<table rules="rows"> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>January</td> <td>$100</td> </tr></table>浏览器支 阅读全文
posted @ 2011-11-30 15:12 minglz 阅读(1002) 评论(0) 推荐(0) 编辑