Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

if you disable view state of a textbox will it maintain
data during postbacks.if yes reason

Answer Posted / raja

yes, u will get the value displayed even u disabled ViewState
I used RAJNEESH answer and concept of ans:5.Take a textbox
In load event
if (!IsPostBack)
{
txtFirst.Text = "Initial";
}
and in form
make txtFirst as enableviewstate=false,Text="Final";
if you execute it. It displays as Initial only as this is
-------
having read/write property.

but if u make readonly="true" to txtFirst then it displays
as Final
-------

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of asp.net web api?

1050


What are the versions of garbage collection?

1847


What is the concept of postback in asp.net?

1014


How to integrate angular 8 with asp.net mvc 5? : Asp.Net MVC

856


In ViewState How much lifespan items stored?

1033


How do we implement bundling in MVC?

1055


Why session is used in asp.net?

995


What is ispostback method in asp.net?

995


Explain the concept of event bubbling in ASP.NET?

1055


What is the significance of attaching a profile while creating a user?

991


How do session tokens work?

921


How can you handle errors in Web API?

1073


Can master pages be nested?

908


Can you nest updatepanel within each other?

946


How do I force the dispose method to be called automatically, as clients can forget to call dispose method?

896