<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag 'Callback'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=Callback&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'Callback'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>redirect to site by Callback (Google checkout) </title><link>http://forums.asp.net/thread/3573945.aspx</link><pubDate>Sat, 19 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3573945</guid><dc:creator>Bhaarat</dc:creator><description>&lt;p&gt;Hi &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;i am getting all callbacks from google checkout...&lt;/p&gt;&lt;p&gt;now what i need to do is :&lt;/p&gt;&lt;p&gt;when i click on button to place order, if suceed then redirects me to &lt;b&gt;thank you page&lt;/b&gt;&lt;/p&gt;&lt;p&gt;i dont want to go on thank you page, &lt;/p&gt;&lt;p&gt;on clicking on button i should be redirected to &lt;b&gt;mysite&lt;/b&gt;..&lt;/p&gt;&lt;p&gt;i am getting each status in callback page, &lt;/p&gt;&lt;p&gt;so what can i do when order is placed, to redirect to mysite&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks in advance&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Create a callback page from RBS WorldPay with c#</title><link>http://forums.asp.net/thread/3551510.aspx</link><pubDate>Mon, 07 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3551510</guid><dc:creator>Steammike</dc:creator><description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;Does anyone know how to create a callback page from RBS WorldPay? Please help, its urgen...&lt;/p&gt;&lt;p&gt;Thanks for the help.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Mike&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Multiple server callbacks (NOT POSTBACKS)</title><link>http://forums.asp.net/thread/3471478.aspx</link><pubDate>Thu, 22 Oct 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3471478</guid><dc:creator>ramjet69</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have 2 different javascript client side functions that are on timers. When the timers elapse they do a server callback and check for pending data. The first one executes perfectly by itself. The second one calls back and receives data perfectly as well...by itself. The problem I have is that when they are both enabled they *seem* to step on each other as there is only one conduit to the server and back. So I have everything segregated up to that point. To my knowledge I only have one...&lt;font size="2"&gt;Page.ClientScript.GetCallbackEventReference.... to work with. Is there any way to keep them seperate. To my thinking what would be ultimate would be to have two DIFFERENT CallbackEventReferences for each clientside javascript function to use as its own.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;As usuall TIA Brainiacs&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;JB&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Rendering control after handle callback.</title><link>http://forums.asp.net/thread/3471276.aspx</link><pubDate>Thu, 22 Oct 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3471276</guid><dc:creator>CruzerB</dc:creator><description>&lt;p&gt;Dear all,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I using &amp;quot;Implements System.Web.UI.ICallbackEventHandler&amp;quot; to handle a custom callback event from my page.&lt;/p&gt;&lt;p&gt;But after I set the values for my controls, it cant display at the browser. Any suggestion?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Public Sub RaiseCallbackEvent(ByVal eventArgument As String) Implements System.Web.UI.ICallbackEventHandler.RaiseCallbackEvent&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim _AccountNumber As String&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _AccountNumber = eventArgument.Trim&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call SelectedAccountNumber(_AccountNumber)&lt;/p&gt;&lt;p&gt;End Sub&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Private Sub SelectedAccountNumber(ByVal AccountNumber As String)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim _TBCONSUMERDataTable As New TBCONSUMERDataTable&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim _TBINSTALLATIONDataTable As New TBINSTALLATIONDataTable&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim _IndividualApplication As New IndividualApplication&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If AccountNumber = String.Empty Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ErrorMessage = &amp;quot;Empty account number&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Sub&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtInstallation_AccNum.Text = AccountNumber&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If GetTenantDetails(AccountNumber, _TBINSTALLATIONDataTable, _TBCONSUMERDataTable) Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RaiseEvent SearchedAccountDataTable(_TBINSTALLATIONDataTable, _TBCONSUMERDataTable)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/p&gt;</description></item><item><title>Multiple Server Callbacks (NOT POSTBACKS)</title><link>http://forums.asp.net/thread/3470564.aspx</link><pubDate>Wed, 21 Oct 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3470564</guid><dc:creator>ramjet69</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have 2 different javascript client side functions that are on timers. When the timers elapse they do a server callback and check for pending data. The first one executes perfectly by itself. The second one calls back and receives data perfectly as well...by itself. The problem I have is that when they are both enabled they *seem* to step on each other as there is only one conduit to the server and back. So I have everything segregated up to that point. To my knowledge I only have one...&lt;font size="2"&gt;Page.ClientScript.GetCallbackEventReference.... to work with. Is there any way to keep them seperate. To my thinking what would be ultimate would be to have two DIFFERENT CallbackEventReferences for each clientside javascript function to use as its own.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;As usuall TIA Brainiacs&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;JB&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: AnimaionExtender problem with Callback</title><link>http://forums.asp.net/thread/3363268.aspx</link><pubDate>Sun, 23 Aug 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3363268</guid><dc:creator>Shakib.Zabihian</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;Vince Xu - MSFT&amp;quot;]&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In this scenario, I think you had better use UpdatePanelAnimation, which can do something in animation after async request with updatepanel.&lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;Thank you &amp;quot;Vince Xu -MSFT&amp;quot;, I will do that. &lt;img src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-smile.gif" alt="Smile" title="Smile" border="0" /&gt;&lt;/p&gt;</description></item><item><title>AnimaionExtender problem with Callback</title><link>http://forums.asp.net/thread/3355733.aspx</link><pubDate>Wed, 19 Aug 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3355733</guid><dc:creator>Shakib.Zabihian</dc:creator><description>&lt;p&gt;Hi all.&lt;/p&gt;&lt;p&gt;I have a Panel on page named pnlEventPopup that is extended with AnimationExtender and also with ModalPopupPanel, And is inside an UpdatePanel. There is a third party component on the page (&lt;a target="_blank" title="DayPilot" href="http://www.daypilot.org/"&gt;DayPilot&lt;/a&gt; &lt;a target="_blank" title="Scheduler" href="http://www.daypilot.org/demo/Scheduler/"&gt;Scheduler&lt;/a&gt;) that includes many events. When one of these events is clicked, a post back will show the pnlEventPopup to user using ModalPopupExtender. The panel contains three ImageButtons: Delete, Edit, and Comments, And for other components inside the panel, Visibility is False. Edit button and Comments button are extended with two AnimationExtenders. And here&amp;#39;s the problem:&lt;/p&gt;&lt;p&gt;When Edit button named btnEdit is clicked AnimationExtender should resize the Panel (pnlEventPopup) which is its parent and the make editing components visible (those were hidden before). The panel begins to resize, but after the callback from server-side, pnlEventPopup will return to its main size.&lt;/p&gt;&lt;p&gt;I tried to set a fake proxy server for localhost, In order to block postback to server. and then everything woked fine.&lt;/p&gt;&lt;p&gt;Any ideas would be appreciated.&lt;/p&gt;&lt;p&gt;Here&amp;#39;s the markup:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre name="code" class="xhtml:nogutter"&gt;&amp;lt;asp:Panel ID=&amp;quot;pnlEventPopup&amp;quot; runat=&amp;quot;server&amp;quot; BorderColor=&amp;quot;#8BC7FF&amp;quot; BorderWidth=&amp;quot;5px&amp;quot;
                    BorderStyle=&amp;quot;Solid&amp;quot; BackColor=&amp;quot;White&amp;quot; Style=&amp;quot;overflow: hidden;&amp;quot;&amp;gt;
                    &amp;lt;div style=&amp;quot;margin: 10px; padding: 15px 15px 10px 10px;max-width:500px;&amp;quot;&amp;gt;
                        &amp;lt;div style=&amp;quot;position: absolute; top: 10px; right: 10px; border: #F37E30 solid 1px;&amp;quot;&amp;gt;
                            &amp;lt;asp:ImageButton ID=&amp;quot;ibtnCloseEventPopup&amp;quot; runat=&amp;quot;server&amp;quot; SkinID=&amp;quot;PopupCancel&amp;quot; ToolTip=&amp;quot;Close Window&amp;quot; /&amp;gt;
                        &amp;lt;/div&amp;gt;
                        &amp;lt;table&amp;gt;
                            &amp;lt;tr&amp;gt;
                                &amp;lt;td&amp;gt;
                                    &amp;lt;asp:ImageButton ID=&amp;quot;ibtnEditEvent&amp;quot; runat=&amp;quot;server&amp;quot; SkinID=&amp;quot;EventEdit&amp;quot; ToolTip=&amp;quot;Edit Event&amp;quot; /&amp;gt;
                                    &amp;lt;cc1:AnimationExtender ID=&amp;quot;ibtnEditEvent_AnimationExtender&amp;quot; runat=&amp;quot;server&amp;quot; Enabled=&amp;quot;True&amp;quot;
                                        TargetControlID=&amp;quot;ibtnEditEvent&amp;quot;&amp;gt;
                                        &amp;lt;Animations&amp;gt;
                                            &amp;lt;OnClick&amp;gt;
                                                &amp;lt;Resize AnimationTarget=&amp;quot;pnlEventPopup&amp;quot; Width=&amp;quot;100&amp;quot; Height=&amp;quot;200&amp;quot; fps=&amp;quot;30&amp;quot; duration=&amp;quot;0.3&amp;quot; unit=&amp;quot;px&amp;quot; /&amp;gt;
                                            &amp;lt;/OnClick&amp;gt;
                                        &amp;lt;/Animations&amp;gt;
                                    &amp;lt;/cc1:AnimationExtender&amp;gt;
                                &amp;lt;/td&amp;gt;
                                &amp;lt;td&amp;gt;
                                    &amp;lt;asp:ImageButton ID=&amp;quot;ibtnEventComments&amp;quot; runat=&amp;quot;server&amp;quot; SkinID=&amp;quot;EventComment&amp;quot; ToolTip=&amp;quot;Comments&amp;quot; /&amp;gt;
                                    &amp;lt;cc1:AnimationExtender ID=&amp;quot;ibtnEventComments_AnimationExtender&amp;quot; runat=&amp;quot;server&amp;quot; Enabled=&amp;quot;True&amp;quot;
                                        TargetControlID=&amp;quot;ibtnEventComments&amp;quot;&amp;gt;
                                        &amp;lt;Animations&amp;gt;
                                            &amp;lt;OnClick&amp;gt;
                                                &amp;lt;Resize AnimationTarget=&amp;quot;pnlEventPopup&amp;quot; Width=&amp;quot;100&amp;quot; Height=&amp;quot;200&amp;quot; fps=&amp;quot;30&amp;quot; duration=&amp;quot;0.3&amp;quot; unit=&amp;quot;px&amp;quot; /&amp;gt;
                                            &amp;lt;/OnClick&amp;gt;
                                        &amp;lt;/Animations&amp;gt;
                                    &amp;lt;/cc1:AnimationExtender&amp;gt;
                                &amp;lt;/td&amp;gt;
                                &amp;lt;td&amp;gt;
                                    &amp;lt;asp:ImageButton ID=&amp;quot;ibtnDeleteEvent&amp;quot; runat=&amp;quot;server&amp;quot; SkinID=&amp;quot;EventDelete&amp;quot; ToolTip=&amp;quot;Delete Event&amp;quot; /&amp;gt;
                                    &amp;lt;cc1:ConfirmButtonExtender ID=&amp;quot;ibtnDeleteEvent_ConfirmButtonExtender&amp;quot; runat=&amp;quot;server&amp;quot;
                                        ConfirmText=&amp;quot;Are you sure you want to delete the event?&amp;quot; Enabled=&amp;quot;True&amp;quot; TargetControlID=&amp;quot;ibtnDeleteEvent&amp;quot;&amp;gt;
                                    &amp;lt;/cc1:ConfirmButtonExtender&amp;gt;
                                &amp;lt;/td&amp;gt;
                            &amp;lt;/tr&amp;gt;
                        &amp;lt;/table&amp;gt;
                    &amp;lt;/div&amp;gt;
                &amp;lt;/asp:Panel&amp;gt;


