3
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by ddanbe
0

Every array is full of initial values or nulls. Do you want to show a message when array index reaches out of limit?

0

HI
Thanks adatapost for ur reply.By mistake I post this question two time.Please refer to second one.

Thanks
Tank50

0

Hi
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.

Thanks
Tank50

0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.