为什么找不到控件
赢光小虾米 2007-03-30 02:16:20 DropDownList dropdownlistevents = (DropDownList)PreviousPage.FindControl("dropdownlistevents");
string selectedEvent = dropdownlistevents.SelectedValue;
string firstname = ((TextBox)PreviousPage.FindControl("TextBox1")).Text;
string lastname = ((TextBox)PreviousPage.FindControl("TextBox2")).Text;
Label1.Text = firstname + " " + lastname + " selected the event " + selectedEvent;
我在第二个页面上显示第一个页面的内容,为什么在查找控件.FindControl方法上找不到
TextBox1 和 TextBox2控件啊.是不是要引用什么啊。