c# - How to exclude already existing items from dropdownlist? The values are populated based on some condition in xml -
in web application project have linkbutton , when clicking popup page addcontrolspopup.aspx come .
on page have fill ddlvalues dropdownlist xml condition.
the first dropdownlist ddlvalues. dropdownlist populated data.
the second dropdownlist ddlcontroltype
third dropdownlist ddlconditioncontrol.
in popup page there exists button add controls , need select values these 3 dropdownlist.
after clicking button, 3 dropdownlist values added xml controls section.
in page there exist button add controls. saved xml.
this process.
my doubt after adding combination of controlvalue, controltype , conditioncontrol, have exclude controlvalue first dropdownlist ddlvalues
pls
i have xml file following data.
< controlset> < control> < values> < valueid>1< /valueid> < valuename> abc < /valuename> < /values> < values> < valueid>2< /valueid> < valuename> def< /valuename> < /values> < values> < valueid>3< /valueid> < valuename> xyz< /valuename> < /values> < controls> < controlvalues> < valueid>1 </valueid> < controltypeid>1 < /controltypeid> < conditoncontrolid> 1 < /conditioncontrolid> < /controlvalues> < controlvalues> < valueid>1 </valueid> < controltypeid>1 < /controltypeid> < conditoncontrolid> 2 < /conditioncontrolid> < /controlvalues> < controlvalues> < valueid>1 </valueid> < controltypeid>2 < /controltypeid> < conditoncontrolid> 1 < /conditioncontrolid> < /controlvalues>
Comments
Post a Comment