&lt;/pre&gt;&lt;p&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; and the VB.NET code:&lt;/p&gt;&lt;pre name="code" class="vb.net"&gt;    Protected Sub _OnEventClick(ByVal sender As Object, ByVal e As EventClickEventArgs)

        pnlEventPopup.Visible = True
        pnlEventPopup_ModalPopupExtender.Show()
        pnlEventPopup_ModalPopupExtender.EnsureValid()

    End Sub

    Protected Sub ibtnEditEvent_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ibtnEditEvent.Click
        pnlEventPopup_AnimationExtender.Enabled = False
        pnlEventPopup_ModalPopupExtender.Show()
    End Sub
&lt;/pre&gt;</description></item><item><title>Re: AnimaionExtender problem with Callback</title><link>http://forums.asp.net/thread/3356208.aspx</link><pubDate>Wed, 19 Aug 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3356208</guid><dc:creator>Shakib.Zabihian</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;akmsaeea&amp;quot;]&lt;/p&gt;&lt;p&gt;Pls refer this link:&lt;br /&gt;&lt;a href="http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Animation/Animation.aspx"&gt;http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Animation/Animation.aspx&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Dear akmsaeea,&lt;/p&gt;&lt;p&gt;Thank you for your post, but my problem is server callback! I want to have the postback in order to make a panel visible after clicking ImageButton and avoid its callback in order not to resize the Panel to its main size. Have you any idea how can I do it?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Second implementation of client callback mechanism behaving incorrectly</title><link>http://forums.asp.net/thread/3326565.aspx</link><pubDate>Mon, 03 Aug 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3326565</guid><dc:creator>dborland</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi there,&lt;/p&gt;
&lt;p&gt;I have implemented the Javascript / C# client callback mechanism on an aspx page.&amp;nbsp; What I am trying to do in the first callback is pass a treeview&amp;nbsp;node&amp;nbsp;ID to the code behind (C#), call a Stored Procedure from my C# code which counts the number of child nodes in the tree under the given node and passes the value back.&amp;nbsp; The aspx page retrieves this number and displays it in a javascript confirm message - asking if the user is sure they want to manipulate this number of nodes.&amp;nbsp; Skeleton code is as follows:&lt;/p&gt;
&lt;p&gt;&lt;u&gt;aspx page:&lt;/u&gt;&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;&amp;lt;script type=&amp;quot;text/ecmascript&amp;quot;&amp;gt;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;      //This function calls the code behind, passing the nodeValue prefixed with &amp;quot;NC/&amp;quot; so the code behind can treat it appropriately
      function lookupNodeCount() {
          var nodeValueText = &amp;quot;&amp;quot;;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;          //get the nodePath of the target node:
          var nodePath = event.srcElement.url.substring(event.srcElement.url.indexOf(&amp;quot;,&amp;quot;) + 2, event.srcElement.url.length - 2);
          var nodeValues = nodePath.split(&amp;quot;\\&amp;quot;);
          if (nodeValues.length &amp;gt; 1)
              nodeValueText = nodeValues[nodeValues.length - 1];
          else
              nodeValueText = nodeValues[0].substr(1);&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;          //Call client postback mechanism
          CallServer(&amp;quot;NC/&amp;quot;+nodeValueText, &amp;quot;&amp;quot;);
      }
