Results 1 to 2 of 2

Thread: Updating a button

  1. #1
    Join Date
    Feb 2011

    Updating a button

    Noticed this old thread where someone was asked why they wanted to refresh a page. I used to develop ASP.Net sites professionally and recently came back to it for a website for a friend who asked for a shopping cart.

    To update the "add to cart" buttons for each item inside a repeater after they were clicked, I wrapped a declarative databinding method inside my own method. I remembered that after a button was clicked, it would do a post back and raise the click event after it called the methods in the markup. I also remembered getting a specific item in a repeater is not straightforward and so instead I put Response.Redirect(Request.Url.ToString()); at the end of the click event method, and it worked OK.

    I realize there are far better solutions for doing this, including an UpdatePanel or even de facto javascript. With all the latest developments of ajax and javascript libraries, what are people doing now for something like this?

  2. #2
    Join Date
    Jan 2003
    Dundee, Scotland

    i guess best question to ask you is which version of the .NET framework did you last work with? Anything prior to .net framework 2.0 requires seperate ASP.NET AJAX 1.0 extensions however .net 3.5 & 4 include the AJAX Library 3.5 which is the JavaScript library that provides the client-side features of ASP.NET AJAX.

    The latest tool for developement from Microsoft is the Silverlight framework which is a web application framework that provides functionality similar to Flash and Flex and allows the integration of multimedia, animations and interactivity into your site.

    Hope that helps



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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