页面怎么传值给类,类怎么接收页面传来的值
求助:页面如何传值给类,类如何接收页面传来的值页面a.aspx.cs文件有值boot,动态值C# codestring boot Se
求助:页面如何传值给类,类如何接收页面传来的值
页面a.aspx.cs文件有值boot,动态值
C# codestring boot = Server.MapPath(DropDownList1.SelectedItem.Value);
类b.cs
C# codepublic static string Root =
请问,如何将页面boot的值传给类
类b.cs如何接收boot,并赋给root
[解决办法]b中的是static变量,直接用 b.root = xxxxx
[解决办法][解决办法]