页面调用(.aspx)

<%@ Register Src="~/myspace/UC/Friend_Diary.ascx" TagPrefix="uc" TagName="friend" %>
<uc:friend runat="server" UserID="3333" />

后台调用(.cs)

UserControl Member_Friend = (UserControl)LoadControl("UC/Member_Friend.ascx");
right.Controls.Add(Friend_Diary);
Member_Friend .UserID = 3333 ; //传参数


相关文章:

  • 2021-06-25
  • 2022-01-06
  • 2021-12-02
  • 2022-12-23
  • 2021-08-30
  • 2021-11-29
  • 2021-04-06
猜你喜欢
  • 2021-04-24
  • 2021-09-26
  • 2021-12-11
  • 2021-07-21
相关资源
相似解决方案