Hi Shreya,
Dropdown value comparison should be like this.
if ( DDRole12.SelectedItem.text == User)
Try this.This might work.