Contents tagged with C#
-
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.
-
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.
-
How to invoke PageMethods in MasterPage
<div id="left" style='<%=string.Format("display:{0}",GetToolbarDisplayFlag())%>'>