i can explain for my doubt with example.see.my table have multiple type of employee details like as Mangemment,Programmer,Designers,Accountants,ContractEmployees.Each type of department having many employee details.Now my drop down list having types of department names like that above types of department names..if i select any one type of department data wil be display in gridview format .gridview data column as employee Name,Address,Phone_No,email_address and each every row with checkboxes.gridview showing data according to select the dept.No problem.In my problem as if select management type of employee two after then i select programmer type of employee four .so i need now totally six employee values.
How to write code in dropdown list selected index changed event.
Note : Dropdown list palced in out side of gridview. i put First selected type of employee values in viewstate then i go to select second type of employee values,now i am not getting for previous selected values i mean viewstate values,here viewstate values is empty.whenever i select dropdown list value viewstate values are emty.how to get viewstate value while dropdown list selected index changed.
Plz tel me its very urgent.
Advance wishes.
Regards
Thanigaimani
Thanigaimani ThirumalaiPosted Nov 6, 2007, 6:35 AM
Hi
if u no problem.i ll send my design page and code view in to ur hotmail mail id.
its very urgent.
RakrusPosted Nov 6, 2007, 6:22 AM
Hi
Yes view state is clear why because you are binding the gridview with the current selction
that's why you need to maintian the retrieved values from the selection in session.
for each selection you need to add the retrived values to session values and again save the values to session this is itinary process.
still you have any doubts you can send the code/file i will change it if you are intrested.
thanks
[email protected]
Thanigaimani ThirumalaiPosted Nov 6, 2007, 6:11 AM
Hi
correct.but if i go to select another type of employee using drop down list here previous values are not added,i mean viewstate values are empty . current values only selected.
how to retrieve for viewstate values when i select drop down list index change .
RakrusPosted Nov 6, 2007, 5:58 AM
Hi,
I think you want to capture the records and it these to previous records for each selection change.
if so then save the retrived values into session as dataset
and for each selction merge the current retrival to old values in the session and again store the final vaues into session.
Thanks
[email protected]