Often you have to create a simple pages for your website, for example admin pages which allow you edit tables through web. When working with Ms Sql server it’s a very easy task which you can solve with SqlDataSource and DataGrid. But using Oracle it’s difficult to make your page work without exceptions and you [...]
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 [...]