Thats what i mentioned erlier in the thred.. the UserControl i created
workes fine outside the Rainbow portal when i write
...
public partial class rbWcAjaxTest : System.Web.UI.UserControl (works ok
outside Rainbow portal)
...
insted of
...
public partial class rbWcAjaxTest : PortalModuleControl (dosent worke
when i use in Rainbow portal)
...

------ .cs source ------ START
namespace AjaxWebAppSub
{
        public partial class rbWcAjaxTest : System.Web.UI.UserControl //(if
use in RainbowPortalModuleControl)
        {
                protected void Page_Load(object sender, EventArgs e)
                {
                        
AjaxPro.Utility.RegisterTypeForAjax(typeof(rbWcAjaxTest));

                        // This code always executes!! (outside rainbow and in 
rainbow)
                        lblText.Text = "Page_Load(Page) - WC AjaxTest version 
2.0";
                }


                [AjaxPro.AjaxMethod]
                public int GetLength(string s)
                {
                        return s.Length;
                }
                ....
        }
}
------ .cs source ------ END
------ clientside ------- START
<%@ Control Language="C#" AutoEventWireup="true"
CodeBehind="rbWcAjaxTest.ascx.cs" Inherits="AjaxWebAppSub.rbWcAjaxTest"
%>

<asp:Label ID="lblText" runat="server"></asp:Label><br />
<input type="text" id="test8022_txtBox" onkeyup="keyPress()" />
<div>Length of the string: <span id="test8022_display">0</span></div>

<script type="text/javascript">

function keyPress()
{
    var obj = document.getElementById("test8022_txtBox");
    AjaxWebAppSub.rbWcAjaxTest.GetLength(obj.value, keyPress_callback);
}
function keyPress_callback(res)
{
    var obj = document.getElementById("test8022_display");
    obj.innerHTML = res.value;
}

</script>
------ clientside ------- END


Notis that this code workes ok outside Rainbow... im just wondering
what possible can interfere with AjaxPro so it does not execute
proberly so that no "<script type="text/javascript"
src="/ajaxpro/prototype.ashx"></script>


<script type="text/javascript" src="/ajaxpro/core.ashx"></script>
<script type="text/javascript" src="/ajaxpro/converter.ashx"></script>
<script type="text/javascript"
src="/ajaxpro/xxx.xxx,xxx.ashx"></script>"
is generated


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to