473,387 Members | 1,517 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,387 software developers and data experts.

Cannot create an object of type 'System.Web.UI.WebControls.HorizontalAlign' from its

45
Hi all,

I need to set the <asp:TableRow> element's HorizontalAlign property to to center in a XSL file. How can I Do that

If I use

<asp:TableRow runat="Server" HorizontalAlign="HorizontalAlign.Center">

I get the error

Cannot create an object of type 'System.Web.UI.WebControls.HorizontalAlign' from its string representation 'HorizontalAlign.Center' for the 'HorizontalAlign' property.

Remember I am using a XML file to create a <asp:Table> with the help of XSL file

Many thanks.
May 21 '07 #1
2 3936
Dököll
2,364 Expert 2GB
Hi all,

I need to set the <asp:TableRow> element's HorizontalAlign property to to center in a XSL file. How can I Do that

If I use

<asp:TableRow runat="Server" HorizontalAlign="HorizontalAlign.Center">

I get the error

Cannot create an object of type 'System.Web.UI.WebControls.HorizontalAlign' from its string representation 'HorizontalAlign.Center' for the 'HorizontalAlign' property.

Remember I am using a XML file to create a <asp:Table> with the help of XSL file

Many thanks.
Get ready to be happy, querry:http://www.w3schools.com/aspnet/show...ame=demo_table

Hopefully you are still looking for this...

Dököll
Jul 4 '07 #2
querry
45
Get ready to be happy, querry:http://www.w3schools.com/aspnet/show...ame=demo_table

Hopefully you are still looking for this...

Dököll

Thanks Dököll, but I found out the workaround myself ages back. :)
Jul 5 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Sue | last post by:
Anyone have any ideas on why the code below will show up in a browser's sourcecode as an empty table, and is not visible? aspx: <headertemplate> <asp:Table ID="MyTable" runat="server" /> ...
2
by: Andrew | last post by:
I am trying to set the column information - which ones I want displayed and how with the web grid control. The interface has some big differences when compared to the winform. Is this possible...
9
by: hina.pandya | last post by:
I m getting this error "Object reference not set to an instance of an object." when i run my application. i m trying to select a value from dropdownlist here is the code. Protected Sub...
2
by: Nathan Sokalski | last post by:
When using a System.Web.UI.WebControls.Image object, how do I control both vertical and horizontal alignment? Both directions are controlled using the ImageAlign property, which prevents setting...
2
by: Junsan | last post by:
When I am trying to create users through the ASP.NET Configuration in Visual Studio I am getting the following Error (I got the final version of Visual Studio): Exception has been thrown by the...
0
by: Luqman | last post by:
I have copied the following code from Internet, and copied it to a file named : test.aspx, and copied that file to c:\Inetpub\wwwroot Directory. When I type on my Internet explorer:...
3
by: Administrator | last post by:
Hi, My web development server is a Windows 2000 SP4 system. Had created an aspx page with the following code which I had extracted from 1 of the Microsoft websites: Dim oExcel As Object Dim...
0
by: yukijocelyn | last post by:
I have experienced a problem here while doing a form for accessing datadbase using MS Access. I'm using the AccessDataSource control, and using Gridview to pull the data from the database. I am able...
0
by: David C | last post by:
I am getting this error in the Databound event of a GridView and I am having a difficult time debugging. I do not get the error on every record that I edit in the GridView. The error is occurring...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.