473,785 Members | 2,298 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Incorrect HTML sent to browser

I have two usercontrols on the home page of my website. They are intermitently sending incorrect HTML to the browser, which results in a textbox being rendered with the wrong width. Either both controls render correctly or both are incorrect but never a mixture. When they are rendered correctly the source looks like

<input name="Header2:t xtKeyword" type="text" id="Header2_txt Keyword" style="width:80 px;" /

When incorrect the source looks like

<input name="Header2:t xtKeyword" type="text" id="Header2_txt Keyword" /

The asp.net code in both cases is

<asp:TextBox ID="txtKeyword " Runat="server" Width="80"></asp:TextBox

Is there any reason why different HTML is being generated for the same browser on the same machine and how to ensure the width property is rendered correctly?
Nov 18 '05 #1
2 1280
HTML rendered from the control depends upon broswer from which you are
trying to access this control. It might vary if you are trying to access it
from different browser.

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"Linda Wienholt" <an*******@disc ussions.microso ft.com> wrote in message
news:BB******** *************** ***********@mic rosoft.com...
I have two usercontrols on the home page of my website. They are intermitently sending incorrect HTML to the browser, which results in a
textbox being rendered with the wrong width. Either both controls render
correctly or both are incorrect but never a mixture. When they are rendered
correctly the source looks like:
<input name="Header2:t xtKeyword" type="text" id="Header2_txt Keyword" style="width:80 px;" />
When incorrect the source looks like:

<input name="Header2:t xtKeyword" type="text" id="Header2_txt Keyword" />

The asp.net code in both cases is:

<asp:TextBox ID="txtKeyword " Runat="server" Width="80"></asp:TextBox>

Is there any reason why different HTML is being generated for the same

browser on the same machine and how to ensure the width property is rendered
correctly?
Nov 18 '05 #2
Linda Wienholt wrote:
I am trying to access the pages from the same browser IE6 on the same machine. Sometimes it works and sometimes it doesn't??


Set trace="true" in the page's @Page directive. This will dump trace
information at the end of each response.

See if the server indicates that it's getting different User-Agent
header information (or some other different infomration in the request)
when the page works and when the page doesn't work.

Maybe a proxy is filtering some information sometimes and not others for
some reason, or you're going through different proxies on different
requests, or something.

--
mikeb
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
6199
by: CJ Oxx | last post by:
I have a problem with browser charset recognition when using PHP 4.1.2 (this is the PHP version which our hosting company provides). For charset recognition, I use the following meta-tag: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> Here is what I have tried so far: - Regular html page: charset is properly recognised - PHP page which just prints out the html: charset is not properly recognised (ISO charset is...
5
3610
by: KathyB | last post by:
If someone could just explain this to me...I just don't get it! I have an aspx page where I retrieve several session variables and use xmlDocument to transform xml file with xsl file into an instruction document (not data based) - same as using an xml web control. The resulting html is on the client? but what about the server side of things? Trying to figure out how to change and save the xmlDocument. It I put a button OUTSIDE of the...
3
1729
by: Clay Black | last post by:
I need to find a way to save an HTML page to the IIS server. What I need is to have a button that once it is clicked the current page being displayed is saved to a location on the local IIS server. I know there are ways to go and get a page, but this one would be dynamic and wouldn't be saved so I would need to save it while it is still active or have it forwarded to an asp.net page that will take the html code and save it to a file. TIA...
4
1171
by: No One | last post by:
For whatever reason, when an ASP.Net control sees that the browser is Mozilla based, it returns HTML code that contains things like <font /> tags while returning style attributes for IE. I am testing against the latest Firefox browser and not the old stinky Netscape 4. Is there a way to tell the ASP.Net server to treat Mozilla as a new browser?
82
6356
by: Eric Lindsay | last post by:
I have been trying to get a better understanding of simple HTML, but I am finding conflicting information is very common. Not only that, even in what seemed elementary and without any possibility of getting wrong it seems I am on very shaky ground . For example, pretty much every book and web course on html that I have read tells me I must include <html>, <head> and <body> tag pairs. I have always done that, and never questioned it. ...
59
7044
by: Lennart Björk | last post by:
Hi All, I have a tiny program: <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>MyTitle</title> <meta http-equiv="Content-Type" content="text/html;
6
7390
by: john | last post by:
The standard method to transmit a file from an aspx page to a browser is to stream the file to the response then end the response. The HTML code generated by the aspx page is discarded, and the browser displays or offers to save the binary file instead. I would like to have the browser accept and display the revised HTML code as well as offering to open or save the attached file. This SHOULD be possible using a multipart MIME format -...
19
248267
Atli
by: Atli | last post by:
Introduction At some point, all web developers will need to collect data from their users. In a dynamic web page, everything revolves around the users input, so knowing how to ask for and collect this data is essential to any developer. This article is a basic tutorial on how to user HTML Forms, the most common method of data collection. Assumptions - Basic HTML knowledge. - Basic PHP knowledge. HTML Forms A common and simple way of...
33
2296
by: MC | last post by:
Hey, I have a need to get HTML from a client back to a server to do server processing. I would like the HTML and form data both. Is there a simple way to capture that? I do not want to submit the page...I will use ajax to send the data. I know how to get the elements but not the entire page or form. I am really just interested in specifying document.form2 and sending that.
0
9645
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
9481
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
10155
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...
1
10095
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,...
0
8979
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...
1
7502
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
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
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
2881
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.