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

how to acces a parentcontainer from a user control

using vb.net ...

I have a webpage: mainwebpage.aspx which inherits
PORTAL.PORTALLOGIN.MANAGERIGHTS

mainwebpage.aspx contains a placeholder: MyPlaceholder

The control MyPlaceholder contains a usercontrol "ManageGeneral.ascx"
which Inherits="PORTAL.ManageGeneralNameSpace.ManageGene ralWebControlCode"

On the user control ManageGeneral.ascx I have a button which accesses a Sub
in PORTAL.ManageGeneralNameSpace.ManageGeneralWebCont rolCode which in turn,
I want it to access a function located in PORTAL.PORTALLOGIN.MANAGERIGHTS
here is the function in PORTAL.PORTALLOGIN.MANAGERIGHTS:
Public Sub DisplayMessage(ByVal answer As String, ByVal backcolor As
System.Drawing.Color, ByVal forecolor As System.Drawing.Color)
lblUPDATEMYRECORDfeedback.ForeColor = forecolor
lblUPDATEMYRECORDfeedback.BackColor = backcolor
lblUPDATEMYRECORDfeedback.Text = answer
End Sub

here is the function in
PORTAL.ManageGeneralNameSpace.ManageGeneralWebCont rolCode

Public Sub DisplayAnswer(ByVal answer As String, ByVal backcolor As
System.Drawing.Color, ByVal forecolor As System.Drawing.Color)

Private LoginManageRights As PORTAL.PORTALLOGIN.MANAGERIGHTS (this is
actually placed below the Inherits...)
LoginManageRights.DisplayMessage(answer, backcolor, forecolor)

End Sub

Is there a way to do that ?

Thanks

Terry

Nov 19 '05 #1
0 881

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

Similar topics

2
by: SzokU | last post by:
Does javascript have acces to source code of previous page when I open a page from the same domain with window.open("new_page_with_script","_self","");? window.opener.document.innerHTML doesn't...
1
by: Anonieko Ramos | last post by:
You can use the OnKeypress javascript event Evaluate the keypress on the function > > > <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
1
by: TTD_hck | last post by:
Hello, I need suggestions for the following. I have a acces 97 database and with a script command in acces 97, I can e-mail a file via outllok. I do this with the folowing command in Acces 97:...
0
by: Iker Llanos | last post by:
I have a MAPI.Session created. I can acces to the addres book but what i wnat is to access to the properties of a predefined user (name, address, phone number and so on). How can I do this ...
1
by: Dakkar | last post by:
I'm getting this error when i execute my program ERROR Acces denied for user:'root@DAKKAR123' and when i write the line like this i dont take any error MyConn = new...
3
by: frederik | last post by:
Hi The website have to show subdirectories on a network drive. I use the following code: string directories; directories=Directory.GetDirectories(_Path); ....
5
by: Mrozu | last post by:
Hi I have frm1. On this form button.Click code for this button is: Dim frm2 as New frm2 frm2.show So after click, frm2 form is shown.
3
by: tomPee | last post by:
Hi, I have the following problem: I am trying to make some sort of base class menu that i can then use to derive other menu's from. Those menu's should then be able to interact with each other....
6
by: zaankanter | last post by:
Hi, This my problem. After distribution of my acces-application I want the new user to be able to enter his Name-adress-etc values, in a one-row table called program-variables. These will be used...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
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.