This same code works fine when using select but with datalist the text and the value both are shown in the textbox and when I select an option instead of the text the id is