I have a listbox in asp.net I tried when user click on it's item in runtime can change the text of this item without change the order of the the items . So I try to make Edit button when click on it get the item value as
protected void btnEditListValue_Click(object sender, EventArgs e)
{
string listvalue = lstParameters.Items.IndexOf(lstParameters.SelectedItem).ToString();
string listText = lstParameters.SelectedItem.ToString();
}
then I will make textbox fill value from string listText to enable user to edit
what shall I do after that to keep listbox order as old without delete and insert again
please help
listvalue?if(!isPostBack){DataBindYourListBox();}. Then all changes or events are lost.if(!isPostBack)I clear thelstParameters.Items.Clear();and if I remove it will autopostback and append new data on the old one