Solved

ASP.NET AJAX 1.0 Extensions - Need a test page

Posted on 2008-06-25
2
452 Views
Last Modified: 2013-11-07
I need a test page, to prove if ASP.NET AJAX 1.0 Extensions is or is not installed and configured properly, for a server.

I have a client, whom uses shared hosting... I can swear that ASP.NET AJAX 1.0 is not installed or configured properly on that server. I need a page that I know will work on another server of mine, and not on this one, to prove the problem.

Ideally, there should be no other configuration requirements for this page - simply one file, to prove or disprove this problem.

Thanks.
0
Comment
Question by:rcoast
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 21

Accepted Solution

by:
naspinski earned 500 total points
ID: 21874656
here you go - but the easiest way to set up ajax extensions is just to install teh newest framework (3.5) that way it is all taken care of for you, nothing to screw up :):
<%@ Page Language="C#" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<script runat="server">
 
    protected void btnWrite_Click(object sender, EventArgs e)
    {
        lblWrite.Text += txtWrite.Text.Length > 0 ? txtWrite.Text : "you didn't enter a string";
    }
</script>
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>AJAX Test</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="sm" runat="server" />
        <asp:UpdatePanel ID="up" runat="server">
            <ContentTemplate>
                <h3><asp:Label ID="lblWrite" runat="server">Whatever you enter in the box will append to this string </asp:Label></h3>
                <asp:TextBox ID="txtWrite" runat="server" />
                <asp:Button ID="btnWrite" runat="server" Text="write it" 
                    onclick="btnWrite_Click" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>

Open in new window

0
 

Author Closing Comment

by:rcoast
ID: 31470821
Sorry for the delay - this was perfect. Thanks.
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question