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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:24:43+00:00 2026-05-22T11:24:43+00:00

I have a project where I have to make a game in ASP.net called

  • 0

I have a project where I have to make a game in ASP.net called futoshiki (see http://www.dofutoshiki.com for an example of what I am making).
I am using visual studio 2010.

I have a 5 x 5 table, where each cell contains an integer 1 – 5. the user should be able to click on the cell, and then press a number 1 – 5.
My problem is, I cant seem to make the table cells click-able. I want a user to be able to click the cell that they want to change, and enter a number from 1 to 5.

I’ve seen example where people have used [a] and [span]. But I don’t really think its necessary for each table cell to be a link. I just want each table cell to generate an event when its clicked, and then the event handler (C# event handler) reads in the input value, checks if it’s valid etc, then changes the value of the table cell to the new input value.

I also tried looking at [div] also. Instead of having a 5 x 5 table, I could just have like…. 25 div tags. but I failed at making them click-able!

Thanks!

Alex

  • 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-22T11:24:43+00:00Added an answer on May 22, 2026 at 11:24 am

    If you use jQuery (which you should), you can bind to the click event like so…

    <table>
       <tr>
            <td id="cell_1_1"><!-- something here --></td>
            <td id="cell_1_2"><!-- something here --></td>
            <td id="cell_1_3"><!-- something here --></td>
            <td id="cell_1_4"><!-- something here --></td>
            <td id="cell_1_5"><!-- something here --></td>
       </tr>
    </table>
    
    <script type="text/javascript">
         $('#cell_1_1').click(function(){ alert("This is how we do it!"); });
    </script>
    

    Good luck!

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

Sidebar

Related Questions

I have a C++ small project using GNU Make. I'd like to be able
I have to make a hardware project using a microcontroller, memory, screens, etc. Is
I have the mission to make a small game for a school project. Pictures
I am making a game in php as a personal project. I can make
I am making a battleship game for a project. While I have completed the
I have a Visual Studio 2008 project that produces a file called: Game-Release.exe .
I have to make a hangman game for a school project and one of
I have multimodule project. Can I make it somehow work that when calling compile
I have a project in Java and I need to make a code listing
I have a project that uses two third party libraries, both of which make

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.