473,406 Members | 2,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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="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
5 1881
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stephen | last post by:
I have been getting on well with help from this forum trying to create an array list and work with it. Everything is working fine apart from displaying my array list items into the labels in my...
1
by: Stephen | last post by:
I have got the below asp table and I would like to be able to call up the lblAddress1 label with in the asp table in the code behind page. I tried doing this.lblAddress1 and it didn't work and I...
2
by: Kevin | last post by:
I am just learning asp.net and ran into a problem that I have not been able to resolve. I have a web form with an html table that houses an asp:label, asp:textbox and asp:button within. I had the...
3
by: Marty McDonald | last post by:
I have <asp:Table... </asp:Table> on my webform. In codebehind, I populate a DataTable whose data should appear in the asp:Table. I created my own code to populate the asp:Table with the...
4
by: coleenholley | last post by:
I asked the question yesterday: > HI All :-) > > I don't know if I will be able to do this type of formatting, but what I > need to do is have a table row where the text wraps (This is easy)...
0
by: Kristoffer Arfvidson | last post by:
HI! I have the following javascript events in my normal tables. onMouseOver,onMouseOut and onClick Now, when I try to put this in my asp:tablerow it just gets an error msg that literal text is...
1
by: Ed West | last post by:
Hello, How can I put a textbox control into a cell of an asp:Table? I was not able to do it from the properties sheet, so I put it in via html tab, but now I can't select it from the Design tab...
4
by: Nathan Sokalski | last post by:
When editing an ASP Table, Visual Studio does not allow me to edit it in Design View. This makes it harder to add elements, because I must add every element either by using Design View to create...
0
by: Leo Pape | last post by:
Hello, When I place a <asp:table> in a formview (In the edititemtemplate or insertitemtemplate) I'm not able to update data anymore if the bound controls are placed in that table When I place...
2
by: clickon | last post by:
I am confused about the way in which asp:table objects work. When a control is within an asp table it generally appears to be in the scope of the tables parent control. E.g. if i have a page that...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.