Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Events not firing...Events not firing...
Previous
 
Next
New Post
7/1/2008 10:52 AM
 

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)

 
New Post
7/2/2008 4:02 AM
 

Maybe I found something that helps... It is not that the events do not fire, it is that the control that creates the event, does not exist in postback.

While debuging the code, I found out two things:

1. DNNuke executes CreateChildControls() before Loadv13wstat3

2. Even after Loadv13wstat3, and with Enablev13wstat3=True, SelectedMailQ value is empty

Private Property SelectedMailQ() As String
    Get
        Dim mID As String = "|"
        Dim m As Object = v13wstat3("SelectedMailQ")
        If Not m Is Nothing Then
            mID = CType(m, String)
        End If
        Return mID
    End Get
    Set(ByVal value As String)
        v13wstat3("SelectedMailQ") = value
    End Set
End Property

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Events not firing...Events not firing...


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out