I have a ajaxToolkit:PopupControlExtender in user control (.ascx file) that calls a DynamicServiceMethod
DynamicServiceMethod="GetDynamicContent"
in the code behind I have this code:
<System.Web.Services.WebMethodAttribute()> <System.Web.Script.Services.ScriptMethodAttribute()> _
Public Shared Function GetDynamicContent(ByVal contextKey As System.String) As System.String
Dim strReturn As String
Dim intExpenseTrackerPaymentID As Integer = CInt(contextKey)
'http://aspnet.4guysfromrolla.com/articles/070407-1.aspx
'http://aspnet.4guysfromrolla.com/articles/071107-1.aspx
yzidell
Member
620 Points
423 Posts
DynamicServiceMethod in a User Control
Feb 05, 2012 02:16 AM|LINK
I have a ajaxToolkit:PopupControlExtender in user control (.ascx file) that calls a DynamicServiceMethod
DynamicServiceMethod="GetDynamicContent"
in the code behind I have this code:
<System.Web.Services.WebMethodAttribute()> <System.Web.Script.Services.ScriptMethodAttribute()> _
Public Shared Function GetDynamicContent(ByVal contextKey As System.String) As System.String
Dim strReturn As String
Dim intExpenseTrackerPaymentID As Integer = CInt(contextKey)
'http://aspnet.4guysfromrolla.com/articles/070407-1.aspx
'http://aspnet.4guysfromrolla.com/articles/071107-1.aspx
strReturn = "<div style='border:#060F40 2px solid;'>"
strReturn += "<table cellpadding='2' cellspacing='0' style='background:#ffffcc;><tr><td>" + intExpenseTrackerPaymentID.ToString
strReturn += "</td></tr></tabel></div>"
Return strReturn
End Function
when it gets called it returns a web service call failed 500
if I put the function into the parnet page it works
how can i call the funtion only from within the user control?
thanks
Frank Jiang ...
All-Star
16006 Points
1728 Posts
Microsoft
Re: DynamicServiceMethod in a User Control
Feb 08, 2012 10:37 AM|LINK
Hi,
Please have a look at the solution:
http://forums.asp.net/t/1274596.aspx/1
about Web Service call failed: 500 , please read
http://sandblogaspnet.blogspot.com/2009/07/working-with-modal-popup-extender.html
I hope the above information helps.
Thanks,
Feedback to us
Develop and promote your apps in Windows Store