access the id of the usercontrol in the master Page

Posted by hareeshkumarkr-16190 under ASP.NET on 12/1/2014 | Points: 10 | Views : 348 | Status : [Member] | Replies : 1
Hi ALl,

I am trying to access the id of the usercontrol in the master Page (.aspx) from its child page in asp.net
but I am getting error like null

I was the tried bellow method

Message msg = this.Master.FindCotrol("msgs") AS Message //msg showing null

is there any other way to get the id ?




Responses

Posted by: hareeshkumarkr-16190 on: 12/1/2014 [Member] Starter | Points: 25

Up
0
Down
yes, I got an answer by using property.

thank you

hareeshkumarkr-16190, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response