Accessing Master page functions from content page we must include a MasterType directive at the top of the Content page ASPX file:
<%@ MasterType virtualpath="~/DetailsMaster.master" %>
In DetailsMaster.master.cs page
public void SavePageData()
{
// function definition
}
After place the MasterType directive is in place in the Content page, then public functions in the Master page are available to the Content page code.
C# Code:
//Call the SavePageData function from the Master page
Master.SavePageData();
I hope it will helpfull for other developer.
Sharing real-world experiences about C#, Dynamics CRM, Dynamics 365, Dynamics NAV/Business Central, SharePoint,PowerBI,ASP.net and more...
Subscribe to:
Post Comments (Atom)
Method 'StartWorkflowOnListItem' in type 'Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider'
Exception: Method 'StartWorkflowOnListItem' in type 'Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider'...
-
The CheckBoxList control in ASP.NET 2.0 is one of the useful control for asp.net developer. But it is not so easy(also not complicated :))to...
-
There are various ways to use Single Sign on(SSO) in asp.net web application. We can use cookies, session (state server), SAML and web serv...
-
Problem: Today I have faced a new problem(new for me), when I press save button it works fine and then refresh(F5 or Refresh button on brow...
4 comments:
I would like to exchange links with your site www.blogger.com
Is this possible?
yap
I would like to exchange links with your site aspboss.blogspot.com
Is this possible?
It's really a extra-ordinary site....its just fulfill the developers daily needs......
Post a Comment