今天看了老赵的文章可是怎么都调试不通过。代码如下: [AjaxPro.AjaxMethod] public string gethtml() {UcViewHelper viewManager = new UcViewHelper(); UserControl control = viewManager.LoadViewControl("~/uc/giftoutmodel.ascx"); string s=viewManager.RenderView(control);return s;}public class UcViewHelper where T : UserControl { private MyPage m_pageHolder; public T LoadViewControl(string path) { m_pageHold...
今天看了老赵的文章可是怎么都调试不通过。代码如下: [AjaxPro.AjaxMethod] public string gethtml() {UcViewHelper<UserControl> viewManager = new UcViewHelper<UserControl>(); UserControl control = viewManager.LoadViewControl("~/uc/giftoutmodel.ascx"); string s=viewManager.RenderView(control);return s;}public class UcViewHelper<T> where T : UserControl { private MyPage m_pageHolder; public T LoadViewCont...