Hi all,

I am trying run a basic sample in a ATALS enabled page but I cannot get it working ? Am i missing something or its not possible to call ajax pro methods from Atlas pages

Problem : I dont see following files included

<script type="text/_javascript_" src=""><script type="text/_javascript_" src=""
<script type="text/_javascript_" src=""><script type="text/_javascript_" src=""


My code -
---------------------------------------

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        AjaxPro.Utility.RegisterTypeForAjax(typeof(_Default));
    }
    [AjaxPro.AjaxMethod]
    public DateTime GetServerTime()
    {
        return DateTime.Now;
    }
}



------------------------------------
<%@ Page Language="C#" Title="Atlas AutoComplete Textbox"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0  Transitional//EN"
     " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml ">
 <head id="Head1" runat="server">
   <style type="text/css">
     body { font: 11pt Trebuchet MS;
        font-color: #000000;
        padding-top: 72px;
          text-align: center }
 
     .text { font: 8pt Trebuchet MS }
   </style>
 
 </head>
 
 <body>
  <form id="Form1" runat="server">
   <atlas:ScriptManager id="AtlasPage1" runat="server" />
   <div class="page"id="links">
     <div id="content">
       <h3>AutoComplete server control</h3>
       <p>This file contains a server-side Atlas AutoComplete.</p>
       <asp:TextBox ID="TextBox1" runat="server">
       </asp:TextBox>
       <atlas:AutoCompleteExtender runat="server"
         ID="autoComplete1" DropDownPanelID="Panel1">
           <atlas:AutoCompleteProperties TargetControlID="TextBox1"
              Enabled="True" ServicePath="GetStaff.asmx"   
              ServiceMethod="GetDetails"
              minimumprefixlength="1"  />
       </atlas:AutoCompleteExtender>
       <asp:Panel
            ID="Panel1"
            runat="server"
            Height="200px"
            Width="125px"
            ScrollBars="Vertical">
        </asp:Panel>                 
     </div>    
   </div>
  </form>
 </body>
</html>

Any help would be appreciated,
James

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