Home » Posts tagged "button"

Archive for the 'button' Tag

Refresh page on button click

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)” […]

Css round corners button

html code < asp:Button ID="SubmitBtn" runat="server" Text="Next ►" CssClass="btnSubmit" CausesValidation="true"/> css properties .btnSubmit { color: #FFF; text-decoration: none; border: 1px solid #C8C8C8; padding: 1px 3px 2px 5px; background-color: #1A503E; font-size: 13px; border-radius: 6px 6px / 6px 6px; }