Is it possible? I haven't been able to find any information about this.
Not on the web, not in books.
Is it possible to call a function or subroutine which is defined in a
MasterPage from it's derivative ContentPage?
Thanks.
Jeff 5 1834
In your aspx add:
<%@ MasterType virtualPath="~/<MasterPageName>.master"%>
Then in its codebehind:
this.Master.MyMethod()
Hope this is what you needed.
"je********@gmail.com" wrote: Is it possible? I haven't been able to find any information about this. Not on the web, not in books.
Is it possible to call a function or subroutine which is defined in a MasterPage from it's derivative ContentPage?
Thanks. Jeff
Hi Mark,
Thanks for pointing this out. K. Scott Allen has a more detailed, but
in VB.NET, article here: http://odetocode.com/Blogs/scott/arc...7/16/1944.aspx
Tod Birdsall, MCSD for .NET
software blog: http://tod1d.net
MarkAurit wrote: In your aspx add: <%@ MasterType virtualPath="~/<MasterPageName>.master"%>
Then in its codebehind: this.Master.MyMethod()
Hope this is what you needed.
"je********@gmail.com" wrote:
Is it possible? I haven't been able to find any information about this. Not on the web, not in books.
Is it possible to call a function or subroutine which is defined in a MasterPage from it's derivative ContentPage?
Thanks. Jeff
Thanks for your quick responses!! I'll let you guys know how it turns
out.
You're welcome for point this out. If you want, I can point out more
problems sooner :)
Jeff
Tod Birdsall, MCSD for .NET wrote: Hi Mark,
Thanks for pointing this out. K. Scott Allen has a more detailed, but in VB.NET, article here:
http://odetocode.com/Blogs/scott/arc...7/16/1944.aspx
Tod Birdsall, MCSD for .NET software blog: http://tod1d.net
MarkAurit wrote: In your aspx add: <%@ MasterType virtualPath="~/<MasterPageName>.master"%>
Then in its codebehind: this.Master.MyMethod()
Hope this is what you needed.
"je********@gmail.com" wrote:
Is it possible? I haven't been able to find any information about this. Not on the web, not in books.
Is it possible to call a function or subroutine which is defined in a MasterPage from it's derivative ContentPage?
Thanks. Jeff
You'll be back ;-)
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
<je********@gmail.com> wrote in message
news:11**********************@b68g2000cwa.googlegr oups.com... Thanks for your quick responses!! I'll let you guys know how it turns out.
You're welcome for point this out. If you want, I can point out more problems sooner :)
Jeff
Tod Birdsall, MCSD for .NET wrote: Hi Mark,
Thanks for pointing this out. K. Scott Allen has a more detailed, but in VB.NET, article here:
http://odetocode.com/Blogs/scott/arc...7/16/1944.aspx
Tod Birdsall, MCSD for .NET software blog: http://tod1d.net
MarkAurit wrote: > In your aspx add: > <%@ MasterType virtualPath="~/<MasterPageName>.master"%> > > Then in its codebehind: > this.Master.MyMethod() > > Hope this is what you needed. > > "je********@gmail.com" wrote: > > > Is it possible? I haven't been able to find any information about > > this. > > Not on the web, not in books. > > > > Is it possible to call a function or subroutine which is defined in a > > MasterPage from it's derivative ContentPage? > > > > Thanks. > > Jeff > > > >
It worked prefectly. Thank you so much guys! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Amit |
last post by:
I tried calling a subroutine in a fortran module from C ,but couldn't.I
always get the error: undefined reference in the main.o file (main is
in C calling the subroutine).
for calling the...
|
by: phil1bruening |
last post by:
Hi,
How can I change webcontrols from a contentpage in the masterpage?
|
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...
|
by: User |
last post by:
OK, I asked in a reply, but I've wasted far too long so I'm going to put
a new post out there in hopes that it will be more visible.
I have a MasterPage. I want to call a method declared in that...
|
by: dawg1998 |
last post by:
I have a page that creates dynamic textboxes based on the number of
fields a user chooses to fill out.
This process worked great when the page was standalone. However, when I
move to a...
|
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...
|
by: =?Utf-8?B?Sm9obg==?= |
last post by:
I have a dropdownlist in masterpage and a big table in contentpage. When ddl
selection changes, I want to move a specific row of the table to the top of
the contentpage. Can I do something like <a...
|
by: Sully |
last post by:
I know this is a basic question, but I cannot find the answer.
I have a 3 LinkButtons on the masterpage that set a session variable,
this session variable does not get relayed to the content page...
|
by: premprakashbhati |
last post by:
hi, good evening..
i am going to upload an image in a web form .....for that iam using HTML input(file) control and one web control button i.e., Upload_Button()
here is the code ...its work fine...
|
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...
|
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...
|
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...
|
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)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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....
|
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: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
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...
| |