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

Access form from a user control

Hello,

I have a usercontrol on page, this one is place on a panel.

On the page there is some others panel and controls on it.

I'd like from the user control use a another control on the form.

For example, I have a panel, with a Label to display the error message
generated by the user control. Could you tell me how to do that ?
Thanks,
Nov 18 '05 #1
2 1088
You should be able to find a control using Page.Findcontrol method, which
returns a control type. you should type cast before you use it as whatever
control you were looking for

--
Kumar Reddi

"Christian Ista" <ml@cista.be> wrote in message
news:Oz**************@TK2MSFTNGP11.phx.gbl...
Hello,

I have a usercontrol on page, this one is place on a panel.

On the page there is some others panel and controls on it.

I'd like from the user control use a another control on the form.

For example, I have a panel, with a Label to display the error message
generated by the user control. Could you tell me how to do that ?
Thanks,

Nov 18 '05 #2
Kumar's suggestion of using FindControl is good, but you might wanna check
out my article on Page-User Control communication for possibly cleaner
solutions at http://openmymind.net/communication/index.html

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Kumar Reddi" <ku********@REMOVETHIS.gmail.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
You should be able to find a control using Page.Findcontrol method, which
returns a control type. you should type cast before you use it as whatever
control you were looking for

--
Kumar Reddi

"Christian Ista" <ml@cista.be> wrote in message
news:Oz**************@TK2MSFTNGP11.phx.gbl...
Hello,

I have a usercontrol on page, this one is place on a panel.

On the page there is some others panel and controls on it.

I'd like from the user control use a another control on the form.

For example, I have a panel, with a Label to display the error message
generated by the user control. Could you tell me how to do that ?
Thanks,


Nov 18 '05 #3

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

Similar topics

6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
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...
2
by: Jiwei06xie | last post by:
Hi All, I am trying to upgrade an Access 2000 DB to 2007 (using linked tables and ODBC to connect to backend SQL 2000 database). In my DB, I have a mainswitch board and some command buttons on it....
5
by: intriken | last post by:
I have created a tool, that now needs to write to a log file, on a network drive not accessible by the user of the tool. Is there a way to add user/pass parameters to java.io.File so that i can...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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...
0
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...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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

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.