By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,665 Members | 1,406 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,665 IT Pros & Developers. It's quick & easy.

I need help with clientTarget

P: n/a
When I use a text box web control like below

<asp:textbox id="txtCustomerName" runat="server" MaxLength="50"

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:


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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.