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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • John Alexander
    New Member
    • Dec 2011
    • 38

    #1

    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 DisplayContella tions(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 = ' DisplayConstell ations(" & cellNum+1 & ")' runat='server' >" & ConName(cellNum +1) & "</a>"]
    not like I did in javascript except I don't include [javascript:Disp layConstellatio ns(" & 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.
    Last edited by John Alexander; Dec 22 '15, 04:21 AM. Reason: left out []
Working...