does not contain a definition 页面上 <asp:DropDownList ID="DropDownList1" runat="server" Height="23px" Width="105px">有这样一个List在.cs文件里为什么报does not contain a definition这个list这样的错啊? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { if (this.DropDownList1.Text.ToString() == "Others") { this.DropDownList4.Visible = false; } }代码是这样 this.DropDownList4.Visible = false; 有DropDownList4吗???? DropDownList1DropDownList4报这两个都不存在啊...其实页面上都有啊... //this.DropDownList1.Text.ToString() this.DropDownList1.SelectedItem.Text.ToString() Error 1 'FAERequest' does not contain a definition for 'DropDownList1' C:\Documents and Settings\xichen\WebSite1\FAERequest.aspx.cs 22 14 C:\...\WebSite1\ 你这个错是因为DropDownList的问题吗??别的地方? 我this. 能点出来啊 if (this.DropDownList1.Text == "Others") { this.DropDownList4.Visible = false; } 报这两个list没定义啊... 见鬼了~~this.DropDownList1.Text 输出看看~~ Response.Write(this.DropDownList1.Text);编译通不过啊...还是一样的错.. 或许是你页面里的问题,<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>指定的和你的.aspx对应码? 各位大哥大姐 帮个忙 小弟初学 无法创建 WebApp的问题 如何从一篇html代码中获取"<title>你好</title>"值(使用正则表达式) 求助,win7下的framework1.1问题 做拍卖系统要注意什么问题? asp.net项目加载问题 高手进来呀 asp.net如何从一个文件到呈现给用户的网页?请详细说流程!!谢谢 想让RadioButtonList在一排显示怎么办,见内,谢谢. GetHttpWebRequest抓取不到这个站的内容,大神们帮看看 如何访问 repeater中<FooterTemplate>里面的label控件 [100分急求]记录网站错误的问题!
{
if (this.DropDownList1.Text.ToString() == "Others")
{
this.DropDownList4.Visible = false;
}
}
代码是这样
有DropDownList4吗????
DropDownList4
报这两个都不存在啊...
其实页面上都有啊...
this.DropDownList1.SelectedItem.Text.ToString()
别的地方?
{
this.DropDownList4.Visible = false;
}
报这两个list没定义啊...
this.DropDownList1.Text 输出看看~~