Click here to Skip to main content
15,908,634 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I Have 4 dropdownlist and some texbox. i need serch the record and after serching the record it shoul be place in textbox, when i select one dropdoenlist, value is come but afetr selction second dropdownlist, the value of first dropdownlist is clear , can any one help, what is problem, and without aoptopsotback yhis is unable to set the record n the following textbox,
Can any one help me..............
Thank You In advance
Posted

C#
//On dropdownlist1_selectedindexchanged

session.add("ddl1",dropdowlnist1.text);

//On dropdownlist2_selectedindexchanged
dropdownlist1.text= Session["ddl1"].tostring();
session.add("ddl2",dropdowlnist2.text);

//On dropdownlist3_selectedindexchanged
dropdownlist2.text= Session["ddl2"].tostring();
session.add("ddl3",dropdowlnist3.text);

//On dropdownlist4_selectedindexchanged
dropdownlist3.text= Session["ddl3"].tostring();
 
Share this answer
 
if u write code for filling dropdownlist or any code in page load
put it in if(!page.ispostback0
{
your code here
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900