Click here to Skip to main content
15,998,673 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionFile Upload Pin
student_rhr14-Aug-08 7:40
student_rhr14-Aug-08 7:40 
AnswerRe: File Upload Pin
ToddHileHoffer14-Aug-08 9:36
ToddHileHoffer14-Aug-08 9:36 
Questionsmooth menus Pin
Subin Alex14-Aug-08 7:23
Subin Alex14-Aug-08 7:23 
AnswerRe: smooth menus Pin
Christian Graus14-Aug-08 11:45
protectorChristian Graus14-Aug-08 11:45 
AnswerI wud like... Pin
leckey14-Aug-08 14:33
leckey14-Aug-08 14:33 
Questionif employee present or absence [modified] Pin
sathyan_829414-Aug-08 7:03
sathyan_829414-Aug-08 7:03 
AnswerRe: if employee present or absence Pin
Christian Graus14-Aug-08 11:46
protectorChristian Graus14-Aug-08 11:46 
QuestionHow to save and display a sorted ListBox Control?? Pin
Imran Adam14-Aug-08 5:33
Imran Adam14-Aug-08 5:33 
Hi

I have a query with the ListBox control. I have two pages on my web app, a main page and a sort page.
The main page contains a table populated with names from an SQL database.
The sort page contains a ListBox with all the names from the main page and 2 buttons, Up and Down.
The user can move the names Up and Down by clicking the name and pressing Up or Down.

Now i would like to know, How can i save the 'sorted' listBox and display that order on the Main Page??

I would greatly appreciate some help.

Many Thanks

PS this is what i have for moving the items UP/Down

protected void Button1_Click(object sender, EventArgs e)
{
int i = lstAssoc.SelectedIndex;

string str = lstAssoc.SelectedItem.ToString();

if (i > 0)
{
lstAssoc.Items.RemoveAt(i);
lstAssoc.Items.Insert(i - 1, str);
lstAssoc.SelectedIndex = i - 1;
}

}

-------------------
Redcastle CRM


GeneralRe: How to save and display a sorted ListBox Control??[Ignore - RePost] Pin
Manas Bhardwaj14-Aug-08 6:49
professionalManas Bhardwaj14-Aug-08 6:49 
AnswerIGNORE Pin
leckey14-Aug-08 14:34
leckey14-Aug-08 14:34 
AnswerRe: How to save and display a sorted ListBox Control?? Pin
Imran Adam14-Aug-08 22:56
Imran Adam14-Aug-08 22:56 
QuestionSpecial Row in Grid Pin
Nimua14-Aug-08 4:42
Nimua14-Aug-08 4:42 
AnswerRe: Special Row in Grid Pin
ToddHileHoffer14-Aug-08 9:41
ToddHileHoffer14-Aug-08 9:41 
QuestionLicense Cost for Visual Studio .NET ? Pin
Nizam Quadri14-Aug-08 2:57
Nizam Quadri14-Aug-08 2:57 
AnswerRe: License Cost for Visual Studio .NET ? Pin
Manas Bhardwaj14-Aug-08 3:26
professionalManas Bhardwaj14-Aug-08 3:26 
AnswerWTF? Pin
leckey14-Aug-08 5:28
leckey14-Aug-08 5:28 
GeneralRe: WTF? Pin
Paul Conrad14-Aug-08 6:44
professionalPaul Conrad14-Aug-08 6:44 
QuestionWhich is Better PHP or ASP.NET ? Pin
Nizam Quadri14-Aug-08 2:51
Nizam Quadri14-Aug-08 2:51 
AnswerRe: Which is Better PHP or ASP.NET ? Pin
scottgp14-Aug-08 3:08
professionalscottgp14-Aug-08 3:08 
JokeRe: Which is Better PHP or ASP.NET ? Pin
ToddHileHoffer14-Aug-08 4:38
ToddHileHoffer14-Aug-08 4:38 
AnswerRe: Which is Better PHP or ASP.NET ? Pin
Bardy8514-Aug-08 4:39
Bardy8514-Aug-08 4:39 
GeneralRe: Which is Better PHP or ASP.NET ? Pin
leckey14-Aug-08 5:29
leckey14-Aug-08 5:29 
QuestionReading Excel file without knowing its worksheet name Pin
goradaranaresh14-Aug-08 2:39
goradaranaresh14-Aug-08 2:39 
QuestionRun exe from bowser at client side Pin
nikhil123414-Aug-08 2:29
nikhil123414-Aug-08 2:29 
AnswerRe: Run exe from bowser at client side Pin
Christian Graus14-Aug-08 2:38
protectorChristian Graus14-Aug-08 2:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.