|
Hi guys,
I have a table set to 100% width of the window. And style="text-align:center"
Inside the table I have a gridview.
When I view the site in IE it displayes the grid in the center of the table, but in firefox it displays the grid in the left of the table.
Does anyone know why this happens and how to get it fixed?
Thanks in advance
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
NeroToxic wrote: Does anyone know why this happens and how to get it fixed?
Yes it is a well known issue that browsers are not equal. Well known since like the very first ones.
Google: Browser Compatibility
led mike
|
|
|
|
|
This happens because there is a bug/feature in IE that makes it apply text alignment to block elements. Text alignment should only be applied to inline elements, that's why Firefox doesn't apply it to the grid.
Use margin-left:auto;margin-right:auto; on the grid to center it.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
The grid does not have the attribute margin nor style.
Thanks for the help, I used center align on td and that worked like a dream.
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
have u tried the align attribute for the TD yet?
<td align=center> <asp:gridview ..... /> </td>
Ashish Sehajpal
|
|
|
|
|
honestly I have no idea why I didn't think of that.
Thanks, works like a dream
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
Environment:
Visual Web developer 2008
ASP.NET 3.5
I want to make a cascading dropdownlist to retrieve data from a database.
I Want to have 2 dropdownlists. The first one eg. STATE will determine
the values available in the second dropdownlist eg. CITIES
The values selected in the two dropdownlists will then be passed to the
parameters in the SELECT statement for execution.
Thanks in advance
|
|
|
|
|
Hai,
I am Hari.........
while i am building project i am getting this error, i can't understand what is the problem......
error is
Error 1 Could not load type 'SmartAds.Global'. c:\inetpub\wwwroot\project\Global.asax 1
In the browser i am getting like this
Parser Error <br />
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. <br />
<br />
Parser Error Message: Could not load type 'SmartAds.Global'.<br />
<br />
Source Error: <br />
<br />
<br />
Line 1: <%@ Application Inherits="SmartAds.Global" Language="C#" %><br />
<br />
<br />
<br />
Source File: /project/global.asax Line: 1 <br />
<br />
<br />
--------------------------------------------------------------------------------<br />
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 <br />
Please give the answer<br />
Thanks
Pinna
|
|
|
|
|
Whats smartads.Global? Do you have that file in your project?
|
|
|
|
|
Ya i have that file in my project...
|
|
|
|
|
Hi,
I want to give fixed rows to the datalist.
How can I do this?
Thanks
|
|
|
|
|
Hi guys.
I'm building APS.NET (VB) site that connects to Communicator API to get user status (phone list).
The code works fine on local machine (when I test or access my site thourhg localhost) but when I install the site on a server or try to access my dev machine it from a network if throws me:
Retrieving the COM class factory for component with CLSID {8885370D-B33E-44B7-875D-28E403CF9270} failed due to the following error: 80080005.
This line fails
communicator = New CommunicatorAPI.MessengerClass
Thanks for your help.
Alex.
|
|
|
|
|
|
Hello Friend!
I've created a page that create runtime control as follows
HtmlAnchor ha = new HtmlAnchor();
ha.InnerHtml = "";
but instead of displaying image, it shows alter text.
when i create the img tag at design time it shows the image.i.e., path is ok.
Please help me to show the image.
Thanks
|
|
|
|
|
Try using the Image control:
Image ha= new Image();
ha.ID = "img2";
ha.ImageUrl = @"Membership/img/icon-calendar.gif";
ha.AlternateText = "d";
modified on Friday, April 4, 2008 10:05 AM
|
|
|
|
|
Sorry Friend!
It stills show alter text when i am adding that control in table
|
|
|
|
|
Try this:
ha.ImageUrl = @"~/Membership/img/icon-calendar.gif"; Have a look at the page source to see what is been written out to the browser and verify that the path is correct.
|
|
|
|
|
View Source is ok, it shows correct path.
|
|
|
|
|
How can I load a page in a view?
Thank you!
|
|
|
|
|
Hi,
In my application there is a page in which customer fills all the information about his credit card.
1. card holder name.
2. card number.
3. cvv number.
4 start and expiry date of card.
and some other information.
in this section i can validate everything.
but problem is that, how i can know that card holder name, card number, cvv number is matching.
Is there any third party control to check it?
please help...
Thanx in advance
krishna veer singh
|
|
|
|
|
Hello,
How can I identify that my VS 2005 has the ability to open "Web Applicaion".
Is there a difference between Open website and Open Project?
Regards,
Pavas
|
|
|
|
|
um well I think they are the same, as you save an application as a project
|
|
|
|
|
I am trying to open a web project and it do not open...
I have a solution which has two library projects abd one web project...
Both of the project opens but the visual studio can not open the web project
It says "the project of this type is not supported by installation".
Any idea??
Regards,
Pavas
|
|
|
|
|
Click on Help / About Microsoft Visual Studio and you will see a list of the installed products, if the Visual Web Developer product is not listed then you will not be able to open a web project.
|
|
|
|
|
Hello Thanks,
Below are the details of the products I have...
Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727
Installed Edition: Professional
Microsoft Visual Basic 2005 77626-009-0000007-41326
Microsoft Visual Basic 2005
Microsoft Visual C# 2005 77626-009-0000007-41326
Microsoft Visual C# 2005
Microsoft Visual C++ 2005 77626-009-0000007-41326
Microsoft Visual C++ 2005
Microsoft Visual J# 2005 77626-009-0000007-41326
Microsoft Visual J# 2005
Microsoft Visual Web Developer 2005 77626-009-0000007-41326
Microsoft Visual Web Developer 2005
Regards,
Pavas
|
|
|
|