Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5984623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:24:19+00:00 2026-05-22T22:24:19+00:00

Total newb to .NET programming (and AJAX) but I’ve been working on this program

  • 0

Total newb to .NET programming (and AJAX) but I’ve been working on this program a while. Many things I state in this question might not make sense, so please correct me where my understanding is off.

Right now I’ve got an ASP:Calendar which has this property: OnSelectionChanged = “SelectionChanged”. So the SelectionChanged method is called on the server when the user clicks on the calendar. But this requires a postback, which is crazy slow — in terms of my program, there’s no need for the server to be involved at this point; the client can handle everything.

So I’d like to handle it with javascript. Have some kind of way for clicking the asp:Calendar to trigger a piece of javascript code. Do I do this with a some kind of ajax extender? Or is there another way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:24:19+00:00Added an answer on May 22, 2026 at 10:24 pm

    Well, you can use the standard .NET AJAX controls, they are pretty simple to implement….

    Basically, you need to first include a script manager in your markup, nothing complicated about that. Just make sure it is in the tags.

    You want to wrap the part of your page you want to be accessible on the AJAX postback in an UpdatePanel tag. The update panel will require a ContentTemplate, which is where all of your actual page content goes. It will also require a Trigger tag, that is where you specify the controls and events you want to fire off the postback. Any control that you want to fire an AJAX postback on must have its AutoPostBack property set to “true”.

    Here’s the basic layout:

    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <asp:UpdatePanel runat="server" ID="UpdatePanel1">
    <ContentTemplate>
    <asp:Label runat="server" ID="UpdateMe"/>
    <asp:TextBox runat="server" ID="AjaxTextBox" AutoPostBack="true" OnTextChanged="AjaxTextBox_TextChanged/>
    </ContentTemplate>
    
    <Triggers>
    <asp:AsyncPostBackTrigger ControlID="AjaxTextBox" EventName="TextChanged" />
    </Triggers>
    </asp:UpdatePanel>
    

    Now, these days I don’t think this is the preferred method of doing things. Most web-devs are using the jquery AJAX methods to handle it, but this is a quick-and-easy way to get started I suppose. Jquery AJAX methods aren’t at all difficult, though. Certainly something else worth looking into…but I don’t prefer to use controls like the Calendar with Jquery AJAX. For those cases, I use the jquery-ui calendar control. The cost of having to convert and check datetimes is minimal compared to dealing with heavily customized .NET controls intermixed with Jquery AJAX.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is probably a total newb question but does anyone know how to make
Total newbie question but this is driving me mad! I'm trying this: myInt =
I'm a total newbie, but I was writing a little program that worked on
I'm working on learning GWT (total newb) and have a question regarding the Visualiztion
Ok, this is a total newb question, so please forgive me. What is the
Warning:Total Rails Newb (TRN). This should be a pretty basic question so I'm hoping
I'm a total newbie to SVN and haven't been able to find an answer
This is a total newbie question, so thanks in advance. I'm trying to get
I'm a total newb to LINQ. Here is the code I have so far:
I've been banging my head against a wall for a few days with this.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.