My stored procedure is like this
SELECT Id, StudentName
FROM xyz
I have a drop down list in asp.net, which I am loading as :
it's very simple, only you have concat fields in the query
SELECT Id ,Id || ' ' || StudentName ""TEXT"",
FROM xyz
then you build a drop down list
ddlA.DataSource = // Some source
ddlA.DataTextField = "TEXT";
ddlA.DataValueField = "Id";
ddlA.DataBind();
ddlA.Items.Insert(0, new ListItem(" Select one", "0"));