473,399 Members | 3,888 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,399 software developers and data experts.

I need help with clientTarget

When I use a text box web control like below

<asp:textbox id="txtCustomerName" runat="server" MaxLength="50"
Width="471px">

and set clientTarget to blank, I got the following source code

IE 6: <input name="txtCustomerName" type="text" maxlength="50"
id="txtCustomerName" style="width:471px;" /></td>

Mozzila/Firefox: <input name="txtCustomerName" type="text"
maxlength="50" id="txtCustomerName" />

The lack os style tag causes text box length not be the same in both
browsers. I've googled a little and found some tips pointing to change
web.config's <clientTarget> section and add the keys:

<add alias="ne7" userAgent="Mozilla/5.0 (Windows; U; Windows NT 5.0;
en-US; rv:1.7.3) Gecko/20040910"/>
<add alias="firefox" userAgent="Mozilla/5.0 (Windows; U; Windows NT
5.0; en-US; rv:1.7.5)">

I did it and still got no sucess. Setting clientTarget with "ne7" or
"firefox" causes the wrong rendering even in IE 6. I've tryied a
little trick adding in codebehind the code:

txtCustomerName.Style.Add("width","471px");

and got success in both browsers, but I think this is not the right
way. Certainly I'm doing something stupid. Could someone help me?

Thanks a lot.
Jul 21 '05 #1
0 1118

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

Similar topics

0
by: Sofia | last post by:
My name is Sofia and I have for many years been running a personals site, together with my partner, on a non-profit basis. The site is currently not running due to us emigrating, but during its...
7
by: Mike Kamermans | last post by:
I hope someone can help me, because what I'm going through at the moment trying to edit XML documents is enough to make me want to never edit XML again. I'm looking for an XML editor that has a...
15
by: drdoubt | last post by:
using namespace std In my C++ program, even after applying , I need to use the std namespace with the scope resolution operator, like, std::cout, std::vector. This I found a little bit...
8
by: Frank Rizzo | last post by:
I am trying to make sure that my app works fine with browsers other than IE. I am finding that many features simply don’t work on other browsers. For instance, the Validators are actually doing...
0
by: Bill Rowell | last post by:
Can someone who uses only Internet Explorer look at their machine.config xml file and tell me what their <clientTarget settings look like, just after the <processModel> tags? Mine look suspiciously...
0
by: Valmir | last post by:
When I use a text box web control like this <asp:textbox id="txtCustomerName" runat="server" MaxLength="50" Width="471px"> and set clientTarget to blank, I got the following source code IE...
0
by: Valmir | last post by:
When I use a text box web control like below <asp:textbox id="txtCustomerName" runat="server" MaxLength="50" Width="471px"> and set clientTarget to blank, I got the following source code IE...
0
by: U S Contractors Offering Service A Non-profit | last post by:
Brilliant technology helping those most in need Inbox Reply U S Contractors Offering Service A Non-profit show details 10:37 pm (1 hour ago) Brilliant technology helping those most in need ...
4
by: AG | last post by:
Using ASP.NET 3.5 I have been using a standard menu control bound to a sitemapdatasource using a web.sitemap file. The menus work fine in IE and Firefox, but in Safari, they render horribly and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...
0
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...
0
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,...
0
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...

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.