我需要在我的Web应用程序中引用一个使用母版页生成的控件.HTML中控件的名称变为类似"ctl00 $ MainContent $ ListBox1".我可以在代码中安全地执行此操作吗?
string strName = "ctl00$MainContent$ListBox1";
if (Request.Form[strName] != null)
{
String selectedLanguage = Request.Form[strName];
}
Run Code Online (Sandbox Code Playgroud)
PS.我无法使用ClientID属性,因为此代码是从InitializeCulture()覆盖调用的.