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

too many Questions.. How to Access a Field in the USER control

RSB
Hi all,

Sorry for asking to many questions..

one more problem.

i have a Form and in that form i am adding a user control "myUserControl"
which has two text boxes. textbox1 and textbox2.

Now if i am executing a Javascript function right inside the user control ..
say again a validation function then how do i refer to these textboxes
inside the Usercontrol.

as so far i been using this.. window.document.myform.text.value... etc etc.

but now in that user control how do i refer the textbox.
Also if i am executing the javascript Function in the Main Page then how do
i access these fields. As ASP.NEt change the name and Id of the Child
fields. as once my page is painted and if i look at the source the ID and
Name for these Text boxes is some what like this. myForm1_TextBox1 or
myForm:textBOx1.
please help...

Thanks
RSB.
Nov 18 '05 #1
1 1215
Hi
I am not sure if you are looking for something specific but the control inside a user control can be accessed by using
window.document.forms[0].UserControl1_txtUser.value where UserControl1 is the id of the user control and txtUser is id of a textbox inside the user control
regard
srin
Nov 18 '05 #2

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

Similar topics

2
by: Jmar | last post by:
Having spent many years working with VB 4.0 I've recently purchased VB.net. At this early point I have two questions. 1) How can I QUICKLY view the code associated with a specific control? If I...
1
by: Jmar | last post by:
Having spent many years working with VB 4.0 I've recently purchased VB.net. At this early point I have two questions. 1) How can I QUICKLY view the code associated with a specific control? If I...
3
by: Jouke Langhout | last post by:
Hello all! For quite some time now, I've got the following problem: Access won't close properly when a user closes the application. An ACCESS process stays active and that process can only be...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
6
by: craig | last post by:
I have two questions that aren't necessarily C#-related, but I think there are many people in this forum who have some insight into these concepts, so I thought I would ask anyway: 1. Assume...
14
by: Kevin | last post by:
A couple of easy questions here hopefully. I've been working on two different database projects which make use of multiple forms. 1. Where's the best/recommended placement for command buttons...
3
by: Fendi Baba | last post by:
I am new to access development, please bear with me if these questions sound trivial. I am creating an Access application using link tables. My database resides in MSDE. I have created multiples...
7
by: Don | last post by:
I'm not very proficient with Access, probably only enough to make me dangerous. With that said I've got two questions. #1 (probably pretty simple). I know I've done this before but how do I get...
0
by: David | last post by:
Hi list. I have a few database-related questions. These aren't Python-specific questions, but some of my apps which use (or will use) these tables are in Python :-) Let me know if I should ask...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.