Ancient Dragon delete my original post,Anyway I have to write my question here again.
I have List and I used save employee objects into list,first user has to select how many employee objects save in list.Assume user select 2 employee obejcts,so user has to enter employee details (Name,Address,etc..) once he fill the details then he has to clcik on save button to add the employee object into list.In one time user can add onlyone employee object .There is anotehr button called"Next Page" ,but its disable.So once user add second object into list then "Next Page" button should enable.
I wrote coding for that part,but its only works when user clcik on the save button in thrid time.Howdo I do this?pelase help me slove this problem.
Your question is a bit hazy but I think you mean something like :
If MyList.Count is equal to 2, then enable my next button.
A List can not easily get "full" as it expands itself automatically when needed.
An array will give an index out of range error.