如果在Page.IsPostBack的页面中可以通过Request来进行.但是在!Page.IsPostBack页面,这样就无法传递参数,具体方法如下:
引用用户控件页面html代码
1如何向用户控件传递参数<uc1:usercontrol params="1" id="ut" runat="server">
用户控件后台编码
 1如何向用户控件传递参数private string _params;
 2如何向用户控件传递参数public string params
 3}
这样即可在用户控件内部使用外部传递的参数

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
  • 2021-12-11
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-07
  • 2022-12-23
  • 2021-09-09
  • 2021-06-23
  • 2022-12-23
相关资源
相似解决方案