AJAX & Cache
AJAX & Cache
?What is AJAX
Example:
We need to make a button, and a label , press the button then
displays “Hi” (without reloading the web page).
12 4
It is the key component that coordinates the use of JavaScript for the
Microsoft AJAX Library.
5 3
6
Then drag a button, and a label on you update panel….the button, and the
label must be contained in your update panel.
Then double click on the button, and write next code statements.
7
After writing this code, run your project, and you will notice that when press
this button, word “Hi ” is added to that label (without reloading the web page)
Cache
?What is cache
Example:
We need to make a button, and a textbox , write a word in the
textbox, and press the button then move to next page and
displays in a label “Hi “ + word in the textbox.
As you notice there are two forms ,the current form contains a textbox, and a
button, now double click on the button
Session is an object which store values, and move with these values through
pages
Syntax: Session[“any word you want”]= a string, or a number