[RESOLVED] Prevent Page from Refreshing
Hi,
i have a datatable which i populate with table data in the pageload event
i only want this to populate once, so i have it inside an IF Not IsPostBack
but if i click on a button on the form it refreshes the page and the data is lost.
how can i prevent this from happening.
Re: Prevent Page from Refreshing
Put it into ViewState or even better the Cache.
DJ
Re: Prevent Page from Refreshing
how do you use the view state
Re: Prevent Page from Refreshing
Type ViewState.add( into your IDE and you'll see what to do. It's very intuitive.
Re: Prevent Page from Refreshing
i think ill cache it, seems to be better for what i need to do.
thanks for the help as always guys