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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0ajaxtoolkit popupcontrolextender parameters (Need Help)ajaxtoolkit popupcontrolextender parameters (Need Help)
Previous
 
Next
New Post
9/5/2007 8:13 AM
 

hallo,

i have an issue working with ajaxtoolkit + dnn 4.5

in codebehind rowdatabound event

 ... Some Code ...

Dim t As New Anthem.Label

Dim f As New AjaxControlToolkit.PopupControlExtender

t.Text = e.Row.Cells(1).Text


t.ID = "txtPop"


f.DynamicContextKey = GridView1.DataKeys(index).Item(14)

f.DynamicControlID = "pp"

f.DynamicServiceMethod = "GetContent"

Dim cazz As String = "abba" & CStr(e.Row.DataItemIndex)

f.ID = "pop"

f.BehaviorID = cazz

f.TargetControlID = "txtPop"

f.PopupControlID = Me.popo.ID

f.Position = AjaxControlToolkit.PopupControlPopupPosition.Center

e.Row.Cells(1).Attributes.Add("onMouseOver", "$find('" & cazz & "').showPopup();")

e.Row.Cells(1).Attributes.Add("onMouseOut ", "$find('" & cazz & "').hidePopup();")

 e.Row.Cells(1).Controls.Add(t)

e.Row.Cells(1).Controls.Add(f)

... some code

this create a popup panel, digging around the web, i found the use of "DynamicContextKey"

----------
<System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()> _

Public Shared Function GetContent(ByVal contextKey As String) As String

Return "mi piace la patata"

End Function

---------
in design page i have:
<asp:UpdatePanel ID="popo" runat="server">
    <ContentTemplate>
        <%--<uc1:PopUP ID="PopUP1" runat="server" />--%>
     azz   <asp:Label ID="pp" runat="server" /> azz
    </ContentTemplate>
</asp:UpdatePanel>

--------

when i move mouse over label, it display the ajax panel, but with "web service call failed 500" inside.
i suspect it was an attribute problem... but i don't know how to solve.

Someone could help me? thansk for yours attention.

TeO

 
New Post
9/5/2007 8:55 AM
 

pseudo-solved....

the problem is that DynamicKEyContext cant't find webservice on the control. Moving

<System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()> _

Public Shared Function GetContent(ByVal contextKey As String) As String

Return "mi piace la patata"

End Function

in the Default.aspx page, make it functionally. its not an elegant solution.

thanks

TeO

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0ajaxtoolkit popupcontrolextender parameters (Need Help)ajaxtoolkit popupcontrolextender parameters (Need Help)


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