473,903 Members | 5,210 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET 2.0 Gridview Control Rendering in Firefox

30 New Member
Have a page developed w/VWD which has a Gridview control. XHTML 1.0 Transitional Doctype. Tested in VWD OK and renders in IE7 as tested. When rendered with Firefox, the Gridview is shifted far to the right. It is set as absolute and it appears Firefox is not doing the position based upon the Left: setting. Fussed with different changes to page trying to figure this out to no avail. The view source from both browsers is practically identical. The "style=" w/ left: and width: and position: in the asp tag is identical as viewed by the browsers. I'm a newbie at this and it is driving me nuts. I assume the parms mentioned are suppose to control the position appearance on screen, but something is amiss.

Someone have a clue?

Thanks
Aug 4 '07 #1
11 8881
drhowarddrfine
7,435 Recognized Expert Expert
The problem will be with IE, not Firefox, even though IE is showing you what you want. Can you show the html and css? Preferably a link.
Aug 5 '07 #2
HEX
30 New Member
The problem will be with IE, not Firefox, even though IE is showing you what you want. Can you show the html and css? Preferably a link.
Can't seem to reply. Getting error message about missing subject when adding page source info. I'm doing something wrong. Tryed code tags, etc.

Thanks.
Aug 5 '07 #3
HEX
30 New Member
The problem will be with IE, not Firefox, even though IE is showing you what you want. Can you show the html and css? Preferably a link.
Can't seem to reply. Getting error message about missing subject when adding page source info. I'm doing something wrong. Tryed code tags, etc. Also, an attached source file is too big to upload.

Thanks
Aug 5 '07 #4
drhowarddrfine
7,435 Recognized Expert Expert
Well, obviously you are replying now. So I don't know why you can't enter the code along with your reply.
Aug 5 '07 #5
HEX
30 New Member
Well, obviously you are replying now. So I don't know why you can't enter the code along with your reply.

I get this on preview or submit if I add my source:

The following errors occurred when this message was submitted:
Please complete both the subject and message fields. Press the back button, correct the problem and try again.
The message you have entered is too short. Please lengthen your message to at least 20 characters.

Normal stuff ok.
Aug 5 '07 #6
MMcCarthy
14,534 Recognized Expert Moderator MVP
I get this on preview or submit if I add my source:

The following errors occurred when this message was submitted:
Please complete both the subject and message fields. Press the back button, correct the problem and try again.
The message you have entered is too short. Please lengthen your message to at least 20 characters.

Normal stuff ok.
I'm not sure whats happening but can I suggest you try attaching a txt file. If you post a reply and then edit it you should be able to add an attachment.
Aug 6 '07 #7
ak1dnar
1,584 Recognized Expert Top Contributor
Heya Hex,
May be the problem is, your contents for the post is too much. Thats why you can't post it in the thread.

Try to split to your codings in to several posts.

Hope this may help.
Aug 6 '07 #8
HEX
30 New Member
Thanks, that is probably the problem. Even an attached file was too big, so that is out also. Was attempting to send everything involved. So..., maybe an explanation of the issue clearly defined with just a piece of code at a time is sufficient.

The page in question is all ASP.NET 2.0 developed with VWD. The asp server controls all use the 'Style=' parm which states to use absolute position and gives a 'Left:' position, a 'Width' size and also a 'z-index'. These are supposed to dictate the position on the page, thus the prescribed appearance is rendered.
One of the controls(a Gridview) ends up shifted far to the right. The other controls are fine. Other pages work fine using similiar controls.

The server renders the control to the browser as a Table which contains the exact position from developed source as seen below.

<table cellspacing="0" cellpadding="1" align="Center" rules="cols" border="1" id="GridView1" style="width:46 7px;height:133p x;font-weight:normal;f ont-size:11pt; color:Black;bor der-width:1px;borde r-style:solid;bor der-color:Tan; background-color:LightGold enrodYellow;bor der-collapse:collap se;z-index: 119; left: 493px;
position: absolute; top: 170px; text-align: center; border-left-color: #0066ff; border-bottom-color: #0066ff; color: #0033ff; border-top-style: double;
border-top-color: #0066ff; border-right-style: double; border-left-style: double; border-right-color: #0066ff;
border-bottom-style: double; font-style: italic;"> .........so forth