&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;      //This function gets called when the client callback is complete
      function DisplayConfirmMessage(Value) {
          //Only display the confirm popup if the count of nodes is more than 10 - otherwise just cut / copy
          if(Value &amp;gt;=10)
          {&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;              //Ask the user to confirm if they are sure they want to proceed - if they are, CallServer a second time to store the required data
              var confirm = confirmation(&amp;quot;Warning - You are attempting to Copy / Move &amp;quot; + Value + &amp;quot; nodes. This may take some time to process.  \n\nAre you sure you want to do this?&amp;quot;);
              if(confirm)
	          {
                         	&lt;strong&gt; //The following should be implemented to support partial postback on Cut / Copy commands
                  	var localCommand = getCommand();  //gets whether the command was a &amp;#39;Cut&amp;#39; or &amp;#39;Copy&amp;#39; and calls &amp;#39;CallServer&amp;#39; again
                  	//I&amp;#39;m attempting to call CallServer again, but with a different parameter this time - I just want to store localCommand in the session&lt;/strong&gt;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;&lt;strong&gt;                                CallServer(&amp;quot;CMD/&amp;quot;+localCommand, &amp;quot;&amp;quot;);&lt;/strong&gt;
	          }
	          else
	          {
	          }
	      }
	      else
	      {
	      }
      }
  &amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;&lt;u&gt;C#:&lt;/u&gt;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;&lt;pre class="c-sharp" name="code"&gt;        public string returnValue;

        public void RaiseCallbackEvent(string eventArgument)
        {&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;            //Handle first instance of CallServer:
            if(eventArgument.StartsWith(&amp;quot;NC/&amp;quot;))
            {
                try
                {
                        //Call the relevant Stored Procedure and get the node count
                        int retrievedNodeCount = getnodecount.NodeCount;

                        //assign the returnValue
                        returnValue = retrievedNodeCount.ToString();
                    }
                }
                catch(Exception ex)
                {
                }
            }
