Select from following answers:- ViewState.Add("Name", "Vishal");
- ViewState["Name"] = "Kumar";
- Both 1 and 2

- All Above
By approaching both way,we can add items into Viewstate.
Add() method has key and value pairs.
Key = "Name"
and Value = "Vishal"
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator