Microsoft
Software
Hardware
Network
Question : PopupControlExtender
Hello,
The PopupControlExtender has been driving me crazy I would really appreciate if you can tell me where I'm wrong on this. I'm trying to show a PopupControlExtender where I'm trying to show a simple message from the webmethod, for this I am using DynamicControlID, DynamicServiceMethod, DynamicServicePath for this PopupControlExtender PopupControlExtender looks something like this
runat="server" CommitProperty="value"
Position="Bottom" PopupControlID="pnlPartSea
rch1" TargetControlID="lbtnTrack
"
DynamicControlID="pnlPartS
earch1" DynamicServiceMethod="Trac
kingInfo" DynamicServicePath="~/Test
WebService
.asmx">
>
[WebMethod]public string TrackingInfo(string headerID)
{
return "Called from a web service";
}
The code above works perfectly and when I click the button I see the message on the popup "Called from a web Service" now the problem starts when I add DynamicContextKey = '<%# Eval("OrderHeaderNumber")%
>' as soon as I add this to the PopupControlExtender and update the service method which has a string parameter the service method call is not executed and I get the error "Web Service call failed: 500". Here is the code that does not work.
runat="server" CommitProperty="value"
Position="Bottom" PopupControlID="pnlPartSea
rch1" TargetControlID="lbtnTrack
" DynamicContextKey='<%# Eval("OrderHeaderNumber")%
>'
DynamicControlID="pnlPartS
earch1" DynamicServiceMethod="Trac
kingInfo1"
DynamicServicePath="~/Test
WebService
.asmx">
>
[WebMethod]public string TrackingInfo1(string OrderHeaderNumber)
{
return "Called from a web service";
}
I would really appreciate if someone can point out what the error is.
Thanks in advance.
MJ
Answer : PopupControlExtender
HA AH! I'm glad I helped you.
But could you please select my comment as an answer?
Random Solutions
Does Shadow Copy lock files during the scheduled task?
Microsoft Outlook is offline
ORA-00932 - Oracle Linked Table Error because of 'INTEVAL DAY TO SECOND' data type
Move /srv on RHEL5 backup server to separate LVM LV
Easy way of drawing windows / web controls in Photoshop (i.e. Treeview)
VBA-"Recipients.Add" - Seperate people, Same name
Maximum rows in a List box
Install Linux with no keyboard, mouse or monitor
Export acl from all folders in a tree to CSV
Using IIF statement in Access Query Criteria