<AjaxButton>

The AjaxButton tag renders as a push-button at run-time that, when clicked, will dynamically insert HTML returned from a URL into an element on the page - without a postback. This is a jQuery based control. It required jQuery be included in the page and that Javascript be enabled in the end-user's browser.

Syntax

<AjaxButton
    BackColor="color name|#dddddd"
    BorderColor="color name|#dddddd"
    BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge| Inset|Outset"
    BorderWidth="size"
    CssClass="string"
    Font-Bold="True|False"
    Font-Italic="True|False"
    Font-Names="string"
    Font-Overline="True|False"
    Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium| Large|X-Large|XX-Large"
    Font-Strikeout="True|False"
    Font-Underline="True|False"
    ForeColor="color name|#dddddd"
    Height="size"
    LoadingCssClass="CSS class name"
    LoadingImageUrl="string"
    OnError="string - JS function to call on error"
    OnSucess="string - JS function to call on success"
    Style="string"
    Target="jQuery element selector"
    Text="string"
    ToolTip="string"
    Url="url"
    Visible="True|False"
    Width="size" />
      

Remarks

Back to top

Example

<AddForm>
  <SubmitCommand CommandText="Update EmployeeReview SET Rating=@Rating" />

  <Label>Submit Rating for Employee</Label>
  <DropdownList Id="Rating" DataField="Rating" DataType="Int32">
    <ListItem Value="1">Poor</ListItem>
    <ListItem Value="2">Sub-Par</ListItem>
    <ListItem Value="3">Average</ListItem>
    <ListItem Value="4">Above Average</ListItem>
    <ListItem Value="5">Excellent</ListItem>
  </DropdownList>
<AjaxButton Text="View Employee History" Url="mysite.com/history.aspx?eid=100"
      Target="#divHistory" />
  <div id="divHistory"></div>
  <AddButton Text="Add Rating" /> <CancelButton Text="Nevermind" />
</AddForm>
 
Back to top