Skip to content

<xmod:ContinueButton>

The ContinueButton tag renders a push-button used inside an <AddSuccessTemplate> or <EditSuccessTemplate> — the optional "thank you" view shown after a form is successfully submitted. When clicked, the user is sent to the page they would have seen if no success template had been displayed, or to the URL specified in Redirect.

xmod: prefix required

Unlike the other Add/Update/Cancel buttons, ContinueButton, ContinueImage, and ContinueLink are template tags — they live inside <…SuccessTemplate>, not inside the form itself — so they require the xmod: prefix. Use <xmod:ContinueButton> rather than <ContinueButton>.

Example

html
<AddForm>
  ...
</AddForm>

<AddSuccessTemplate>
  <ItemTemplate>
    <h1>Thanks for Signing Up</h1>
    <p>Click the button below to go to your profile page.</p>
    <xmod:ContinueButton Text="View Your Profile"
                         Redirect="http://mysite.com/profile" RedirectMethod="Get" />
  </ItemTemplate>
</AddSuccessTemplate>

Properties

PropertyValuesDefaultDescription
TextstringCaption displayed on the button
AccessKeystringKeyboard shortcut character (e.g. F for Alt+F)
CssClassstringCSS class name(s) for styling the control
EnabledTrue FalseTrueWhen False, the control is disabled (grayed out and not interactive)
HeightsizeHeight of the control
IDstringUnique identifier for the control within the form
OnClientClickJavaScriptClient-side script to run when the button is clicked
RedirectURLURL the user is redirected to. If omitted, the user is returned to the page they would have seen if the success template hadn't been displayed
RedirectMethodGet PostGetHTTP method used for the redirect
StylestringInline CSS (e.g. color: red; border: solid 1px black;)
TabIndexintegerTab order for keyboard navigation
ToolTipstringText displayed on mouse hover
VisibleTrue FalseTrueShows or hides the control
WidthsizeWidth of the control
Deprecated Properties

These properties use ASP.NET inline styling and are no longer recommended for modern web development. Use the CssClass property to apply CSS classes or the Style property for inline CSS instead.

PropertyValuesDescription
BackColorcolor name | #ddddddBackground color of the control
BorderColorcolor name | #ddddddBorder color of the control
BorderStyleNotSet None Dotted Dashed Solid Double Groove Ridge Inset OutsetBorder style of the control
BorderWidthsizeBorder width of the control
Font-BoldTrue FalseBold text
Font-ItalicTrue FalseItalic text
Font-NamesstringFont family name
Font-OverlineTrue FalseOverline text decoration
Font-SizeXX-Small X-Small Small Medium Large X-Large XX-Large or sizeFont size
Font-StrikeoutTrue FalseStrikethrough text decoration
Font-UnderlineTrue FalseUnderline text decoration
ForeColorcolor name | #ddddddText color of the control

Property Details

  • OnClientClick: A JavaScript expression to run when the button is clicked, before the redirect happens. If your script returns false, the button does nothing further. If it returns true (or doesn't return anything), the button proceeds normally.

  • Redirect: After the click, redirect the user to this URL. If omitted, the user is sent to the page they would have seen if the success template hadn't been shown — typically the page that contained the form.

  • RedirectMethod: The HTTP method used for the redirect. Get (the default) appends form values as query string parameters. Post submits them as a form POST.