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 [...]
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"
[...]
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 [...]