&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;            &lt;strong&gt;//Handle second instance of CallServer
            if (eventArgument.StartsWith(&amp;quot;CMD/&amp;quot;))
            {
                try
                {
                    //*********STORE STUFF IN THE SESSION              &lt;/strong&gt;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;&lt;strong&gt;                    returnValue = &amp;quot;Stored&amp;quot;;
                }
                catch (Exception ex)
                {
                }
            }
&lt;/strong&gt;
            else if (eventArgument == &amp;quot;&amp;quot;)
            {
                returnValue = &amp;quot;Unable to store variables&amp;quot;;
            }
        }

        public string GetCallbackResult()
        {
            return returnValue;
        }&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;&lt;u&gt;Page Load:&lt;/u&gt;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;&lt;font size="2"&gt;&lt;u&gt;&lt;/u&gt;&amp;nbsp;&lt;/font&gt;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;&lt;font size="2"&gt;&lt;pre class="c-sharp" name="code"&gt; string cbReference = Page.ClientScript.GetCallbackEventReference(this, &amp;quot;arg&amp;quot;, &amp;quot;DisplayConfirmMessage&amp;quot;, &amp;quot;&amp;quot;, true);
 string CallbackScript = &amp;quot;function CallServer(arg, context){&amp;quot; + cbReference + &amp;quot;; }&amp;quot;;
 Page.ClientScript.RegisterClientScriptBlock(this.GetType(), &amp;quot;CallBack&amp;quot;, CallbackScript, true);
