473,781 Members | 2,280 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Jul 16 '08 #1
5 1902
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" <Lu*****@discus sions.microsoft .coma écrit dans le message de
groupe de discussion : D3************* *************** **...icrosof t.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

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 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 : 26************* *************** **...icrosof t.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" <Lu*****@discus sions.microsoft .coma crit dans le message de
groupe de discussion :
D3************* *************** **...icrosof t.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
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 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" <Lu*****@discus sions.microsoft .coma crit dans le message de
groupe de discussion : F6************* *************** **...icrosof t.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 : 26************* *************** **...icrosof t.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" <Lu*****@discus sions.microsoft .coma crit dans le message de
groupe de discussion :
D3************* *************** **...icrosof t.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


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*****@discus sions.microsoft .coma écrit dans le message de
groupe de discussion : D0************* *************** **...icrosof t.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*****@discus sions.microsoft .coma écrit dans le message de
groupe de discussion : D0************* *************** **...icrosof t.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
464
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 asp table. The asp table has numerous rows and each row has a label item within it. Im finding it impossible to get something to work which adds the newest item in the array list to the next row in the asp table. the first time the button is...
1
2161
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 tried doing this.tblSearchAddresses.lblAddress1 and it didn't work. Has anyone an idea how I call this lable with a asp table. Thanks in advance for any help anyone can give me. <asp:table id="tblSearchAddresses" Runat="server" Width="100%">...
2
2684
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 click event of the asp:button working. I then decided to drop an asp:table on the form and then added the three component mentioned above into the asp:table. Now I cannot find a way to set the click even of the asp:button anymore. In fact,...
3
12018
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 DataTable, then I discovered the asp:Table has a DataBind method. But the method takes no args and so I'm confused how to use it. Is there a link to see how DataBind works for asp:Table? Should I just use my own code anyway? Thanks... Here's my...
4
1949
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) the first > line of text is font size 10 pt and the second (wrapped text) is 6 pt. I > know how to create a style sheet to get all of my font one size or the > other, but does any one have any suggestions on how to do this?
0
1396
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 not allowed in tablerow... :( When I tryed to put this table as a normal <table> it works, but, for some reason it automaticly makes an </td></tr> before the new asp:table comes in... therefore not achieving my goals in design... :(
1
12294
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 (nor select it from the Properties tab on the right). Any ideas? <asp:Table id="Table1" runat="server"> <asp:TableRow> <asp:TableCell Text="Email:"></asp:TableCell>
4
3937
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 the element outside of the table and then using cut & paste in HTML View to move it to the desired location, or by manually typing the code in using HTML View. The first technique sometimes does not automatically update the list of elements...
0
1112
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 the controls in a general html table it works fine My code that dos not work: <EditItemTemplate>
2
2382
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 consists of an asp table called MyTable containing a textbox control call MyTextBox then i can access MyTextBox directly from the PageLoad event handler without having to use MyTable.FindControl(MyTextBox). MyTextBox can also be used for a...
0
9636
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10139
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9931
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8961
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6727
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5504
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.