473,387 Members | 1,517 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,387 software developers and data experts.

asp.net and htmltag with no runat=server

hello,
i'am looking for manipulate a html tag without runat=server.
Because :
1 : runat server tag : add a uniqid (not manipulated with javascript/dom in
dynamic code)
2 : i want set my own clientID on my html tag

how do :
<asp:CheckBox id="john" runat="server"></asp:CheckBox>
and obtain :
<input type=checkbox id="john"!!!! and not
<input type=checkbox id="ctl00_blablabla_john"......

thx

steph
Aug 25 '06 #1
2 1653
Steph,
This is an ASP.NET question and should be posted at the ASP.NET group, it
isn't a C# language -related question.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Steph" wrote:
hello,
i'am looking for manipulate a html tag without runat=server.
Because :
1 : runat server tag : add a uniqid (not manipulated with javascript/dom in
dynamic code)
2 : i want set my own clientID on my html tag

how do :
<asp:CheckBox id="john" runat="server"></asp:CheckBox>
and obtain :
<input type=checkbox id="john"!!!! and not
<input type=checkbox id="ctl00_blablabla_john"......

thx

steph
Aug 25 '06 #2
Steph,

You get this ctl00_blablabla_ prefix because the check box is in some naming
container. If you placed directly on the page there is not going to be any
prefixes.

Actyally the prefix makes sure that there is no 2 controls with the same ID,
which can happen if the page uses User Controls

What exactly is that you wanna do? What do you mean by manipulate?
Manipulate on the client side or on the server side in other words from code
behind or from javascript?

Finally why is the prefixing such a big deal?
--
Stoitcho Goutsev (100)

"Steph" <pi**@pipo.comwrote in message
news:44***********************@news.orange.fr...
hello,
i'am looking for manipulate a html tag without runat=server.
Because :
1 : runat server tag : add a uniqid (not manipulated with javascript/dom
in dynamic code)
2 : i want set my own clientID on my html tag

how do :
<asp:CheckBox id="john" runat="server"></asp:CheckBox>
and obtain :
<input type=checkbox id="john"!!!! and not
<input type=checkbox id="ctl00_blablabla_john"......

thx

steph

Aug 25 '06 #3

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

Similar topics

1
by: Gary Bagen | last post by:
Hello, I am working on a page transition scheme and was wondering what the quickest way is to find out which ASP.NET controls need to be inside a form with runat=server. I've determined that...
4
by: Matthew Louden | last post by:
It happend to me more than once. When I create web controls or move the positions in VS.NET, I encountered the following run-time errors: It doesn't matter what controls I create, the following...
9
by: Jay | last post by:
Where is there a good article/description on why everything is runat=server. I just can't seem to grasp why ALL tags (even table tags) are runat server in dotnet. Thank You
3
by: testemail | last post by:
Hello How do I perform a variable replacement in ASP.NET when I am using the runat=server clause to generate a table - it was simple in ASP With ASP : ---------- <HTML> .... <BODY>
3
by: Ferryandi | last post by:
hi, i have created a button link like this and attach it to placeholder in code behind linkbutton1 = New LinkButton linkbutton1.Text = "Link Button linkbutton1.ID = "Link1"...
3
by: Russ | last post by:
I have a usercontrol that is loaded by a webform. The usercontrol populates a datagrid which users need the capability to export data from the grid to Excel. The problem is that when I attempt to...
4
by: Alex Maghen | last post by:
I have a master page which contains a general page framework and also contains a <form runat=server> around most of the content of the page. Inside that <form> tag is a ContentPlaceholder. I...
7
by: skeddy | last post by:
In a nutshell, I'm trying to dynamically create a select box with ResultSet code in vbscript and then need to be able to access the value of that select box later with a Save button. I've got...
3
by: pbd22 | last post by:
Hi. How do I add the runat=server attribute on a buttonfield link dynamically? thanks!
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...
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
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...

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.