Browse by Tags

All Tags » Asp.net (RSS)
We all know that CommandArgument Property can remember value or index, but sometimes, there's nothing in it, do you know why? Today, i study for a while, and i find the following two ways. Use <asp:ButtonField CommandName="CMD" />, the CommandArgument...
Posted by Yonggang Meng | 2 comment(s)
Filed under: , , , ,
I have a web project developed in VS2008, which use System.Data.SQLite for .Net 2.0 and Linq to Entities to access data. Here is the source layout: You can see that i have a SQLite database Test_DB.db3 in SQLite folder. In my develop machine, i use connectiongstring...
In the actual develpment, we offen encounter such a problem about exporting data to excel or word, especially excel. I can export data to excel from gridview, but i can not apply styles to the excel cell. Last week, i found how to set the style. For example...
Posted by Yonggang Meng | 5 comment(s)
Filed under: , , ,
I have a web project, in the project, there is a MasterPage and some WebContentPages. In the MasterPage, there is a function, when you click a button, show or hide the left content.When you refresh or navigate other WebContentPage, the left content keeps...
Posted by Yonggang Meng | 25 comment(s)
Filed under: , , , ,
最近用ModelPopupExtender时,总是提示我有 Sys.InvalidOperationException 未通过 Sys.UI.DomEvent.addHandler 的错误,后来发现是我设置了CancellControlID,而没有设置相应的事件,我是通过在服务器端Show和Hide来控制的,这样脚本在寻找CancellControlID的时候就找不到了,就为null,在脚本中就会抛出以上错误。所以,如果我们要在服务器端控制ModelPopupExtender,不要设置ControlId就可以了...
Posted by Yonggang Meng | 3 comment(s)
Filed under: , , , ,
很久没有做Web开发了,本以为有以前的基础加上WinForm的开发经验,Web应该不是什么问题的,应该很Easy。但是现在我发现我错了,Web开发已经不是简单的事情了。现在Web开发出来的一些优秀产品已经比较接近WinForm了,这就提高了Web开发的门槛。所以,现在如果我们想做好Web的开发,至少应该了解以下几方面的开发知识: Asp.Net Asp.Net Ajax Asp.Net Ajax Client Library Asp.Net Ajax Future Controls and Ajax...
Posted by Yonggang Meng | 4 comment(s)
Filed under: , ,
When you add a Literal control to Page Header, for example: <head runat="server"> <asp:Literal runat="server" ID ="literal" >Literal Test!</asp:Literal> <title>Untitled Page</title> </head> When you browser the page...
Posted by Yonggang Meng | 3 comment(s)
Filed under: ,
More Posts