Govind Malviya
Govind Malviya

Reputation: 13743

Textbox control dont lose value on postback if viewstate is disabled

When we disabled the viewstate in gridview its lose value but this case not true with Textbox control why?

Upvotes: 0

Views: 792

Answers (1)

Frédéric Hamidi
Frédéric Hamidi

Reputation: 262919

Because TextBox doesn't need ViewState to persist its value. It just fetches it from the POST request during initialization.

Upvotes: 1

Related Questions