validationsummary and masterpage

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?
 
A

André Freitas

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top