validationsummary and masterpage

  • Thread starter Thread starter André Freitas
  • Start date Start date
A

André Freitas

Im trying to put a validation summary inside a updatepanel in a masterpage,
then i need to addtrigers to this updatepanel in order to get the
validationsummary updating right for each control that i have in the content
pages. how can i do that?
 
got it working.
if someone knows a easy way, pls tell me

In content page:

Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As EventArgs)
Handles Me.PreInit

Dim vUP As UpdatePanel
vUP = Me.Master.FindControl("UpdatePanelError")

Dim vAPBT As AsyncPostBackTrigger
vAPBT = New AsyncPostBackTrigger
vAPBT.ControlID = oSearch.UniqueID

vAPBT.EventName = "Click"
vUP.Triggers.Add(vAPBT)

End Sub
 
Back
Top