在浏览器中看不到CheckBoxList [英] Can't see CheckBoxList in browser

查看:86
本文介绍了在浏览器中看不到CheckBoxList的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在浏览器中看不到CheckBoxList控件.visible属性设置为true.
这是我的ASP代码:

I can''t see CheckBoxList control in browser.The visible property is set to true.
Here my ASP code:

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <br/>
    <asp:Label ID="lb2" runat="server" Text="Small Picture:"></asp:Label>
    <br/>
    <asp:FileUpload ID="fuld1" runat="server" />
    <br />
    <br/><br/>
    <asp:Label ID="lb3" runat="server" Text="Big Picture:"></asp:Label>
    <br/>
    <asp:FileUpload ID="fuld2" runat="server" />
    <br/><br/>
    <asp:Label ID="lb4" runat="server" Text="Description:"></asp:Label>
    <br/>
    <asp:TextBox ID="tb3" runat="server"></asp:TextBox>
    <br />
    <br />

    <asp:DropDownList ID="ddl1" runat="server"  

        onprerender="ddl1_PreRender">
    </asp:DropDownList>
    <br/>
    <br/>
    <asp:DropDownList ID="ddl2" runat="server"

        onprerender="ddl2_PreRender">
    </asp:DropDownList>
    <br/>
    <br />
    <asp:Label ID="lb5" runat="server" Text="Choose color glasses: " 

        Font-Size="Large"></asp:Label>
     <br/>
    <asp:CheckBoxList ID="CheckBoxList1" runat="server" AutoPostBack="True">
    </asp:CheckBoxList>
     <br/>
    <asp:Button ID="btn2" runat="server" Text="Upload" Font-Size="XX-Large" 

        onclick="btn2_Click" />
</asp:Content>



这是后面的代码(我在CheckBoxList1_PreRender附近设置了制动点,但是在调试模式下,此事件被忽略了):




here is code behind (I set a brake point near CheckBoxList1_PreRender,but in debug mode this event was ignored):


protected void CheckBoxList1_PreRender(object sender, EventArgs e)
{
  var ColorList = BL.FooBL.GetColorList();
  foreach (var item in ColorList)
  {
   CheckBoxList1.Items.Add(new ListItem(item.ColorName, item.ColorID.ToString()));
  }
}



除CheckBoxList1控件外,我在调试模式下会在页面上看到所有其他控件.

可能是什么问题?在此先谢谢您.



All other control I see in debbug mode on page except CheckBoxList1 control.

what may be the problem? Thank you in advance.

推荐答案

look man我建议您更改浏览器,特别是如果您使用的是chrome或firefox,则因为某些控件没有被支持并且尝试使用IE 7.0我认为这是最好的版本(对于程序员),它允许您调试 aspx页面

问候
look man i advise you to change your browser and specially if you are using chrome or firefox becuase some controls are not suported and try to use IE 7.0 i think it is the best version(for programmers) and it allows you to debug the aspx page

regards


这篇关于在浏览器中看不到CheckBoxList的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