public ActionResult PUMM_List(string searchKey, int?page) { WebView.WebService._base myWebService; myWebService = new WebService._base(); WebService._base.OSPPUMM PUMM = new WebService._base.OSPPUMM(); if (searchKey != null) { if (searchKey.Equals("")) { PUMM = myWebService.GetOSPPUMM(0, 1000, null); } else { PUMM = myWebService.GetOSPPUMM(0, 1000, searchKey); ViewBag.searchKey = searchKey; } } else { PUMM = myWebService.GetOSPPUMM(0, 1000, null); ViewBag.searchKey = ""; } ViewData["data7"] = PUMM.PUMMList; string input = "\\\\adsvr"; //string input = "\\\\server\\d$\\x\\y\\z\\AAA"; string output = String.Format("http:{0}", input.Replace("\\d$\\x\\y", String.Empty).Replace("\\", "/")); ViewBag.output = output; //return View(); int pageSize = 5; int pageNumber = (page ?? 1); return(View(PUMM.PUMMList.ToPagedList(pageNumber, pageSize))); }