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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top