Click here to Skip to main content
15,910,661 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: please tell how to work with download accelerator plus with asp.net Pin
Malcolm Smart20-Nov-07 22:58
Malcolm Smart20-Nov-07 22:58 
Question[Message Deleted] Pin
SreejithAchutan20-Nov-07 22:37
SreejithAchutan20-Nov-07 22:37 
AnswerAvoid Postback Pin
SreejithAchutan20-Nov-07 22:54
SreejithAchutan20-Nov-07 22:54 
GeneralRe: Avoid Postback Pin
Malcolm Smart20-Nov-07 22:59
Malcolm Smart20-Nov-07 22:59 
AnswerRe: Avoid Postback Pin
Prateek G20-Nov-07 23:12
Prateek G20-Nov-07 23:12 
GeneralAvoid Postback Pin
SreejithAchutan20-Nov-07 23:40
SreejithAchutan20-Nov-07 23:40 
GeneralRe: Avoid Postback Pin
SreejithAchutan20-Nov-07 23:58
SreejithAchutan20-Nov-07 23:58 
QuestionIssue with Dynamic Updates for ModalPopupExtender Pin
Andrew_Thomas20-Nov-07 22:36
Andrew_Thomas20-Nov-07 22:36 
Hi,
I am having a real issue with dynamically adding content to the ModalPopupExtender ajax control in asp.net. I am using c# 2.0 and latest ajax version.

I have the following definition in the .aspx file:
        <br />
<ajaxToolkit:ModalPopupExtender ID="mpeConvertToApp" runat="server" CancelControlID="btnDlgCancel"<br />
            PopupControlID="pnlPopup" TargetControlID="btnDummy" BackgroundCssClass="modal" DropShadow="true" PopupDragHandleControlID="pnlPopup"     <br />
            DynamicControlID="lblInfo" DynamicContextKey="test" DynamicServicePath="~/WebServices/Comparison2Service.asmx" DynamicServiceMethod="GetContextKey"/><br />


and my web service call is defined in /WebServices/Comparison2Service.asmx as:

<br />
/// <summary><br />
/// Summary description for Comparison2Service<br />
/// </summary><br />
[WebService(Namespace = "http://tempuri.org/")]<br />
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]<br />
[ScriptService]<br />
public class Comparison2Service : System.Web.Services.WebService<br />
{<br />
  [System.Web.Services.WebMethod]<br />
  [System.Web.Script.Services.ScriptMethod]<br />
    public string GetContextKey(string contextKey)<br />
    {<br />
      string returnedFromWebMethod = "test1234";<br />
      return returnedFromWebMethod;<br />
    }<br />
}<br />


This gives me the error "web service call failed: 500".

Now I have tried the following:

- Remove the DynamicServiceMethod and DynamicServicePath properties and the dialog displays as I would expect (without dynamic information). So no problems there.
- Changing the GetContextKey(string contextKey) to GetContextKey() works, but the return value populates the label lblInfo with the text "[object]" as opposed to "test1234".

It seems like the webservice definition is wrong somehow (like the string parameter is building a wrong signature to what is expected).

The webservice works fine by itself if I test it manually (through the IIS generated web page).

Any help or ideas would be much appreciated as its stressing me out Smile | :) I have searched everywhere and this post is my last resort.

Cheers,

Andy
QuestionRe: Issue with Dynamic Updates for ModalPopupExtender Pin
Andrew_Thomas21-Nov-07 6:44
Andrew_Thomas21-Nov-07 6:44 
Questionevent Pin
Sonia Gupta20-Nov-07 22:22
Sonia Gupta20-Nov-07 22:22 
JokeRe: event Pin
N a v a n e e t h20-Nov-07 22:27
N a v a n e e t h20-Nov-07 22:27 
AnswerRe: event Pin
Sun Rays20-Nov-07 22:28
Sun Rays20-Nov-07 22:28 
AnswerRe: event Pin
J4amieC20-Nov-07 22:31
J4amieC20-Nov-07 22:31 
GeneralRe: event Pin
N a v a n e e t h20-Nov-07 22:37
N a v a n e e t h20-Nov-07 22:37 
GeneralRe: event Pin
Malcolm Smart20-Nov-07 22:56
Malcolm Smart20-Nov-07 22:56 
Questionhow can i check my point in my site Pin
Rajeshwar Code- Developer20-Nov-07 22:22
Rajeshwar Code- Developer20-Nov-07 22:22 
AnswerRe: how can i check my point in my site Pin
Sun Rays20-Nov-07 22:26
Sun Rays20-Nov-07 22:26 
GeneralRe: how can i check my point in my site Pin
Rajeshwar Code- Developer20-Nov-07 23:21
Rajeshwar Code- Developer20-Nov-07 23:21 
GeneralRe: how can i check my point in my site Pin
Sun Rays20-Nov-07 23:53
Sun Rays20-Nov-07 23:53 
Question.mdf files, IIS, and FileUpload control Pin
Paul Shaffer20-Nov-07 22:15
Paul Shaffer20-Nov-07 22:15 
QuestionSession state problem Pin
Kissy1620-Nov-07 22:15
Kissy1620-Nov-07 22:15 
AnswerRe: Session state problem Pin
Sun Rays20-Nov-07 22:25
Sun Rays20-Nov-07 22:25 
GeneralRe: Session state problem Pin
Kissy1620-Nov-07 22:32
Kissy1620-Nov-07 22:32 
AnswerRe: Session state problem Pin
N a v a n e e t h20-Nov-07 22:28
N a v a n e e t h20-Nov-07 22:28 
GeneralRe: Session state problem Pin
Kissy1620-Nov-07 22:56
Kissy1620-Nov-07 22:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.