Update zip archive functionality
add download buttons for multiple input/output
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Collections.Specialized;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Routing;
|
||||
|
||||
namespace LeafWeb.WebCms.Utility
|
||||
{
|
||||
@@ -27,5 +28,13 @@ namespace LeafWeb.WebCms.Utility
|
||||
|
||||
return nvs;
|
||||
}
|
||||
|
||||
public static RouteValueDictionary ToRouteValueDictionary(this NameValueCollection nvc)
|
||||
{
|
||||
var routeValues = new RouteValueDictionary();
|
||||
foreach (var key in nvc.AllKeys)
|
||||
routeValues.Add(key, nvc[key]);
|
||||
return routeValues;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user