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

call a method in the masterpage from vb to c#

Hello,

I am using the following to call a sub procedure in a MasterPage using vb.
I am trying to find the equivalent in c#. Any help would be appreciated.

Call CType(Me.Master, mpColumn02).LoadMenu("menu_svcprtf")

Thanks, sck10
Jul 26 '06 #1
2 3681
Call CType(Me.Master, mpColumn02).LoadMenu("menu_svcprtf")
=
((mpColumn02)this.Master).LoadMenu("menu_svcprtf") ;

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"sck10" wrote:
Hello,

I am using the following to call a sub procedure in a MasterPage using vb.
I am trying to find the equivalent in c#. Any help would be appreciated.

Call CType(Me.Master, mpColumn02).LoadMenu("menu_svcprtf")

Thanks, sck10
Jul 26 '06 #2
Thanks Peter...
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
news:9F**********************************@microsof t.com...
Call CType(Me.Master, mpColumn02).LoadMenu("menu_svcprtf")
=
((mpColumn02)this.Master).LoadMenu("menu_svcprtf") ;

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"sck10" wrote:
>Hello,

I am using the following to call a sub procedure in a MasterPage using
vb.
I am trying to find the equivalent in c#. Any help would be appreciated.

Call CType(Me.Master, mpColumn02).LoadMenu("menu_svcprtf")

Thanks, sck10

Jul 26 '06 #3

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

Similar topics

9
by: Leffe Andersson | last post by:
Hi folks! I have a MasterPage with some public methods, and I would like to call them from a (app_code) class. Is it possible to set a directive or an assembly reference to a MasterPage from a...
0
by: clintonG | last post by:
I've been looking for blogs, documentation, patterns, and/or your comments regarding how to design and use static methods of a "helper" class to change properties of controls in the page,...
5
by: Islamegy® | last post by:
In my project i have two master page which i change dynamic in runtime.. The first one with 1 ContentPanel "onepanel.master", the second with 2 contentPanel"twopanel.master".. but when i switch...
4
by: cevans | last post by:
Is there a way to load a MasterPage programmatically? Not switch a page's masterpage but to create a MasterPage object that holds a given masterpage. So I know I can do: MasterPage master =...
7
by: Bon | last post by:
Dear all I create a master page with image buttons on the left-hand side for navigation. When a user clicks the student button, the content (i.e. ContentPlaceholder) in masterpage will be...
2
by: Steve Kershaw | last post by:
Hi, I have an ASP.NET application with a MasterPage that has a method defined as public. Now I want to run this MasterPage method from INSIDE the default.aspx page. I know there has to be a...
2
by: Rissoman | last post by:
I have two user controls on a master page. I can easily bubble up an event on usercontrol 1 from a click event to the page.aspx, than then calls a method on the masterpage, but this causes the...
4
by: faraz | last post by:
I have a javascript function that i want to call masterpage load method called. I cant add onLoad event of body or table in master page. I have put the call to script function in <form>, it...
4
JustRun
by: JustRun | last post by:
Hi, I'm trying to develop a MultiLanguage web site using ASP.NET 2.0 with C# My problem is: I want to make my MasterPage support switching among languages, but when i put 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
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.