# Emrys.UrlUtil
**Repository Path**: emrys5/Emrys.UrlUtil
## Basic Information
- **Project Name**: Emrys.UrlUtil
- **Description**: asp.net 中组合URL
- **Primary Language**: C#
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2017-06-07
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Emrys.UrlUtil
### 1、路径组合URL
UrlUtil.BuildUrl("http://www.baidu.com","user","login");
返回:http:/www.xxxxxx.com/user/login
### 2、带参数组合
Dictionary dic = new Dictionary();
dic.Add("name", "emrys");
dic.Add("age", "18");
UrlUtil.BuildUrl("http://www.xxxxxx.com", dic)
返回:http://www.xxxxxx.com?name=emrys&age=18
### 2、带参数和路径组合
Dictionary dic = new Dictionary();
dic.Add("name", "emrys");
dic.Add("age", "18");
UrlUtil.BuildUrl("http://www.xxxxxx.com","user","login",dic)
返回:http://www.xxxxxx.com/user/login?name=emrys&age=18