Archives
Archives /
2010
-
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.