Click here to Skip to main content
15,915,328 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How can I access a method on a child page from its master page ? Pin
Not Active10-May-11 13:43
mentorNot Active10-May-11 13:43 
GeneralRe: How can I access a method on a child page from its master page ? Pin
AspDotNetDev10-May-11 16:20
protectorAspDotNetDev10-May-11 16:20 
AnswerRe: How can I access a method on a child page from its master page ? Pin
AspDotNetDev10-May-11 10:55
protectorAspDotNetDev10-May-11 10:55 
GeneralRe: How can I access a method on a child page from its master page ? Pin
Keith Barrow10-May-11 11:40
professionalKeith Barrow10-May-11 11:40 
GeneralRe: How can I access a method on a child page from its master page ? Pin
AspDotNetDev10-May-11 12:02
protectorAspDotNetDev10-May-11 12:02 
GeneralRe: How can I access a method on a child page from its master page ? Pin
Keith Barrow10-May-11 12:06
professionalKeith Barrow10-May-11 12:06 
GeneralRe: How can I access a method on a child page from its master page ? Pin
AspDotNetDev10-May-11 12:09
protectorAspDotNetDev10-May-11 12:09 
GeneralRe: How can I access a method on a child page from its master page ? [modified] Pin
Keith Barrow10-May-11 12:18
professionalKeith Barrow10-May-11 12:18 
I'm not going to code it (1am here & I don't need the head-fry), but the process is simple enough:

1. Add an event to the masterpage, DatagridChanged or somesuch
2. The child subscribes to the event
3. When the datagrid on the masterpage is changed , the the event is raised and the subscribed handler does the work on the child.

Note the MasterPage is totally agnostic of the the Child, giving pure decoupling in that direction and the child can access any data it might need from the master page. You can even probably hook into the datagrid's own events, even neater.

[edit]
Also note I have corrected what I originally said: I got it totally wrong, it was 1:20am after all. now I'm off to the land of nod.

Questionfetching radiobutton control value from gridview Pin
Karan_TN9-May-11 22:52
Karan_TN9-May-11 22:52 
AnswerRe: fetching radiobutton control value from gridview Pin
Roman_wolf10-May-11 0:29
Roman_wolf10-May-11 0:29 
GeneralRe: fetching radiobutton control value from gridview Pin
Karan_TN10-May-11 1:33
Karan_TN10-May-11 1:33 
GeneralRe: fetching radiobutton control value from gridview Pin
Roman_wolf10-May-11 20:58
Roman_wolf10-May-11 20:58 
QuestionA stupid CustomValidator [Solved] Pin
Ali Al Omairi(Abu AlHassan)9-May-11 22:12
professionalAli Al Omairi(Abu AlHassan)9-May-11 22:12 
AnswerRe: A stupid CustomValidator [Solved] Pin
Ali Al Omairi(Abu AlHassan)10-May-11 3:30
professionalAli Al Omairi(Abu AlHassan)10-May-11 3:30 
Questionhow can add javascript code ?? Pin
lolostar9-May-11 14:41
lolostar9-May-11 14:41 
AnswerRe: how can add javascript code ?? Pin
Anurag Gandhi9-May-11 19:13
professionalAnurag Gandhi9-May-11 19:13 
AnswerRe: how can add javascript code ?? Pin
Nitin S9-May-11 19:19
professionalNitin S9-May-11 19:19 
GeneralRe: how can add javascript code ?? Pin
lolostar9-May-11 20:10
lolostar9-May-11 20:10 
GeneralRe: how can add javascript code ?? Pin
Nitin S9-May-11 20:13
professionalNitin S9-May-11 20:13 
GeneralRe: how can add javascript code ?? Pin
Ali Al Omairi(Abu AlHassan)9-May-11 22:08
professionalAli Al Omairi(Abu AlHassan)9-May-11 22:08 
AnswerRe: how can add javascript code ?? Pin
Prasanta_Prince9-May-11 21:03
Prasanta_Prince9-May-11 21:03 
QuestionDatabase audit/journaling Pin
vanikanc9-May-11 8:09
vanikanc9-May-11 8:09 
AnswerRe: Database audit/journaling Pin
Ennis Ray Lynch, Jr.9-May-11 8:21
Ennis Ray Lynch, Jr.9-May-11 8:21 
QuestionASP & JavaScript Pin
future38397-May-11 1:56
future38397-May-11 1:56 
AnswerRe: ASP & JavaScript Pin
Luc Pattyn7-May-11 2:20
sitebuilderLuc Pattyn7-May-11 2:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.