By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,903 Members | 1,977 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,903 IT Pros & Developers. It's quick & easy.

Bug in asp:Table ?

P: n/a
Hi,

I have the table like below:

<asp:Table ID="tblControls" runat="server" HorizontalAlign="Center"
Width="768px"
Font-Names="Tahoma" Font-Size="Small" BorderStyle="Solid"
BorderColor="Cyan"
BorderWidth="1px" meta:resourcekey="tblControlsResource1">
<asp:TableFooterRow meta:resourcekey="TableFooterRowResource1"
runat="server">
<asp:TableCell ColumnSpan="3" Height="50"
HorizontalAlign="Center" VerticalAlign="Bottom"
meta:resourcekey="TableCellResource8" runat="server">
<asp:Button ID="TestButton" runat="server" Text="Some
text" meta:resourcekey="ButtonResource1" />
</asp:TableCell>
</asp:TableFooterRow>
</asp:Table>

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

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

Thanks,
Lubomir
Jul 16 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Works fine here (VS 2008 Dev Web Server).

I would try to keep meta:resourceKey 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" <Lu*****@discussions.microsoft.coma écrit dans le message de
groupe de discussion : D3**********************************@microsoft.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="Solid"
BorderColor="Cyan"
BorderWidth="1px" meta:resourcekey="tblControlsResource1">
<asp:TableFooterRow meta:resourcekey="TableFooterRowResource1"
runat="server">
<asp:TableCell ColumnSpan="3" Height="50"
HorizontalAlign="Center" VerticalAlign="Bottom"
meta:resourcekey="TableCellResource8" runat="server">
<asp:Button ID="TestButton" runat="server" Text="Some
text" meta:resourcekey="ButtonResource1" />
</asp:TableCell>
</asp:TableFooterRow>
</asp:Table>

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

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

Thanks,
Lubomir

Jul 16 '08 #2

P: n/a
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 TableCellResource8.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 : 26**********************************@microsoft.com...
Works fine here (VS 2008 Dev Web Server).

I would try to keep meta:resourceKey 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" <Lu*****@discussions.microsoft.coma crit dans le message de
groupe de discussion :
D3**********************************@microsoft.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="Solid"
BorderColor="Cyan"
BorderWidth="1px" meta:resourcekey="tblControlsResource1">
<asp:TableFooterRow meta:resourcekey="TableFooterRowResource1"
runat="server">
<asp:TableCell ColumnSpan="3" Height="50"
HorizontalAlign="Center" VerticalAlign="Bottom"
meta:resourcekey="TableCellResource8" runat="server">
<asp:Button ID="TestButton" runat="server" Text="Some
text" meta:resourcekey="ButtonResource1" />
</asp:TableCell>
</asp:TableFooterRow>
</asp:Table>

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

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

Thanks,
Lubomir
Jul 16 '08 #3

P: n/a
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 TableCellResource8.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" <Lu*****@discussions.microsoft.coma crit dans le message de
groupe de discussion : F6**********************************@microsoft.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 TableCellResource8.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 : 26**********************************@microsoft.com...
Works fine here (VS 2008 Dev Web Server).

I would try to keep meta:resourceKey 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" <Lu*****@discussions.microsoft.coma crit dans le message de
groupe de discussion :
D3**********************************@microsoft.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="Solid"
BorderColor="Cyan"
BorderWidth="1px" meta:resourcekey="tblControlsResource1">
<asp:TableFooterRow
meta:resourcekey="TableFooterRowResource1"
runat="server">
<asp:TableCell ColumnSpan="3" Height="50"
HorizontalAlign="Center" VerticalAlign="Bottom"
meta:resourcekey="TableCellResource8"
runat="server">
<asp:Button ID="TestButton" runat="server"
Text="Some
text" meta:resourcekey="ButtonResource1" />
</asp:TableCell>
</asp:TableFooterRow>
</asp:Table>

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

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

Thanks,
Lubomir


Jul 16 '08 #4

P: n/a
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" <Lu*****@discussions.microsoft.coma écrit dans le message de
groupe de discussion : D0**********************************@microsoft.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.


Jul 17 '08 #5

P: n/a
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" <Lu*****@discussions.microsoft.coma écrit dans le message de
groupe de discussion : D0**********************************@microsoft.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.

Jul 17 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.