Bug in asp:Table ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?THVib21pcg==?=

    Bug in asp:Table ?

    Hi,

    I have the table like below:

    <asp:Table ID="tblControls " runat="server" HorizontalAlign ="Center"
    Width="768px"
    Font-Names="Tahoma" Font-Size="Small" BorderStyle="So lid"
    BorderColor="Cy an"
    BorderWidth="1p x" meta:resourceke y="tblControlsR esource1">
    <asp:TableFoote rRow meta:resourceke y="TableFooterR owResource1"
    runat="server">
    <asp:TableCel l ColumnSpan="3" Height="50"
    HorizontalAlign ="Center" VerticalAlign=" Bottom"
    meta:resourceke y="TableCellRes ource8" runat="server">
    <asp:Button ID="TestButton " runat="server" Text="Some
    text" meta:resourceke y="ButtonResour ce1" />
    </asp:TableCell>
    </asp:TableFooter Row>
    </asp:Table>

    The button TestButton is not rendered at all. When I remove the meta tag
    meta:resourceke y="TableCellRes ource8 from the "table cell" everything works
    fine. The removed metatag has no value assigned in the resources. So doesn't
    have TableFooterRowe Resource1 neither ButtonResource1 .

    Is it a bug in rendering for the asp table, or am I missing something?

    Thanks,
    Lubomir
  • Patrice

    #2
    Re: Bug in asp:Table ?

    Works fine here (VS 2008 Dev Web Server).

    I would try to keep meta:resourceKe y and to delete all resource files to see
    if it seems to come from the meta tag or from the resource file content...

    --
    Patrice

    "Lubomir" <Lubomir@discus sions.microsoft .coma écrit dans le message de
    groupe de discussion : D3FDCD91-C63F-421E-BE03-DAC0054CF5BE@mi crosoft.com...
    Hi,
    >
    I have the table like below:
    >
    <asp:Table ID="tblControls " runat="server" HorizontalAlign ="Center"
    Width="768px"
    Font-Names="Tahoma" Font-Size="Small" BorderStyle="So lid"
    BorderColor="Cy an"
    BorderWidth="1p x" meta:resourceke y="tblControlsR esource1">
    <asp:TableFoote rRow meta:resourceke y="TableFooterR owResource1"
    runat="server">
    <asp:TableCel l ColumnSpan="3" Height="50"
    HorizontalAlign ="Center" VerticalAlign=" Bottom"
    meta:resourceke y="TableCellRes ource8" runat="server">
    <asp:Button ID="TestButton " runat="server" Text="Some
    text" meta:resourceke y="ButtonResour ce1" />
    </asp:TableCell>
    </asp:TableFooter Row>
    </asp:Table>
    >
    The button TestButton is not rendered at all. When I remove the meta tag
    meta:resourceke y="TableCellRes ource8 from the "table cell" everything
    works
    fine. The removed metatag has no value assigned in the resources. So
    doesn't
    have TableFooterRowe Resource1 neither ButtonResource1 .
    >
    Is it a bug in rendering for the asp table, or am I missing something?
    >
    Thanks,
    Lubomir

    Comment

    • =?Utf-8?B?THVib21pcg==?=

      #3
      Re: Bug in asp:Table ?

      I mean I have resources with an empty string.

      Only the meat tag in the "cell" element causes these problems.

      I am using VS 2008 Professional on Vista 64 OS.



      "Patrice" wrote:
      As for values, do you mean you have no resources at all in your resource
      file (i.e no lines in the resource grid ?) or do you mean you have resources
      with an empty string ?
      >
      For example localizing TableCellResour ce8.Text with an empty string would
      reproduce the same behavior...
      >
      --
      Patrice
      >
      "Patrice" <http://www.chez.com/scribe/a crit dans le message de groupe de
      discussion : 26F7E024-17AC-46B0-844F-0EBE6300C876@mi crosoft.com...
      Works fine here (VS 2008 Dev Web Server).

      I would try to keep meta:resourceKe y and to delete all resource files to
      see if it seems to come from the meta tag or from the resource file
      content...

      --
      Patrice

      "Lubomir" <Lubomir@discus sions.microsoft .coma crit dans le message de
      groupe de discussion :
      D3FDCD91-C63F-421E-BE03-DAC0054CF5BE@mi crosoft.com...
      Hi,
      >
      I have the table like below:
      >
      <asp:Table ID="tblControls " runat="server" HorizontalAlign ="Center"
      Width="768px"
      Font-Names="Tahoma" Font-Size="Small" BorderStyle="So lid"
      BorderColor="Cy an"
      BorderWidth="1p x" meta:resourceke y="tblControlsR esource1">
      <asp:TableFoote rRow meta:resourceke y="TableFooterR owResource1"
      runat="server">
      <asp:TableCel l ColumnSpan="3" Height="50"
      HorizontalAlign ="Center" VerticalAlign=" Bottom"
      meta:resourceke y="TableCellRes ource8" runat="server">
      <asp:Button ID="TestButton " runat="server" Text="Some
      text" meta:resourceke y="ButtonResour ce1" />
      </asp:TableCell>
      </asp:TableFooter Row>
      </asp:Table>
      >
      The button TestButton is not rendered at all. When I remove the meta tag
      meta:resourceke y="TableCellRes ource8 from the "table cell" everything
      works
      fine. The removed metatag has no value assigned in the resources. So
      doesn't
      have TableFooterRowe Resource1 neither ButtonResource1 .
      >
      Is it a bug in rendering for the asp table, or am I missing something?
      >
      Thanks,
      Lubomir
      >

      Comment

      • =?Utf-8?B?THVib21pcg==?=

        #4
        Re: Bug in asp:Table ?

        Even if I assign some text to the the cell localized resource, it doesn't
        render the button, even the text will appear.

        If I delete the cell localized resource entry from the aspx.resx file, it
        works fine and botton control will show up in a browsser window.



        "Patrice" wrote:
        And those empty resources are ? If they are empty I would just delete them
        as an empty string is not the same as no resource at all... For now I would
        suspect you have a TableCellResour ce8.Text resource that is an empty string,
        clearing the cell content...
        >
        Have you tried to save and delete your resource files as suggested ? If it
        then works it would make clear the problem is with your resource file
        content...
        >
        --
        Patrice
        >
        "Lubomir" <Lubomir@discus sions.microsoft .coma crit dans le message de
        groupe de discussion : F65013E4-B491-4D95-A487-9CB54C7651D8@mi crosoft.com...
        I mean I have resources with an empty string.

        Only the meat tag in the "cell" element causes these problems.

        I am using VS 2008 Professional on Vista 64 OS.



        "Patrice" wrote:
        As for values, do you mean you have no resources at all in your resource
        file (i.e no lines in the resource grid ?) or do you mean you have
        resources
        with an empty string ?
        >
        For example localizing TableCellResour ce8.Text with an empty string would
        reproduce the same behavior...
        >
        --
        Patrice
        >
        "Patrice" <http://www.chez.com/scribe/a crit dans le message de groupe
        de
        discussion : 26F7E024-17AC-46B0-844F-0EBE6300C876@mi crosoft.com...
        Works fine here (VS 2008 Dev Web Server).

        I would try to keep meta:resourceKe y and to delete all resource files
        to
        see if it seems to come from the meta tag or from the resource file
        content...

        --
        Patrice

        "Lubomir" <Lubomir@discus sions.microsoft .coma crit dans le message de
        groupe de discussion :
        D3FDCD91-C63F-421E-BE03-DAC0054CF5BE@mi crosoft.com...
        Hi,
        >
        I have the table like below:
        >
        <asp:Table ID="tblControls " runat="server" HorizontalAlign ="Center"
        Width="768px"
        Font-Names="Tahoma" Font-Size="Small" BorderStyle="So lid"
        BorderColor="Cy an"
        BorderWidth="1p x" meta:resourceke y="tblControlsR esource1">
        <asp:TableFoote rRow
        meta:resourceke y="TableFooterR owResource1"
        runat="server">
        <asp:TableCel l ColumnSpan="3" Height="50"
        HorizontalAlign ="Center" VerticalAlign=" Bottom"
        meta:resourceke y="TableCellRes ource8"
        runat="server">
        <asp:Button ID="TestButton " runat="server"
        Text="Some
        text" meta:resourceke y="ButtonResour ce1" />
        </asp:TableCell>
        </asp:TableFooter Row>
        </asp:Table>
        >
        The button TestButton is not rendered at all. When I remove the meta
        tag
        meta:resourceke y="TableCellRes ource8 from the "table cell" everything
        works
        fine. The removed metatag has no value assigned in the resources. So
        doesn't
        have TableFooterRowe Resource1 neither ButtonResource1 .
        >
        Is it a bug in rendering for the asp table, or am I missing something?
        >
        Thanks,
        Lubomir


        >
        >

        Comment

        • Patrice

          #5
          Re: Bug in asp:Table ?

          Not clear from your last post if you consider the problem as being solved
          but the Text property is what you'll render inside the cell so using both
          the Text property and child markup are defining the same thing using two
          different ways... If Text is defined (even if just an empty string) it just
          takes precedence over defining the content inside the ASPX file as markup...

          So for now it looks like to me an expected behavior. Depending on what you
          are trying to do you could add an aditionnal label inside the cell markup
          assuming you want to put some text besides the button...

          --
          Patrice


          "Lubomir" <Lubomir@discus sions.microsoft .coma écrit dans le message de
          groupe de discussion : D0280852-4D1A-4DDD-9DD9-FF27A0B0F94F@mi crosoft.com...
          Even if I assign some text to the the cell localized resource, it doesn't
          render the button, even the text will appear.
          >
          If I delete the cell localized resource entry from the aspx.resx file, it
          works fine and botton control will show up in a browsser window.
          >


          Comment

          • =?Utf-8?B?THVib21pcg==?=

            #6
            Re: Bug in asp:Table ?

            Yes, when I delete the localized "empty" entry for that cell, it works fine.

            Thanks for help,
            Lubomir'


            "Patrice" wrote:
            Not clear from your last post if you consider the problem as being solved
            but the Text property is what you'll render inside the cell so using both
            the Text property and child markup are defining the same thing using two
            different ways... If Text is defined (even if just an empty string) it just
            takes precedence over defining the content inside the ASPX file as markup...
            >
            So for now it looks like to me an expected behavior. Depending on what you
            are trying to do you could add an aditionnal label inside the cell markup
            assuming you want to put some text besides the button...
            >
            --
            Patrice
            >
            >
            "Lubomir" <Lubomir@discus sions.microsoft .coma écrit dans le message de
            groupe de discussion : D0280852-4D1A-4DDD-9DD9-FF27A0B0F94F@mi crosoft.com...
            Even if I assign some text to the the cell localized resource, it doesn't
            render the button, even the text will appear.

            If I delete the cell localized resource entry from the aspx.resx file, it
            works fine and botton control will show up in a browsser window.
            >
            >
            >
            >

            Comment

            Working...