Posted on: 11/10/2013 11:50:25 AM | Views : 733

hello every one 
i am using ASP.Net 4.0, VB
i am creating a form that shows pictures from database 
those pictures can be deleted from with in the form ... 
to delete a picture a made up a user control with the picture itself and a delete button then load the userControl dynamically. those userControls are loaded into an updatePanel
The delete button works fine where it deletes the picture from the database but it does not updat the panel from the first time its is clicked. however it does it the second time i hit the same button or any other button. Any clue what am missing here 

the userControl code:
Protected Sub BtnRemove_Click(sender As Object, e As EventArgs) Handles BtnRemove.Click Dim conn As SqlConnection = mdSql.sqlConnectionString Dim queryString As String = String.Format("DELETE FROM Pictures WHERE PictureId={0}", PictureId) ...

Go to the complete details ...