world time web service
Saturday, April 18, 2009
http://www.quantumsoftware.com.au/ProductsServices/WorldTimeWebService.aspx
Labels:
world time web service
Analysis Tools
NDepend (www.ndepend.com)
Powerful quite complex (and slow) but not free. If you don't pay for it you cannot export anything.
It supplies a great code query feature, but you can't really take advantage of it without a license.
Dependency Structure Matrix PlugIn for .NET Reflector (http://tcdev.free.fr/ )
This is really cool and it's free! Much easier then nDepend in evaluating dependency structure indeed it's definitely faster.
Source Monitor (http://www.campwoodsw.com/sourcemonitor.html)
Free and easy. Can be used in order to calculate metrics that can be exported to XML.
VisualStudio 2008 Code Analysis or FxCop
Depending on the environment you are currently in you can use MS FxCop or its integration with Visual Studio 2008.
DevAdvantage (http://www.anticipatingminds.com/content/Products/devAdvantage/devAdvantage.aspx )
If you are dealing with .NET 1.1 and Visual Studio 2003 this tool can help analyzing code (also for naming convention). It can also be used in order to automatically correct violations.
Anticipating Minds it's not doing business anymore, so devAdvantage it's now free.
At present we haven't really used it. Maybe when we'll play the build phase of the project.
CodeIt.Right (http://submain.com/?nav=products.cir)
Similar to DevAdvantage but also available for the .NET 2.0 environment. The tool is now at the beta stage.
Same thinking as for DevAdvantage: I cannot say much of it.
Compuware DevPartner Studio ( http://www.compuware.com/solutions/default.htm)
Last but not least DevParter Studio.
Simply the best! It's not really code analysis, but performance analysis (that I think it's essential in an architecture assessment).
I've used it on the .NET 1.1 platform and I know that the last edition added many features like Memory Analysis, Source Code Review, Error Detection and Diagnosis.
Powerful quite complex (and slow) but not free. If you don't pay for it you cannot export anything.
It supplies a great code query feature, but you can't really take advantage of it without a license.
Dependency Structure Matrix PlugIn for .NET Reflector (http://tcdev.free.fr/ )
This is really cool and it's free! Much easier then nDepend in evaluating dependency structure indeed it's definitely faster.
Source Monitor (http://www.campwoodsw.com/sourcemonitor.html)
Free and easy. Can be used in order to calculate metrics that can be exported to XML.
VisualStudio 2008 Code Analysis or FxCop
Depending on the environment you are currently in you can use MS FxCop or its integration with Visual Studio 2008.
DevAdvantage (http://www.anticipatingminds.com/content/Products/devAdvantage/devAdvantage.aspx )
If you are dealing with .NET 1.1 and Visual Studio 2003 this tool can help analyzing code (also for naming convention). It can also be used in order to automatically correct violations.
Anticipating Minds it's not doing business anymore, so devAdvantage it's now free.
At present we haven't really used it. Maybe when we'll play the build phase of the project.
CodeIt.Right (http://submain.com/?nav=products.cir)
Similar to DevAdvantage but also available for the .NET 2.0 environment. The tool is now at the beta stage.
Same thinking as for DevAdvantage: I cannot say much of it.
Compuware DevPartner Studio ( http://www.compuware.com/solutions/default.htm)
Last but not least DevParter Studio.
Simply the best! It's not really code analysis, but performance analysis (that I think it's essential in an architecture assessment).
I've used it on the .NET 1.1 platform and I know that the last edition added many features like Memory Analysis, Source Code Review, Error Detection and Diagnosis.
Labels:
Analysis Tools,
Free Stuff
.NET Technical Links 1
http://www.csharp-station.com/Tutorials/Lesson14.aspx
www.codeproject.com
www.codezone.com
www.asp.net
www.codeplex.com
www.dotnet2themax.com
www.interfaceconcepts.com
www.developeriq.com
http://pcquest.ciol.com
www.4guysfromrolla.com
https://mcp.microsoft.com/mcp/benefits/Default.mspx
http://www.csharp-station.com
www.codeproject.com
www.codezone.com
www.asp.net
www.codeplex.com
www.dotnet2themax.com
www.interfaceconcepts.com
www.developeriq.com
http://pcquest.ciol.com
www.4guysfromrolla.com
https://mcp.microsoft.com/mcp/benefits/Default.mspx
http://www.csharp-station.com
Labels:
.net,
.NET Technical Links,
asp.net
How to fix Error on Paging in datagrid
Friday, April 17, 2009
If you set AllowPaging="true" or AllowSorting="true" on a GridViewcontrol without using a DataSourceControl DataSource (i.e.SqlDataSource, ObjectDataSource), you will run into the followingerrors:
When changing the page on the GridView control:
TheGridView 'GridViewID' fired event PageIndexChanging which wasn'thandled.
When clicking a column name to sort the column on theGridView control:
The GridView 'GridViewID' fired event Sorting whichwasn't handled.
As a result of not setting the DataSourceID propertyof the GridView to a DataSourceControl DataSource, you have to add eventhandlers for sorting and paging.
OnPageIndexChanging="gridView_PageIndexChanging"OnSorting="gridView_Sorting" runat="server" />
private stringConvertSortDirectionToSql(SortDirection sortDireciton)
{
stringnewSortDirection = String.Empty;
switch (sortDirection)
{
case SortDirection.Ascending:
newSortDirection = "ASC";
break;
case SortDirection.Descending:
newSortDirection = "DESC";
break;
}
returnnewSortDirection
}
protected void gridView_PageIndexChanging(objectsender, GridViewPageEventArgs e)
{
gridView.PageIndex =e.NewPageIndex;
gridView.DataBind();
}
protected voidgridView_Sorting(object sender, GridViewSortEventArgs e)
{
DataTable dataTable = gridView.DataSource as DataTable;
if(dataTable != null)
{
DataView dataView = newDataView(dataTable);
dataView.Sort = e.SortExpression + " " +ConvertSortDirectionToSql(e.SortDirection);
gridView.DataSource= dataView;
gridView.DataBind();
}
}
When changing the page on the GridView control:
TheGridView 'GridViewID' fired event PageIndexChanging which wasn'thandled.
When clicking a column name to sort the column on theGridView control:
The GridView 'GridViewID' fired event Sorting whichwasn't handled.
As a result of not setting the DataSourceID propertyof the GridView to a DataSourceControl DataSource, you have to add eventhandlers for sorting and paging.
OnPageIndexChanging="gridView_PageIndexChanging"OnSorting="gridView_Sorting" runat="server" />
private stringConvertSortDirectionToSql(SortDirection sortDireciton)
{
stringnewSortDirection = String.Empty;
switch (sortDirection)
{
case SortDirection.Ascending:
newSortDirection = "ASC";
break;
case SortDirection.Descending:
newSortDirection = "DESC";
break;
}
returnnewSortDirection
}
protected void gridView_PageIndexChanging(objectsender, GridViewPageEventArgs e)
{
gridView.PageIndex =e.NewPageIndex;
gridView.DataBind();
}
protected voidgridView_Sorting(object sender, GridViewSortEventArgs e)
{
DataTable dataTable = gridView.DataSource as DataTable;
if(dataTable != null)
{
DataView dataView = newDataView(dataTable);
dataView.Sort = e.SortExpression + " " +ConvertSortDirectionToSql(e.SortDirection);
gridView.DataSource= dataView;
gridView.DataBind();
}
}
Subscribe to:
Posts (Atom)