473,549 Members | 2,615 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

45 New Member
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 ="HorizontalAli gn.Center">

I get the error

Cannot create an object of type 'System.Web.UI. WebControls.Hor izontalAlign' from its string representation 'HorizontalAlig n.Center' for the 'HorizontalAlig n' 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 3946
Dököll
2,364 Recognized Expert Top Contributor
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 ="HorizontalAli gn.Center">

I get the error

Cannot create an object of type 'System.Web.UI. WebControls.Hor izontalAlign' from its string representation 'HorizontalAlig n.Center' for the 'HorizontalAlig n' 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 New Member
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
1941
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" /> </headertemplate>
2
13737
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 without having the dataset match ? I think yes... but ... here's how I approached it: ( create new DataGridColumns, add properties and then add each...
9
500
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 GetMsg(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles dgJobQueue.PreRender ASPNET_MsgBox("welcome to msgbox")
2
1803
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 both a vertical and horizontal direction. Why isn't there something like a VerticalAlign and HorizontalAlign like the...
2
1994
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 target of an invocation. at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object arguments, SignatureStruct& sig, MethodAttributes...
0
1921
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: http:\\localhost\test.aspx, following error occured: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error...
3
3030
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 oBook As Object Dim oSheet As Object
0
1789
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 to see the contents in the database, but whenever I click "Delete" or "Update", the data never gets deleted or get updated repectively. It feels as if...
0
377
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 on the lines that start with varCtl. (for example varCtl.CssClass = "Hide"). The other thing that is strange is that it occurs when I click the...
0
7451
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...
0
7720
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7959
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...
1
7473
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7810
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...
0
3501
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3483
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1944
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
1
1061
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.