Beispiel #1
0
 /// <summary>
 /// Appends the current request's query string values to the object's values as a <see cref="RouteValueDictionary"/>.
 /// </summary>
 /// <param name="userControl"></param>
 /// <param name="routeValues"></param>
 /// <param name="excludeProperties"></param>
 /// <returns></returns>
 public static RouteValueDictionary MergeFormValues(this ViewUserControl userControl, object routeValues, params string[] excludeProperties)
 {
     return(RouteValueHelper.Combine(routeValues, excludeProperties, userControl.Request.Form));
 }
Beispiel #2
0
 /// <summary>
 /// Appends the current request's query string values to the object's values as a <see cref="RouteValueDictionary"/>.
 /// </summary>
 /// <param name="page">Current page.</param>
 /// <param name="routeValues">Object values to which the query string values will be combined.</param>
 /// <param name="excludeProperties">List of properties to exclude from combining.</param>
 /// <returns></returns>
 public static RouteValueDictionary MergeQSValues(this ViewPage page, object routeValues, params string[] excludeProperties)
 {
     return(RouteValueHelper.Combine(routeValues, excludeProperties, page.Request.QueryString));
 }