shekar reddy

shekar reddy

  • NA
  • 3
  • 792

give c# code for foreach

Aug 13 2016 11:35 AM
<?xml version="1.0" encoding="utf-8"?>
<Users>
<User>
<UserName>Aaisha</UserName>
<UserPassword>QWRtaW4xMjM0</UserPassword>
<Account>savings</Account>
<City>chennai</City>
</User>
<User>
<UserName>support</UserName>
<UserPassword>U3RvcmUwOTg3</UserPassword>
<Account>savings</Account>
<City>Madurai</City>
</User>
<User>
<UserName>amazon service</UserName>
<UserPassword>Rm9vZDEyMzQ=</UserPassword>
<Account>savings</Account>
<City>Pandy</City>
</User>
<User>
<UserName>mahi</UserName>
<UserPassword>MTIzNFVtZXNo</UserPassword>
<Account>savings</Account>
<City>Madurai</City>
</User>
<User>
<UserName>Ramesh</UserName>
<UserPassword>MTIzNFVtZXNo</UserPassword>
<Account>savings</Account>
<City>Coiambattur</City>
</User>
<User>
<UserName>Rajesh</UserName>
<UserPassword>MTIzNFVtZXNo</UserPassword>
<Account>savings</Account>
<City>Coiambattur</City>
</User>
<User>
<UserName>Ragav</UserName>
<UserPassword>MTIzNFVtZXNo</UserPassword>
<Account>current</Account>
<City>Pandy</City>
</User>
<User>
<UserName>Rani</UserName>
<UserPassword>MTIzNFVtZXNo</UserPassword>
<Account>current</Account>
<City>Pandy</City>
</User>
<UserName>Avi</UserName>
<UserPassword>QWRtaW4xMjM0</UserPassword>
<Account>savings</Account>
<City>chennai</City>
</Users>
 
 read from xml file add only city to to commbobox .then if i select city in dropdownlist it will show the users in datagrid please tell me 
 
 
 

Attachment: codepro.zip

Answers (4)