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

problem with name created when control is rendered.

Hello,
I am creating a html server control that is in a datalist. I need to access
this controls value on the client via javascript but the name is being
overwritten with a unique value generated by ASP.Net. This makes it rather
impossible to access the control in javascript because I do not know what
the name of the control is.

Is there a way I can keep the original name that I assign it?

Thanks,
Sean Gamino
Jul 19 '05 #1
1 1355
You're better off telling your JavaScript code what the unique ID of the
control actually is.

If your control is in a datalist, won't there be multiple copies of it? In
that case, you _need_ unique IDs.

--
John Saunders
Internet Engineer
jo***********@surfcontrol.com
"Sean Gamino" <se*********@redstone.army.mil> wrote in message
news:OY**************@TK2MSFTNGP12.phx.gbl...
Hello,
I am creating a html server control that is in a datalist. I need to access this controls value on the client via javascript but the name is being
overwritten with a unique value generated by ASP.Net. This makes it rather impossible to access the control in javascript because I do not know what
the name of the control is.

Is there a way I can keep the original name that I assign it?

Thanks,
Sean Gamino

Jul 19 '05 #2

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

Similar topics

1
by: Sean Gamino | last post by:
Hello, I am creating a html server control that is in a datalist. I need to access this controls value on the client via javascript but the name is being overwritten with a unique value generated...
0
by: Chris Simeone | last post by:
Hello, I'm having problems with the ParseControl() method creating unexpected output which I think is preventing events from firing. My code is based on this MSDN article:...
2
by: Jeti [work] | last post by:
I'm using ASP.NET (Framework 1.1), and have encountered folowing problem: I have testing page: "testing.aspx", and i have created two controls (register and htmlEditor). register control...
1
by: Himanshu | last post by:
Hi, I have created a table in my webform and in that table i am creating/assigning dynamic HTML. I have added few control e.g strInnerHtml.Append("<td><input runat='server' type='text'...
7
by: ThunderMusic | last post by:
Hi, I have a CheckBoxList and I want to add some javascript code to each CheckBox created by this CheckBoxList. I tried iterating through all items of the list, all the controls, do a FindControl,...
6
by: hlubocky | last post by:
I thought I had a good grasp of the problem related to dynamically creating controls, but it appears that as my application grew in complexity, the problem has resurfaced. As I understand it, in...
0
by: anandv81 | last post by:
Hi, I encountered a strange problem while working on an application, the problem goes like this. I am generating a few textboxes at runtime at the server side and added to a placeholder, a...
102
by: hug | last post by:
www.webmaster, was suggested that this ng could be a better place.] I've updated my test server to handle if-modified-since. I've noticed that the (old copies I run of) IE and Netscape seem...
8
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I the page knows there was a cross post back. but i can not find the control. (asp.net 3.5) calling page has a master calling control: <asp:Button ID="btnSendAlert" runat="server" Text="Go"...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.