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

find a TextBox in a FormView in javascript

Hi,
In javascrip i have to find a "Versam20TextBoxEd" in a FormView but i get
error of compilation
the "Versam20TextBoxEd" is not in the context

I can find the FormView
document.getElementById('<%=FormView3.ClientID%>') ; ok
but i don't find the TextBox
document.getElementById('<%=FormView3.ClientID%>_< %=Versam20TextBoxEd.ClientID%>');
Error ...
Thanks;

Sep 2 '06 #1
2 4775
Try

document.getElementById('<%=FormView3.FindControl( "Versam20TextBoxEd").ClientID%>');

where "Versam20TextBoxEd" would be the ID of the TextBox in FormView.
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke


"Liones" <gr**************@tiscali.itwrote in message
news:uU**************@TK2MSFTNGP02.phx.gbl...
Hi,
In javascrip i have to find a "Versam20TextBoxEd" in a FormView but i get
error of compilation
the "Versam20TextBoxEd" is not in the context

I can find the FormView
document.getElementById('<%=FormView3.ClientID%>') ; ok
but i don't find the TextBox
document.getElementById('<%=FormView3.ClientID%>_< %=Versam20TextBoxEd.ClientID%>');
Error ...
Thanks;

Sep 2 '06 #2

Thanks

Sep 4 '06 #3

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

Similar topics

8
by: Ottar | last post by:
I have a few numeric fields, and when I update i get the error: "Input string was not in a correct format". Next line:" System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer&...
4
by: Luqman | last post by:
How can I display any field value in textbox of sqldatasource using VS.Net 2005 ? Say : Dim x as new AccessDataSource X.connectionstring="Data source="D:\mydb.mdb" X.Selectcommand="Select...
2
by: hooterbite | last post by:
I am using an object datasource to call a stored procedure to update an SQL table. THE STORED PROCEDURE WORKS FINE! THE OBJECTDATASOURCE WORKS FINE! When the textbox is inside a standard HTML tag...
2
by: Dan Sikorsky | last post by:
How can we tell if the value in a FormView EditItemTemplate TextBox has changed from its initial value so that we know if we have to update the corresponding db table column value? -- Thank you...
2
by: J055 | last post by:
Hi The client script does not get created when calling the Focus method on the TextBox. No errors occur. What am I doing wrong please? protected void fv_Load(object sender, EventArgs e) {...
1
by: Marcos Galaviz | last post by:
Hi i want to asign a value to the Text property in a textbox inside a FormView when i am adding a new record ¿how can i do that? i want to use a ComboBox to select a value and this value goes to...
0
by: Paul | last post by:
I have a web form with a FormView that will display data based on an entry in the TextBox. I want to add a second FormView to work with a second TextBox. However, when I add the second TextBox,...
9
by: David C | last post by:
I have an asp.net page that contains a FormView with several controls bound to a SqlDataSource. One of the controls is a TextBox bound to a date column. I have the following additional properties...
1
by: ptcoder | last post by:
Hello everyone. I have done a lot of reading regarding the recursive issue with FindControl. I have a FormView with an <EditItemTemplate> and all I want to do is add javascript attributes to the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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
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
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,...

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.