When you start working with ASP.NET sometimes it’s difficult to understand what is the difference between Eval and Bind for data binding controls in ASP.NET.
If you just need to display data on the screen from DataSource it’s enough to use Eval. It’s something like read-only method from DataSource.
But if you need to edit [...]
When I begin learning regular expression, I tried to find some tools to help me.
I found a couple of tools, it was Komodo regular expression and RegexBuddy. But both of this costs money. I tried to find free tools, but I was failed.
So I decided to create my own.
RegexMaster is a very simple tool, but [...]
For some simple pages in my application I prefer to use declarative manner of programming. To display some data on the page you can use this lines of code.
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ProviderName="System.Data.OracleClient"
SelectCommand="pac_dwh.Revew_item_info.GetAppPermissionInfoExt"
SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:QueryStringParameter Name="p_line_id"
[...]
To debug JavaScript I used this lines of code,
<script type="text/javascript">
function myFunc(){
debugger;
}
</script>
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, [...]
Not a long time ago Microsoft charting controls was announced. It’s a great controls. I used Syncfusion to make graphics, but it was too expensive. But now anybody can create graphics for free.
Download Microsoft Chart Controls
Download VS 2008 Tool Support for the Chart Controls
Download Microsoft Chart Controls Samples
Download Microsoft Chart Controls Documentation [...]
Yesterday I found great Resharper plugin, it calls StypeCop_for_Resharper. With this plugin it’s possible to check all StyleCop rules during writing code.
I tried to use it before, after it was installed, I run it on my project, and it was too many error messages, so I never run it any more.
But now with Resharper support, [...]
If you want to compare some constant string value with variable, you can use this code:
string myString = “hello”;
if(myString.ToUpper() == “HELLO”)
{
// do somthing
}
But in this case you have to check variable to null, because you can have null reference exception in method ToUpper()
string myString = “hello”;
if((null != myString) && (myString.ToUpper() == “HELLO”))
{
// do somthing
}
To avoid [...]