473,396 Members | 2,154 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,396 software developers and data experts.

Fixing an Id for a HTML Tag

Hi all

is there a way to fix an id

like id=txtCheckedItems

aspx changes it to _ctl0_eee_txtCheckedItems

in
<input name="_ctl0:eee:txtCheckedItems" id="_ctl0_eee_txtCheckedItems"
type="hidden" size="28" />

How else can this be done
Thank for your help

Jim
Nov 17 '05 #1
3 1582
ASP.NET renames them to prevent naming conflicts and to keep the naming
consistent.
You can get the true ID at run time from the ClientID property of the
control.
You also should be able to inherit a control and override this property for
more manual control of the naming.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"MS News" <sq**********@hotmail.com> wrote in message
news:ur**************@TK2MSFTNGP09.phx.gbl...
Hi all

is there a way to fix an id

like id=txtCheckedItems

aspx changes it to _ctl0_eee_txtCheckedItems

in
<input name="_ctl0:eee:txtCheckedItems" id="_ctl0_eee_txtCheckedItems"
type="hidden" size="28" />

How else can this be done
Thank for your help

Jim

Nov 17 '05 #2
What about getting to that control at the Client Side via JavaScript
I have to generate dynamic javascript?

Thanks Steve
"Steve C. Orr, MCSD" <St***@Orr.net> wrote in message
news:#J**************@TK2MSFTNGP12.phx.gbl...
ASP.NET renames them to prevent naming conflicts and to keep the naming
consistent.
You can get the true ID at run time from the ClientID property of the
control.
You also should be able to inherit a control and override this property for more manual control of the naming.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"MS News" <sq**********@hotmail.com> wrote in message
news:ur**************@TK2MSFTNGP09.phx.gbl...
Hi all

is there a way to fix an id

like id=txtCheckedItems

aspx changes it to _ctl0_eee_txtCheckedItems

in
<input name="_ctl0:eee:txtCheckedItems" id="_ctl0_eee_txtCheckedItems"
type="hidden" size="28" />

How else can this be done
Thank for your help

Jim


Nov 17 '05 #3
You can created a Public Variable in ur code with the client id
Ie
Public MyString as string
Page load / maybe INIT
MyString = mycontrol.id / clinetid
in ur htmlcode where u need client id in javascript <% =MyString %>
somthing like that

"MS News" <sq**********@hotmail.com> wrote in message
news:#x**************@tk2msftngp13.phx.gbl...
What about getting to that control at the Client Side via JavaScript
I have to generate dynamic javascript?

Thanks Steve
"Steve C. Orr, MCSD" <St***@Orr.net> wrote in message
news:#J**************@TK2MSFTNGP12.phx.gbl...
ASP.NET renames them to prevent naming conflicts and to keep the naming
consistent.
You can get the true ID at run time from the ClientID property of the
control.
You also should be able to inherit a control and override this property

for
more manual control of the naming.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"MS News" <sq**********@hotmail.com> wrote in message
news:ur**************@TK2MSFTNGP09.phx.gbl...
Hi all

is there a way to fix an id

like id=txtCheckedItems

aspx changes it to _ctl0_eee_txtCheckedItems

in
<input name="_ctl0:eee:txtCheckedItems" id="_ctl0_eee_txtCheckedItems"
type="hidden" size="28" />

How else can this be done
Thank for your help

Jim



Nov 17 '05 #4

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

Similar topics

2
by: John Resler | last post by:
Hi all, First I want to say I am fully aware of the huge scope of the problem of parsing and correcting files of any sort. I have been using the jTidy libraries (Dave Raggett W3C, I believe) to...
6
by: Leo J. Hart IV | last post by:
Hello, I have a table: <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1"> <tr> <td...
13
by: Nige | last post by:
I've just given one of my sites (www.wealdbroadband.co.uk) an overhaul. Anyone know if there is a way of fixing text at a certain relative position down a page? I'd like the "(c) 2003 ..." notice...
8
by: Andrew Ayre | last post by:
Hi, I have the following table layout: --------------------- | A | E | ------ |
115
by: J | last post by:
I've run CSSCheck on my style sheets and I always get a warning similar to this: "font: bold 9pt/100% sans-serif Warning: Absolute length units should not generally be used on the Web ..." ...
7
by: vadi | last post by:
I need to design a class for fixing different kind of errors. The errrors fall into number of categories. For each category the methodology of fixing the error is different. I do not want to use a...
4
by: Software | last post by:
Hi, I'm looking for a tool to analyze a project's code or object files (lots of .c and .h files) so that I can do a good redesign/refactoring. - I need to see how many global variables I have...
3
by: Torben Laursen | last post by:
Hi Is there a simple way to control the width of a homepage in asp.net. What I want is the content of the homepage to have a fixed width of e.g. 20 cm surrounded by a background. In that way I...
0
pbmods
by: pbmods | last post by:
FIXING NETINFO ERRORS ON THE COMMAND LINE LEVEL: ADVANCED PREREQS: TERMINAL / COMMAND LINE, USERS AND GROUPS Intro Today, while performing routine maintenance, I noticed that I was no...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
0
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...
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.