form autocomplete in asp.net

1 view
Skip to first unread message

Thom Shannon

unread,
Feb 9, 2009, 10:00:04 AM2/9/09
to liverpoolus...@googlegroups.com
Does anyone know of a way to help browsers with their form autocomplete
when you've got an asp.net form with long client ids.

Basically a way of mapping "p_ctl06_ProfileAddress2TextBox" to "address"

Paul Kinlan

unread,
Feb 9, 2009, 10:06:15 AM2/9/09
to liverpoolus...@googlegroups.com
I thought the auto form complete used "name"s to get the auto fill information and not the id. 

I can't recall if asp.net mangles the name tag too.

Paul.

2009/2/9 Thom Shannon <th...@glow-internet.com>

Matt Kelly

unread,
Feb 9, 2009, 10:24:26 AM2/9/09
to liverpoolus...@googlegroups.com
You can prevent ASP.Net from generating the long IDs by overriding either ClientId or NamingContainer (I forget which).


2009/2/9 Paul Kinlan <paul....@gmail.com>

Thom Shannon

unread,
Feb 9, 2009, 11:27:44 AM2/9/09
to liverpoolus...@googlegroups.com
Cheers Matt, that sounds promising.

Paul, yes you're right it does use names but it still renames them as they have to be unique (or at least distinguishable)
--
*** OPEN COFFEE - http://upcoming.yahoo.com/group/3263/ ***

Terms & Conditions Apply: http://www.glow-internet.com/home/terms.aspx

Glow New Media
t: 0151 707 9770
m: 07730 987 574
www.glow-internet.com

Suite 712 Gostins Building
32-36 Hanover Street
Liverpool
L1 4LN

Map: http://tinyurl.com/2f5nxd
Reply all
Reply to author
Forward
0 new messages