Click here to Skip to main content
15,915,839 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: IIS wont serve up web pages Pin
dwolver19-Jun-09 11:43
dwolver19-Jun-09 11:43 
QuestionASP.NET session synch with Legacy ASP 3.0 problem Pin
dew219-Jun-09 4:56
dew219-Jun-09 4:56 
AnswerRe: ASP.NET session synch with Legacy ASP 3.0 problem Pin
DoctorMick19-Jun-09 5:34
DoctorMick19-Jun-09 5:34 
GeneralRe: ASP.NET session synch with Legacy ASP 3.0 problem Pin
dew222-Jun-09 8:53
dew222-Jun-09 8:53 
QuestionCreate a page instance with controls? Pin
Lukaspojk19-Jun-09 4:27
Lukaspojk19-Jun-09 4:27 
AnswerRe: Create a page instance with controls? Pin
Abhishek Sur19-Jun-09 6:12
professionalAbhishek Sur19-Jun-09 6:12 
GeneralRe: Create a page instance with controls? Pin
Lukaspojk19-Jun-09 21:32
Lukaspojk19-Jun-09 21:32 
QuestionHow to get a selected Listbox Item? Pin
bnonym081519-Jun-09 2:56
bnonym081519-Jun-09 2:56 
Hello guys,

I'm creating a very basic CMS which contains a File-Explorer. In this explorer it's possible to select an File from a ListBox, and do several options with the file then. My problem is: I have told the ListBox todo a Postback, but everytime this Event is fired my function isn't able to get the selected item, I get nothing.

Protected Sub ListBoxDir_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBoxDir.SelectedIndexChanged
        If ListBoxDir.SelectedItem Is Nothing Then
            ErrorMessage.Text = "An error occured!"
            Exit Sub
End If
End Sub


I always get the error.

By the way: I'm using Visual Web Developer 2008 Express (That shouldn't mind), AND I've button the Listbox into an UpdatePanel:

<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>

<!--Many Buttons, Textboxes etc., and the Listbox are here.-->

<EndingTags for all the AJAX-Stuff>


I didn't forgot to enter a ScriptManager.
Everything seems so weird...
AnswerRe: How to get a selected Listbox Item? Pin
5fingers19-Jun-09 3:02
5fingers19-Jun-09 3:02 
GeneralRe: How to get a selected Listbox Item? Pin
bnonym081519-Jun-09 3:12
bnonym081519-Jun-09 3:12 
QuestionCrystal reports Pin
5fingers19-Jun-09 2:45
5fingers19-Jun-09 2:45 
AnswerRe: Crystal reports Pin
Abhishek Sur19-Jun-09 4:04
professionalAbhishek Sur19-Jun-09 4:04 
QuestionTFS2010 Pin
ananthakumar_s19-Jun-09 2:41
ananthakumar_s19-Jun-09 2:41 
AnswerRe: TFS2010 Pin
Not Active19-Jun-09 2:45
mentorNot Active19-Jun-09 2:45 
GeneralRe: TFS2010 Pin
ananthakumar_s19-Jun-09 2:48
ananthakumar_s19-Jun-09 2:48 
GeneralRe: TFS2010 Pin
Not Active19-Jun-09 3:36
mentorNot Active19-Jun-09 3:36 
GeneralRe: TFS2010 Pin
5fingers19-Jun-09 2:49
5fingers19-Jun-09 2:49 
AnswerRe: TFS2010 Pin
SeMartens19-Jun-09 2:48
SeMartens19-Jun-09 2:48 
GeneralRe: TFS2010 Pin
Abhishek Sur19-Jun-09 4:14
professionalAbhishek Sur19-Jun-09 4:14 
QuestionUrl r ewriting Pin
Unknown Ajanabi19-Jun-09 1:55
Unknown Ajanabi19-Jun-09 1:55 
AnswerRe: Url r ewriting Pin
SeMartens19-Jun-09 2:46
SeMartens19-Jun-09 2:46 
AnswerRe: Url r ewriting Pin
Christian Graus19-Jun-09 11:16
protectorChristian Graus19-Jun-09 11:16 
QuestionProblem in postback after populating dropdown using clientside script Pin
CrazyCoder2619-Jun-09 0:50
CrazyCoder2619-Jun-09 0:50 
AnswerRe: Problem in postback after populating dropdown using clientside script Pin
Aman Bhullar19-Jun-09 1:01
Aman Bhullar19-Jun-09 1:01 
GeneralRe: Problem in postback after populating dropdown using clientside script Pin
CrazyCoder2619-Jun-09 1:10
CrazyCoder2619-Jun-09 1:10 

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.