CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 1 of 1

Thread: AJAX feature not working in existing project

  1. #1
    Join Date
    Jan 2008

    AJAX feature not working in existing project

    I statred one 2.0 project as AJAX ENABLED WEBSITE

    designed some forms all woroked in expected lines.

    now the forms working but without partial updates, means postback controls pressed inside update panel causes the entire page refreshed

    here is the sample code in page (just example)

    <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    <script runat="server" language="vb" > 
    Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
    Dim theTime As String = DateTime.Now.ToLongTimeString()
    Dim i As Integer
    For i = 1 To 2
    theTime += "<br/>" + theTime
    time1.Text = theTime
    time2.Text = theTime
    End Sub
    <html xmlns="" >
    <head id="Head1" runat="server">
    <title>Basic Update Panel</title>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <asp:Label runat="server" ID="time1"></asp:Label><br/><br/>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <div style="border-style:solid;background-color:gray;">
    <asp:Label runat="server" ID="time2"></asp:Label>
    <asp:Button ID="Button1" runat="server" Text="Inside Button 1" />
    <asp:Button ID="Button2" runat="server" Text="Outside Button" /> 
    but the same code working in a new project in the same machine

    what went wrong with my original project
    Last edited by PeejAvery; September 16th, 2008 at 02:25 PM. Reason: Added code tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)