Nothing is final!!!
Try what I want, do what I can!
-
The difference between Equals and ==
-
Two ways to make CommandArgument have value in GridView
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 will memory the RowIndex of the GridView automatically.
- Use <asp:TemplateField><ItemTemplate><asp:Button CommandName="MCMD" CommandArgument="Value" /></ItemTemplate></asp:TemplateField>, the Argument value is Value
- Use <asp:ButtonField CommandName="CMD" />, the CommandArgument will memory the RowIndex of the GridView automatically.
-
Know more about Assembly
If you want to know what an assembly does, you can use Reflector to refactor the assembly and check the codes.
If you want to know why binding assembly failed, you can use Assembly Binding Log Viewer to check it. Also you should set HKLM\Software\Microsoft\Fusion\ForceLog registry value to 1.
When the assembly is used, you want to know what the assembly uses, you can use Process Explorer. -
Get the last day of the month use javascript in VS2008
I have a function which returns the last day of a month. The function is like this:
-
Use UdpClient to send and receive message
Server:
-
Excel data type seems strange when use ado.net to select
Recently, we need import some data from excel to Oracle database. A strange thing confused me.
-
Problem about SQLite and Linq to Entities
I have a web project developed in VS2008, which use System.Data.SQLite for .Net 2.0 and Linq to Entities to access data.
-
Export data to excel or word
In the actual develpment, we offen encounter such a problem about exporting data to excel or word, especially excel.
-
SQL 表信息问题
若要查看表的列名,可以使用 sp_help 或下列查询之一:SELECT name FROM sys.columns WHERE OBJECT_ID IN (SELECT OBJECT_ID ('table_name')) 或 SELECT TOP 0 * FROM table_name。
1. Execute sp_help tablename 如: Execute sp_help 'Schedule'
2. Select Top 0 * From tablename 如:Select Top 0 * From 'Schedule'
3. Select name From sys.columns where Object_Id In (Select Object_Id(tablename)) 如: Select name From sys.columns where Object_Id In (Select Object_Id('Schedule'))
三种的区别如下:
1. 可以得到table的详细信息,可以得到五个表
2. 一个无记录行的表结构
3. 一个单列表,列名name,内容是表的列名称 -
How to invoke PageMethods in MasterPage
<div id="left" style='<%=string.Format("display:{0}",GetToolbarDisplayFlag())%>'>