one label is not desplaid in mozilla.why?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • indianmaestro
    New Member
    • Mar 2008
    • 16

    one label is not desplaid in mozilla.why?

    i have code like this in html

    <tr align="left">
    <td colspan="2">
    &nbsp;</td>
    <td align="left">
    <font color="red">pre ss ctrl for multiple selection</font>
    </td>
    </tr>
    <tr align="left">
    <td colspan="2">
    &nbsp;</td>
    <td>
    <font size="2"><asp:L abel ID="lblcnt" runat="server" Width="200"></asp:Label></font>
    </td>
    </tr>
    <tr align="left">
    <td colspan="2">
    &nbsp</td>
    <td>
    <asp:Label ID="lblmessage " runat="server" Width="200" ForeColor="red" Visible="true"> </asp:Label>
    </td>
    </tr>

    the label lblcnt is not displaid in mozilla, while it works fine in internet explorer . please help me
  • enggwaqas
    New Member
    • Jun 2007
    • 19

    #2
    Originally posted by indianmaestro
    i have code like this in html

    <tr align="left">
    <td colspan="2">
    &nbsp;</td>
    <td align="left">
    <font color="red">pre ss ctrl for multiple selection</font>
    </td>
    </tr>
    <tr align="left">
    <td colspan="2">
    &nbsp;</td>
    <td>
    <font size="2"><asp:L abel ID="lblcnt" runat="server" Width="200"></asp:Label></font>
    </td>
    </tr>
    <tr align="left">
    <td colspan="2">
    &nbsp</td>
    <td>
    <asp:Label ID="lblmessage " runat="server" Width="200" ForeColor="red" Visible="true"> </asp:Label>
    </td>
    </tr>

    the label lblcnt is not displaid in mozilla, while it works fine in internet explorer . please help me
    There isn't any problem with the HTML you pasted above, working fine and displaying the values of label controls on Mozilla FireFox and IE. Check your code which is setting the Text property of lblcnt

    Comment

    • indianmaestro
      New Member
      • Mar 2008
      • 16

      #3
      yes actually my coding is correct...... since there is no text the label looks like it's not visible, but actually it is visible ......

      any way thanks for the reply......

      can you please help how to send some text to this lable from javascript.

      i have tried this it's working fine in IE but not in mozilla......


      document.getEle mentById('<%=lb lcnt.ClientID%> ').innerText=co unt+" Student(s) selected";

      Comment

      • kunal pawar
        Contributor
        • Oct 2007
        • 297

        #4
        may be problem due in ur code,set text property,
        first try
        to assign default text to lable and then check it wroks properly or not

        <font size="2"><asp:L abel ID="lblcnt" runat="server" Width="200"></asp:Label></font>

        Comment

        Working...