日期:2014-05-18  浏览次数:20807 次

求助:页面如何传值给类,类如何接收页面传来的值
页面a.aspx.cs文件有值boot,动态值
C# code
string boot = Server.MapPath(DropDownList1.SelectedItem.Value);


类b.cs


C# code
public static string Root =


请问,如何将页面boot的值传给类

类b.cs如何接收boot,并赋给root



------解决方案--------------------
b中的是static变量,直接用 b.root = xxxxx
------解决方案--------------------
探讨

我想弄成动态的

------解决方案--------------------
探讨
希望Root随着boot的值变化而变化?