How to call the ASCX parameters called the ASPX

zhaozj2021-02-12  189

Write a PUBLIC property in Ascx.cs such as string _value; public string value {get {return_value;} set {_value = value;}}

Loading in the webpage:

///Such as:

Such as:

Control TmpControl = this.page.loadControl ("*. ASCX");

this.PanelData.Controls.Add (TmpControl);

转载请注明原文地址:https://www.9cbs.com/read-7086.html

New Post(0)