&lt;font size="2"&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;/font&gt;&lt;/pre&gt;
&lt;p&gt;The&amp;nbsp;part in non-bold works no problem.&amp;nbsp; The user clicks &amp;#39;OK&amp;#39; or &amp;#39;Cancel&amp;#39; after the first CallServer call returns the node count.&amp;nbsp; If they click OK, I am&amp;nbsp;trying to call the &amp;#39;CallServer&amp;#39;&amp;nbsp;method again, but with a different parameter this time (some additional&amp;nbsp;values that I am storing in the session object).&amp;nbsp; &lt;/p&gt;
&lt;p&gt;HOWEVER.&amp;nbsp; If the user clicks OK, the DisplayConfirmMessage javascript function appears to loop infinitely, continually showing the confirm popup.&amp;nbsp; If the user clicks Cancel, ONLY THEN does the RaiseCallbackEvent method get called again, with the second eventArgument as expected.&amp;nbsp; Its as if the desired functionality only happens when the user clicks Cancel and not OK.&lt;/p&gt;
&lt;p&gt;Have any of you ever come across this before?&amp;nbsp; I&amp;#39;d appreciate any help.&lt;/p&gt;</description></item><item><title>need help getting register script to work</title><link>http://forums.asp.net/thread/3284084.aspx</link><pubDate>Thu, 09 Jul 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3284084</guid><dc:creator>cakewalkr7</dc:creator><description>&lt;p&gt;I&amp;#39;ve googled quite a bit&amp;nbsp;to try and figure out how to call an existing javascript function in my page when the ajax call completes.&amp;nbsp; From what I&amp;#39;ve been able to find the code below &amp;quot;should&amp;quot; do it but when I click my button although my code runs I never get an alert message and the function in my page never fires.&amp;nbsp; Any idea what else I need to do to make it work?&amp;nbsp; Thanks.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;protected void SaveQuestion(object sender, System.Web.UI.ImageClickEventArgs e)
{
            Main method code executes.....
            ScriptManager.RegisterStartupScript(this, GetType(), Guid.NewGuid().ToString(), &amp;quot;&amp;lt;script language=\&amp;quot;javascript\&amp;quot;&amp;gt;alert(&amp;#39;test&amp;#39;);UpdateList(id, txt);&amp;lt;/script&amp;gt;&amp;quot;, false);
}
&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>