Solved

ASP.NET AJAX 1.0 Extensions - Need a test page

Posted on 2008-06-25
2
446 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
2 Comments
 
LVL 21

Accepted Solution

by:
naspinski earned 500 total points
Comment Utility
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
Comment Utility
Sorry for the delay - this was perfect. Thanks.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now