|
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 normal class?
I have no problem to call the masterpage's methods from a contentpage, but
what I would like to do is someting like this...
public partial class MyMaster : System.Web.UI.MasterPage
|
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, especially controls such as multiple
LinkButtons and Panels which may be located in a MasterPage or loaded into
the Master using a Content Page.
Noting I've tried public properties, FindControl and what not with no
results. Here's what I've got, I'm...
|
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 between them it don't work, if the default masterpage is
"onepanel.master" and try to change it in runtime, ContentPanel2 which is
exist in the loaded masterpage throw exception..
the same happen if the default is "twopanel.master" and switch it...
|
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 = new MasterPage();
But there is no way to do something like:
MasterPage master = new MasterPage("~/default.master");
|
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 changed from default.aspx to
students.aspx.
I tried to create a subroutine in MasterPage.master.vb to do it. The
code is as following. But, the default.aspx's content is shown in
MasterPage even I clicked the student button.
|
|
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 way of doing this!
Anybody know?
|
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 screen to do a
postbacka nd full load. What I'm doing is i have a button on one user
control that when clicked it will dynamically load a usercontrol into
a placeholder on the masterpage. I know that if I were to put
everything into an update...
|
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 works on every
pageLoad. seems my problem is solved. But when the pages uses
UpdatePanel and it gets asynchronously postback. the function call at
master page doesnt execute????? thought master page Load event gets
called even when pages are in...
|
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 "InitializeCulture()" inside the masterpage.cs, I got this erreor:
MasterPage.InitializeCulture()': no suitable method found to override
Note the following code works fine with xxx.aspx page, but not with MasterPage
Here is my code:
public override void...
|
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
|
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...
|