asp.net - Force User Control (specifically ListView) to Refresh Every Time Page Posts Back -


i have 2 user controls in page, , when 1 posts , work (uploading file), i'd other (a list of files uploaded) refresh properly.

the user control needs refresh pretty contains listview custom datasource populated through linq entities query.

there no updatepanels , no ajax involved. (ajax out of question @ point, because learning every other little thing in .net time-consuming enough; i'd not open ajax can of worms yet, no matter how i'd learn in general.)

so want know how make darn listview update anytime on page posts - whether it's in user control or not, whether it's user control, page, or whatever else posting back, , without utterly reloading page through redirection.

possible?

well, nevermind, guess. making update datasource during prerender worked purpose, , actually, think it, reason listview not updating otherwise. updating on load, before other user control had chance stuff.

however, apparently can't run function update datasource @ prerender, because made funky things happen javascript (confirming delete). don't know why be. may have test that's further.

so, right run on load , prerender (waste of resources, @ least works want now).


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -