Hi Abdul, No, I didn't change anything after hitting F5. I tried rebuilding the Website, the build was successful, but when I tried deleting the image from the gallery the same problem again: "There is no source code available for the current location." :(
What causes this message? What triggers this error message? Ana On Jun 17, 7:35 pm, Abul Hasan Lakhani <[email protected]> wrote: > Did you change the Source Code in anyway after hitting F5? > > Try rebuilding your application and hitting F5 again. > > Hope it helps. > > Abul Hasan Lakhani > > On 18 June 2010 00:35, Stefan Brandt <[email protected]> wrote: > > > > > VB.NET <http://vb.net/> is for people who wants problems :) > > > On Jun 17, 10:05 pm, Ana <[email protected]> wrote: > > > Hi, > > > > I'm debugging my code and when it reaches a certain point this > > > messages pops up: "There is no source code available for the current > > > location." I had this problem before but it was in a different > > > scenario and I don't remember how it was solved. > > > > I really don't understand this problem and why it happens. This is the > > > situation: > > > > - I have a DataList with ImageButtons that pop up an image in a bigger > > > size using the ModalPopupExtender, from the Ajax Toolkit. > > > - The DataList is inside an UpdatePanel. > > > - The user of the page can visualize the DataList, add more images to > > > the DataList and Delete the Datalist. The routine for binding the > > > DataList is called in 3 cases: when the user wants to view the images > > > in a gallery of images, after the user add an image to the gallery and > > > after the user deletes an image in the gallery. In the first two cases > > > (to view the gallery and after adding an image), the routine works > > > exactly how it's suppose to work and there's is no problem. However, > > > after the user deletes an image the error message pops up when the > > > debugger is going from the line myDataList.DataSource = dTable to the > > > line myDataList.DataBind() > > > > Here is my code for binding the DataList: > > > > Private Sub BindmyDataList(ByVal theID As Integer) > > > Dim dTable As DataTable = GetImages(theID) > > > GalleryIDHiddenField.Value = theID > > > myDataList.Visible = True > > > > If dTable.Rows.Count = 0 Then > > > DataListMessageLabel.Visible = True > > > DataListMessageLabel.Text = "There are no images to be > > > displayed." > > > DataListMessageLabel.CssClass = "error_message" > > > Else > > > DataListMessageLabel.Visible = False > > > End If > > > myDataList.DataSource = dTable > > > myDataList.DataBind() > > > DataListDiv.Visible = True > > > End Sub > > > > Does anyone knows why this message is displayed, what is the problem > > > and how to solve it? I appreciate your help! > > > > Ana > > -- > Abul Hasan Lakhani
