大家好.发一下不会的东东
1.repeater里的项目模版<ItemTemplate>里有一个<asp:DropDownList
我要引用这个dropdownlist应该怎么写?
这样写:
string E_cate_blog = ((DropDownList)sa_rpt_base_edit.FindControl("cate_blog")).SelectedItem.Value;
好像不对啊
提示错误:
异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。2.javascript验证FCK编辑器时.他的ID是什么?应该怎么验证编辑器是否为空
getElementById(id)3.DropDownList赋了值
    <asp:DropDownList ID="cate_blog" runat="server">
    <asp:ListItem Text="个人空间" Value="个人空间" />
    <asp:ListItem Text="资源分享" Value="资源分享" />
    <asp:ListItem Text="电脑网络" Value="电脑网络" />
    <asp:ListItem Text="生活时尚" Value="生活时尚" />
    <asp:ListItem Text="情感绿洲" Value="情感绿洲" />
    <asp:ListItem Text="娱乐休闲" Value="娱乐休闲" />
    </asp:DropDownList>
在数据库里读出了这个值是"生活时尚".如何让<asp:ListItem Text="生活时尚" Value="生活时尚" />这一项selected高手帮忙!谢了!