Markup page <script runat=”server”> Sub UpdateMessage(ByVal source As Object, ByVal e As SqlDataSourceStatusEventArgs) If e.AffectedRows > 0 Then ‘ Perform any additional processing, ‘ such as setting a status label after the operation. Page.Response.Redirect(Page.Request.Url.ToString(), True) End If End Sub ‘UpdateMessage </script> <asp:SqlDataSource ID=”ImgEditDS4″ runat=”server” ConnectionString=”< %$ ConnectionStrings:MyConnStr %>” SelectCommand=”SELECT [photo_id], [photo_1] WHERE ([photo_id] = @p_id)” […]
Archive for December 10, 2012