Hi,

1) If you have a look in the html source code (right click -> view
source) do you find something like this?

<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/NamespaceClass,Assembly.ashx"></script>

2) If you open http://yourserver/ajaxpro/prototype.ashx, do you get any output?

3) Is the example project that you will get using the current download
of Ajax.NET Professional running?

Regards,
Michael




On 5/11/06, Alper Ozgur <[EMAIL PROTECTED]> wrote:
>
> Hi. I tried to use ajaxpro in an asp.net 2 application with c# . when i
> run this code it gaves the error that i wrote to subject. My code like
> below..
> Any help pls....
>
> in Page_Load
>        AjaxPro.Utility.RegisterTypeForAjax(typeof(_Login));
>        btn_Login.Attributes.Add("onClick", "javascript:fill_Drp();");
>
> and my function
>
>    [AjaxPro.AjaxMethod]
>    public DataSet getUserInfo()
>    {
>        cmd.Connection = sql_Conn;
>        cmd.CommandText = "Logistics_Web_Get_User_Properties";
>        cmd.CommandType = CommandType.StoredProcedure;
>        sql_Conn.Open();
>        cmd.Parameters.Clear();
>        cmd.Parameters.Add(param_Fields);
>        ds.Clear();
>        SqlDataAdapter da = new SqlDataAdapter(cmd);
>        da.Fill(ds);
>        return ds;
>    }
>
> and in HTML side
>
>    <script type="text/javascript">
>    function fill_Drp()
>    {
>    _Login.getUserInfo(_callback1);
>    }
>    function _callback1(res)
>    {
>  var cols = res.value.Tables[0].Columns.length;
>  var rows = res.value.Tables[0].Rows.length;
>
>  alert(cols + " cols and " + rows + " rows");
>    }
>    </script>
>
> </head>
> <body>
>    <form id="FrmLogin" runat="server">
>        <div id="loginCtrl" style="position: absolute; width: 315px;
> height: 253px;">
>            <asp:Button ID="btn_Login" runat="server" Style="z-index:
> 106; left: 96px; position: absolute;
>                top: 102px" Text="Login" Width="80px"
> UseSubmitBehavior="False" />
> ....
> ...
> ...
>
>
> >
>


-- 
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
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