- I have a web user control which has an update panel & a gridview is inside it
- On page load I set user control's private field value through a publicly exposed property & bind the gridview with data
- I enter some new values in through a modal & do a postback inside the updatepanel in user control, when I try to fetch the value of private field on my user control the value is default to zero
private int ftId = 0; public int FtId { set { ftId = value; } }
the private int ftId=0; is called after every ASync postback.
Is there any way I can overcome this problem ?