Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5848357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:50:51+00:00 2026-05-22T12:50:51+00:00

I have a <table> that has a header row. I’m trying to add an

  • 0

I have a <table> that has a header row. I’m trying to add an item under the header row, but there seems to be no way to describe this intent to the ActionLink function.

InsertionMode.InsertBefore with the header row’s ID specified as the update target just puts the row on the top of the table, Replace replaces the header of the table, and InsertAfter actually puts a new row inside the header row — which is obviously invalid.

Is there any way to specify that I want to append some HTML after or before a tag?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:50:52+00:00Added an answer on May 22, 2026 at 12:50 pm

    AFAIK there is no way to achieve such behavior with only properties of the AjaxOptions class. One way would be to subscribe for the OnSuccess method and do the insertion manually:

    @Ajax.ActionLink("click me", "someAction", new AjaxOptions { OnSuccess = "success" })
    

    and the success function:

    <script type="text/javascript">
        function success(result) {
            $('table').after('th').append(result);
        }
    </script>
    

    or if you are using MicrosoftAjax you need to call the get_data method to fetch the returned result from the ajax call:

    function success(result) {
        $('tableid').after('th').append(result.get_data());
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table that has the user ID already in it, but some
I have a Table that has an arbitrary amount of Rows. In these Rows
I have a table that has its content filled using one of the two
Suppose I have a table that has three integer fields and one string field
If I have a table that has 50 columns, will it take less time
We have a log table that has a message column that sometimes has an
I have developed an asp.net application that has a Gridview control. I want it
I have an AdvancedDataGrid being built dynamically from an html table. The html is
I've seen several examples of many to many relationships in EF using code-first, but
From inside to outside, these are our MVC app layers: MS SQL / Tables

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.