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 6843071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:12:07+00:00 2026-05-27T00:12:07+00:00

Im manually Creating the table using the built in razor GETHtml Function. @table.GetHtml( columns:

  • 0

Im manually Creating the table using the built in razor GETHtml Function.

@table.GetHtml(
    columns: table.Columns(
        table.Column("Account"),
        table.Column("Due"),
        table.Column("Topic"),
        table.Column("Type"),
        table.Column("Completed?", format:  @<input id="Complete" name="Complete" type="checkbox" onclick="/Tasks/Complete?ID=700" />)
        )
)

What I want is a way of clicking a checkbox, or button to activate the controller. it is not accepting Dynamic checkbox. Nor does the html checkbox do anything.

  • 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-27T00:12:08+00:00Added an answer on May 27, 2026 at 12:12 am

    I Have a working solution without using forms, the column would be set using the following code:

    table.Column("Completed?", format: @<input type="checkbox" onclick="location.href='@Url.Action("Complete", "Tasks", new { TaskID = item.TaskID })'" />
    

    I think its possible that having the name property was causing it to post it as a parameter, rather than treat it as a submit.
    Otherwise it must ahve been the onclick event. Ive used location.href, then set it using razor syntax, and included the id as a property.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am manually creating the equivalent lambda: var function = p => p.Child.Any(c =>
Creating a table without tbody using javascript createElement/appendChild will not add tbody in Firebug
I'm attempting at creating a menu from a table using the Suckerfish css menu
I've changed column length manually in my previous database. But after creating new database
Is it possible to manually connect to the database using sqlclient and sqlconnection (ie
Basically I am creating a summary table. The issue is that sometimes the data
I have a Users table where the ID field is a GUID field. Using
I'm going to be using Quartz.NET for a Windows Service I am creating. I
How is a TBody tag created within a Table tag using pure JavaScript? (No
I have created a mysql table with the following columns... item_price, discount, delivery_charge, grand_total

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.