473,800 Members | 2,930 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1101
You should be able to find a control using Page.Findcontro l 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******** ******@TK2MSFTN GP11.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********@REM OVETHIS.gmail.c om> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
You should be able to find a control using Page.Findcontro l 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******** ******@TK2MSFTN GP11.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
4763
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 appreciated. Thanks in advance
6
2773
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 appreciated. Thanks in advance
49
14364
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 application is relatively big: around 200 tables, 200 forms and sub-forms, 150 queries and 150 repports, 5GB of data (SQL Server 2000), 40 users. I'm wondering what are the disadvantages of using Access as front-end? Other that it's not...
2
1966
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. When I click the command button it should open another form to show some records. My problem is that some of the buttons work fine but some others just stuck there and then poping out an error message asking me to manually choose SQL server and...
5
3441
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 access this file or a better way to do it?
0
9689
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10495
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10269
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10248
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6811
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5597
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2942
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.