Hi
i have placed usercontrol "ucHead" in Master page .In ucHead i have label "Calender1" and 4 butttons
4 buttons for btnNextYear,btnPrevYear,btnNextMonth,btnPrevMonth
and i hav taken a hidden field and set its value to the calender1.selecteddate.toshortstring
now i want to use that hiddenfield value in contentpage
when ever i change the date that changed date i'm assigning to the hiddenfield ,
i'm able to pass this value but its not giving correct date
for ex: first time hiden field value=12/20/2007
if change date to 12/21/2007
in hidenfield value=12/21/2007
but in content page its displaying prevone ie 12/20/2007
i have tried the following code in default.aspx
Dim uc As UserControl
uc = CType(Me.Master.FindControl("UsrHeader1"), UserControl)
Dim mLblDate As HiddenField
mLblDate = CType(uc.FindControl("hfDate"), HiddenField)
If Not mLblDate Is Nothing Then
'Set content page title to master page control
lbldate.Text = mLblDate.Value
End If
plz help me how to get the correct value in content page
thank u
Archu