Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am working on websites UI Automation using c# web-browser.

One of the website has got Drop down list control.
If I select drop down item manually then it will automatically get fired and textbox appeared as per selection.
and If I am select same item from c# code in web-browser then event not get fired.

Kindly suggest If anyone knows solution on the same.

Regards,
Paresh Patil
Posted
Updated 13-Apr-15 1:34am
v2
Comments
Praveen Kumar Upadhyay 13-Apr-15 10:21am    
What do you mean by manually select?
Abdul Samad KP 13-Apr-15 11:01am    
It will work only in windows forms. In webforms, if you change item from your code , it will not fire the event, move your code in the selected item changed event to a separate method and call it wherever you need.
BulletVictim 14-Apr-15 4:07am    
After selecting the Item in code use the DropDownlist_SelectedIndexChanged(object sender,EventArgs e). This will fire the Dropdownlists index chnaged event.
If you need more specific help, please show us your relevant code.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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