Today I m faced a problem when I want to re-use Enum without major change on the based code.
Here the simple example,
I got a drop down list which bind Enum, here the sample code:
public enum Gender
{
[Description("I m a Male")] M,
[Description("I m a Female")] F
}
if you just bind the Enum, your dropdownlist will simply show you [...]
Posts Tagged ‘asp.net’
extending Enum
Posted in ASP.NET 2.0, asp.net, tagged asp.net on January 16, 2008 | Leave a Comment »
Delete the cache if updated code is not affect the change!
Posted in ASP.NET 2.0, tagged asp.net on December 17, 2007 | Leave a Comment »
Please delete the cache which located in <%System Drive%>\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\<%Project Name%>
if the system not allow you to delete because of “currently in used”, you can choose to restart the system or issue “iisreset” in command prompt.
DNN Site Map
Posted in ASP.NET 2.0, DotNetNuke v4, tagged asp.net, DotNetNuke 4.5 on October 3, 2007 | Leave a Comment »
If your DNN website need a site map, you can find the open source application from here.
After deploy the DNN SiteMap, the DNN really solve my problem, but I found out the SiteMap’s parent node order is not same with Tab Menu’s Order.
Here the Solution,
download the source code here
launch the VS.NET 2005 and open the solution
double click [...]