473,320 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How do I get sub procedure to know what cell was clicked in my asp:Table cell?

I learned how to make a asp:Table with 88 cells with each cell having the name of a constellation and the cell has a number from 1 to 88 in it and that is what gets sent to the Sub procedure.
It worked fine with javascript but I want to learn asp.net/vb.net but now I am unable to communicate with the sub procedure in codebehind.
I coded the sub as [Sub DisplayContellations(selection)] where selection is the number that the cell has so I can tell which cell was clicked on.
I used [tempCell.Text = "<a href='#' onclick = ' DisplayConstellations(" & cellNum+1 & ")' runat='server' >" & ConName(cellNum+1) & "</a>"]
not like I did in javascript except I don't include [javascript:DisplayConstellations(" & cellNum+1 & ")]before the sub's name as it is a vb.net sub not javascript.
I am at a standstill now as I haven't found how to get the Sub to receive the selection from the selected cell.
Dec 22 '15 #1
0 1132

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: TT (Tom Tempelaere) | last post by:
Hi, How can I know if a cell in a DataGrid is being edited? Thanks, -- Tom Tempelaere.
6
by: EMW | last post by:
How can I detect on which cell the user has clicked on a datagrid webcontrol? rg, Eric
0
by: JamesB | last post by:
Hello, This seems like it should be simple - on the double-click event of a tablelayoutpanel, I want to know which cell was double clicked in. I can't see any of the properties that look relevant...
2
by: johnnyG | last post by:
I've tried this approach but it's not quite what I want: Private Sub DataGrid1_ItemDataBound(ByVal sender As Object, _ ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) _ Handles...
1
by: sank06 | last post by:
Hi, I need to drag and drop the contents of a cell in to another cell. Thanks in advance. Sanks
1
by: K B | last post by:
I would like to create a gridview as below: Project Name 1-1 1-2 1-3 1-4 1-5 1-6 Project 1 BLUE BLUE BLUE BLUE GREEN GREEN more projects I would like to fill the...
7
by: PGPS | last post by:
Hi, I want to know who all clicked a particular link (cgi-script) on any website. 1. Link points to my own webserver 2. Link can be sent anyway. Either emailed or posted on a site which needs...
1
by: TC | last post by:
I'm confused about the proper way to shut down my application. I have a form which instantiates a control, which instantiates another control, which instantiates yet another control that runs a...
1
by: Gary Lundeen | last post by:
cell "H" = 54, cell "I" = 14. What is 54 divided by 14? 3.85 correct? not 12. what am i doing wrong?
0
by: qwerty9988 | last post by:
I have a datagrid that lists documents: Document Name, User Name, Date. When a user clicks on the row of the document it opens in word, excel, etc. The datagrid also has a delete command column. ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.