datalist & javascript

Last post 04-14-2005 12:34 PM by ChrisWallace. 7 replies.

Sort Posts:

  • datalist & javascript

    04-11-2005, 5:25 PM
    hi all,
    is there's anyway to bind dataTable to datalist using javascript
    because i have a page contain 4 links
    when the user click on anyone i don't want to postback just rebind the data
    is there's anyway to do this with javascript
    my data r cached so i don't need to postback
    Plz help  Big Smile [:D]
  • Re: datalist & javascript

    04-12-2005, 5:15 PM
    • Contributor
      4,734 point Contributor
    • shravan79
    • Member since 05-06-2004, 9:27 PM
    • Cary, NC USA
    • Posts 947
    Not sure if u want this to be done only in javascript but if u have 4 hyperlink controls and clicking on them cud change the Datasource of the DataList u have. Just see if that works for u/
    Shravan Addaypally MCP

  • Re: datalist & javascript

    04-12-2005, 5:54 PM
    i don't understand try what
  • Re: datalist & javascript

    04-12-2005, 7:42 PM
    • Participant
      1,026 point Participant
    • blahhumbug
    • Member since 04-13-2003, 10:32 PM
    • Ruffiac, France
    • Posts 223
    Your data is cached on the server. You can't rebind to it without a postback.

    Good luck,
    Sam
  • Re: datalist & javascript

    04-12-2005, 7:46 PM
    • Contributor
      2,575 point Contributor
    • rx
    • Member since 08-29-2003, 10:16 PM
    • Los Angeles, CA
    • Posts 515
    I don't think it is possible.
    Richard Xin
    MCAD(charter member),MCDBA,MCSD
    Web Site: www.richardxin.com (For ASP.Net tips and Code snippet)
  • Re: datalist & javascript

    04-14-2005, 10:27 AM
    what if i have the data on one dataset and all what i need is to change the datasource is that possible
  • Re: datalist & javascript

    04-14-2005, 11:51 AM
    • Contributor
      2,575 point Contributor
    • rx
    • Member since 08-29-2003, 10:16 PM
    • Los Angeles, CA
    • Posts 515

    Dataset is available on server side only, DataList is web server control, they are not available to client side javascript.

    Richard Xin
    MCAD(charter member),MCDBA,MCSD
    Web Site: www.richardxin.com (For ASP.Net tips and Code snippet)
  • Re: datalist & javascript

    04-14-2005, 12:34 PM
    • Member
      55 point Member
    • ChrisWallace
    • Member since 03-28-2005, 3:40 PM
    • Suwanee, GA
    • Posts 11

    You can do what you want with javascript and an XMLHttpRequest or Ajax (you can look this up in a search engine).

Page 1 of 1 (8 items)