I am developing some web user controls for DNN. Although everything works fine in a test solution, when I am putting the code inside DNN, some events do not fire.
Private Sub writeMailQList()
Dim newMailQ As New MailQNewTable
With newMailQ
.ID = "MailQList_New"
.UserName = userName
.Password = passWord
.connectionString = connectionString
End With
AddHandler newMailQ.QmsgReadClicked, AddressOf Me.startViewMailQ_Click
gridMailQ.Controls.Add(newMailQ)
End Sub
Private Sub writeMailQReadTable(ByVal mId As String)
Dim newMailQ As New MailQReadTable
With newMailQ
.ID = "MailQ_" + mId
.UserName = userName
.Password = passWord
.MessageID = mId
.connectionString = connectionString
End With
AddHandler newMailQ.QmsgInReplyClicked, AddressOf Me.viewMailQ_Click
AddHandler newMailQ.QmsgReplyFromClicked, AddressOf Me.viewMailQ_Click
gridMailQ.Controls.Add(newMailQ)
End Sub
Private Sub startViewMailQ_Click(ByVal s As Object, ByVal e As EventArgs)
SelectedMailQ = CType(s, LinkButton).CommandArgument + "|"
SaveViewState()
gridMailQ.Controls.Clear()
writeSelectedMailQs()
End Sub
Private Sub viewMailQ_Click(ByVal s As Object, ByVal e As EventArgs)
SelectedMailQ += CType(s, LinkButton).CommandArgument + "|"
SaveViewState()
gridMailQ.Controls.Clear()
writeSelectedMailQs()
End Sub
At the begining, writeMailQList, creates a list of emails. Once clicking an email, it creates the email table through the startViewMailQ_Click event. By pressing the Reply From, or the Reply To buttons, in email view, it should raise viewMailQ_Click event and display both emails. This is working fine in another project, while in nuke, the event never fires and I am viewing the page in default status (email list)