Just check page IsPostBack or IsAsync property in the OnLoad event.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
<(E-Mail Removed)> wrote in message
news:66c746ba-d64b-41b6-bd70-(E-Mail Removed)...
> 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