public ActionResult ListContract(string searchKey, int?page) { WebView.WebService._base myWebService; myWebService = new WebService._base(); WebService._base.OSPFeatureMaintenance FeatureList = new WebService._base.OSPFeatureMaintenance(); if (searchKey != null) { if (searchKey.Equals("")) { FeatureList = myWebService.GetOSPFeatureMaintenanceContract(0, 10000, null); } else { FeatureList = myWebService.GetOSPFeatureMaintenanceContract(0, 10000, searchKey); ViewBag.searchKey = searchKey; } } else { FeatureList = myWebService.GetOSPFeatureMaintenanceContract(0, 10000, null); ViewBag.searchKey = ""; } //System.Diagnostics.Debug.WriteLine(FeatureList.FeatureMaintenanceList[0].CONTRACT_NO + " : " + FeatureList.FeatureMaintenanceList[0].ITEM_NO); ViewData["data7"] = FeatureList.FeatureMaintenanceList; 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 = 15; int pageNumber = (page ?? 1); return(View(FeatureList.FeatureMaintenanceList.ToPagedList(pageNumber, pageSize))); }