Add() method is used to add keys and values pairs in ViewState.
Actually it's an alternate way of assigning values to ViewState keys.
Here,Name is a Key and Vishal is its Value.
Viewstate is used at page-level only.
Asked In: Many Interviews |