delete from repater / ajax / asp.net 3.5

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • laziers@gmail.com

    #1

    delete from repater / ajax / asp.net 3.5

    Hi,
    Im using in asp.net 3.5 and ajax.
    So, I want to do something like this:

    I have repeater [in update panel] with some data and button witch
    deletes selected record.
    Im clicking at the delete button, and then page is refreshing/
    reloading. So, before delete asp must
    get data from database [in OnLoad], after that asp deletes record
    [repeater itemcommand]
    and againg must get data from database [to refresh repeater].

    My question is: is there any way, to do this without getting data from
    database in OnLoad?


    Greetings
  • Eliyahu Goldin

    #2
    Re: delete from repater / ajax / asp.net 3.5

    Just check page IsPostBack or IsAsync property in the OnLoad event.


    --
    Eliyahu Goldin,
    Software Developer
    Microsoft MVP [ASP.NET]




    <laziers@gmail. comwrote in message
    news:66c746ba-d64b-41b6-bd70-efb75877e178@e2 3g2000prf.googl egroups.com...
    Hi,
    Im using in asp.net 3.5 and ajax.
    So, I want to do something like this:
    >
    I have repeater [in update panel] with some data and button witch
    deletes selected record.
    Im clicking at the delete button, and then page is refreshing/
    reloading. So, before delete asp must
    get data from database [in OnLoad], after that asp deletes record
    [repeater itemcommand]
    and againg must get data from database [to refresh repeater].
    >
    My question is: is there any way, to do this without getting data from
    database in OnLoad?
    >
    >
    Greetings

    Comment

    Working...