J
Joergen Bech
Scenario: One editnews.aspx page used for editing various types of
news, e.g.
editnews.aspx?NewsType=Business
editnews.aspx?NewsType=Fans
Trouble is: There is a combobox on this page, which is being
initialized in the Page_Load event (If Not Page.IsPostBack Then ...).
For one type, 10 items might be loaded into the box. For another,
maybe 20.
For various reasons, I *need* to have this Page_Load event fired
whenever I switch between the two types, but in this sequence of
events:
1. editnews.aspx?NewsType=Business -> Page_Load fired
2. editnews.aspx?NewsType=Fans -> Page_Load fired
3. editnews.aspx?NewsType=Business -> <nothing>
By putting the following line at the beginning of Page_Load:
Response.Cache.SetCacheability(HttpCacheability.NoCache)
I get the event to fire all the time.
Problem: I have a FreeTextBox editor on the page. After adding the
line above, the 27 icons used by the editor are reloaded from the
server every time the page is updated.
Is there anyway I can get the Page_Load event to fire *and* cache
the FreeTextBox icons (and other images?) on the client?
TIA,
Joergen Bech
news, e.g.
editnews.aspx?NewsType=Business
editnews.aspx?NewsType=Fans
Trouble is: There is a combobox on this page, which is being
initialized in the Page_Load event (If Not Page.IsPostBack Then ...).
For one type, 10 items might be loaded into the box. For another,
maybe 20.
For various reasons, I *need* to have this Page_Load event fired
whenever I switch between the two types, but in this sequence of
events:
1. editnews.aspx?NewsType=Business -> Page_Load fired
2. editnews.aspx?NewsType=Fans -> Page_Load fired
3. editnews.aspx?NewsType=Business -> <nothing>
By putting the following line at the beginning of Page_Load:
Response.Cache.SetCacheability(HttpCacheability.NoCache)
I get the event to fire all the time.
Problem: I have a FreeTextBox editor on the page. After adding the
line above, the 27 icons used by the editor are reloaded from the
server every time the page is updated.
Is there anyway I can get the Page_Load event to fire *and* cache
the FreeTextBox icons (and other images?) on the client?
TIA,
Joergen Bech