tag:blogger.com,1999:blog-8980734269859237005.post2945140518731342380..comments2024-01-30T01:03:21.768-08:00Comments on DevCurry: Access ASP.NET Master Page controls from Content PageSuprotim Agarwalhttp://www.blogger.com/profile/08349831623922214390noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-8980734269859237005.post-76747817208799110092016-09-30T23:57:04.925-07:002016-09-30T23:57:04.925-07:00I have tried Approach 2, and it worked..
However,...I have tried Approach 2, and it worked.. <br />However, <br />I used some javascript at the master page, and manage to change the text value at the master page.. (The screen showed that the value at the master page changed)<br />When I access the value from the content page using approach 2, the value was still the original value. (meaning that it did not change)..<br /><br />Anonymoushttps://www.blogger.com/profile/04160212780856783991noreply@blogger.comtag:blogger.com,1999:blog-8980734269859237005.post-25133635566539807502013-03-30T01:07:36.805-07:002013-03-30T01:07:36.805-07:00send value from ContentPage to MasterPage is corre...send value from ContentPage to MasterPage is correct.<br />CODE:<br /> Me.Master.ptyFilterValue = "TEST"Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8980734269859237005.post-46160989225156640162013-03-30T00:47:31.122-07:002013-03-30T00:47:31.122-07:00Code From MasterPage:
Protected Sub btnSearch_...Code From MasterPage:<br /> Protected Sub btnSearch_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles btnSearch.Click<br /> Try<br /> 'txtFiltros.Text<br /> Me.FilterColumn = Me.cboFilter.SelectedValue<br /> Me.FilterValue = Me.txtFilter.Text<br /> Response.Redirect("~/modApp/frmSquareView.aspx")<br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8980734269859237005.post-36538740365771960132013-03-30T00:44:42.733-07:002013-03-30T00:44:42.733-07:00not work, the property or control is good but not ...not work, the property or control is good but not transfier de value<br />from masterpage to contentpage.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8980734269859237005.post-23224297344640832072012-03-21T04:24:49.544-07:002012-03-21T04:24:49.544-07:00Approach 2 also requires the line:
<%@ MasterT...Approach 2 also requires the line:<br /><br /><%@ MasterType VirtualPath="~/MasterPage.master" %><br /><br />at the top of your content page.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8980734269859237005.post-11054813942421115182011-12-21T12:03:47.255-08:002011-12-21T12:03:47.255-08:00I Tried to do the Aproach 2 in Visual studio 2010 ...I Tried to do the Aproach 2 in Visual studio 2010 and it did not worket.<br /><br />How it works in 2010?Enel Almontehttps://www.blogger.com/profile/15128197067198189708noreply@blogger.com