Obviously, other factors must be overriding the position, but I'm new at this and don't have a clue as to what I should be looking for.That is why I was attempting to send everything involved. It's probably some dummy error on my part. All the other renderings follow the 'Style=' settings, so I'm at a loss to figure it out. IE7 works as tested, Firefox shifts to the right only on the one Gridview.

Thanks for any assistance you can provide. Any thoughts?
Aug 6 '07 #9
drhowarddrfine
7,435 Recognized Expert Expert
The problem is you are using html positioning with CSS positioning and they are conflicting with each other. In this case, you say align="center" and then say left:493px. Firefox is accommodating that while IE ignores you.

You also conflict on settings borders. The align="center" does not exist in current html or xhtml. And that is an awful lot of crap being putout that should be combined but I guess that's what .net does.

So remove everything before the style= and go from there.

Also, Tan and LightGoldenrodY ellow are not valid, standard colors.
Aug 6 '07 #10

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

Similar topics

0
464
by: W. Kacy | last post by:
I am having trouble using XML in an ASP.NET 2.0 webform. Using ASP.NET 2.0 beta 2, I have created a blank web page in a C# website. I have added an XML file (soData.xml), structured as follows: <?xml version = "1.0" encoding="Windows-1252" standalone="yes"?> <VFPData> <ac_sodata> <iono>Vendor</iono> <sodate>2004-03-04</sodate> <sono>164</sono>
1
4323
by: Steve Loper | last post by:
I am developing a control in ASP.NET 2.0 that is derived from GridView. This control handles paging on its own and thus renders custom paging buttons. It also add some other functionality to the GridView by overriding Render() and rendering other controls alongside the GridView’s HTML. When I click one of the pager buttons (of type ImageButton), I receive the following error: Invalid postback or callback argument. Event validation...
3
11421
by: Stan SR | last post by:
Hi, How to remove the border of each row (from the gridview control). ? I set borderWidth to 0, and the borders are not displayed with IE, but the top and bottom borders are with FireFox. Another question, is it possible to use the gridview control without the generated table, tr and td tags ? I would like to use css divs..
2
1610
by: Lucky | last post by:
Hi guys, i've problem with GridView control as i'm just learing Asp.net i dont know most of the things. here, my problem. i'm using GridView control with Template columns, it looks like this: <asp:GridView runat="server" ID="GridView1" AutoGenerateColumns="False" Width="90%"> <Columns>
0
3175
by: jrnail23 | last post by:
I have a user control which contains an UpdatePanel, which contains a MultiView inside, with a GridView in one of the views. In my GridView, I have a ButtonField which is supposed to trigger a server-side operation, using the RowCommand functionality. In IE, this all works great, but in Firefox (v2.0.0.6), clicking the above mentioned ButtonField fires off two similar AJAX requests, which is causing errors in my server-side code. ...
1
3078
by: SachinSachin | last post by:
Hi All, I am implementing a custom gridview control, that emits some javascript to blink a row whenever a new row is added in gridview. The gridview is inside the <asp:updatepanel> for parital page rendering. The problem is when I put the gridview inside the updatepanel, I don't see the HTML table that is created as a result from rendering the gridviewcontrol and thus when new row is added, it does not blink, however when i just put the...
7
3342
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
Is there a way to use a gridview in a timecard application, and if so, how? I was looking at using a gridview to display a person's hours worked in a week. To do this, many different data records would have to display on the same row to make up a week (the database has a new row for each day entered). But, from what I can tell, this keeps you from being able to use a gridview, because the gridview relies on one datakey per row (and there...
2
3682
by: psion | last post by:
Hi, We have a gridview on a webpage, which we would like to be 100% of the table cell in which it is placed. When we specify the width to be 100%, this has no effect, but only if we specify a pixel number, i.e. 800, will the gridview be 800 px wide. Here is an example: http://www.valuetronics.com/Results.aspx?keywords=8050&x=0&y=0 And this may be related, but this page
4
12038
by: BiffMaGriff | last post by:
Hello, I have a GridView that I put inside an update panel. I have a control that attaches to the datasource of the gridview that filters the data, databinds the gridview and then updates the update panel that the gridview is in. In my page render I put this so I could select a row by just clicking it. protected override void Render(HtmlTextWriter writer) {
0
10003
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, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
11291
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10988
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 most users, this new feature is actually very convenient. If you want to control the update process,...
1
8055
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7213
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
5897
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6099
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4732
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
3
3327
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.