I am trying to pass a value as part of my link button but cannot get the "true" value to pass to the event subroutine. A portion of my ASP.Net code is, as follows:
Dim strKey as string
Dim strValue as string
strKey = "Item1"
strValue = Session(strKey).ItemID
CommandArgument="<%= Session(strKey).ItemID %>"
When I run it and look at e.CommandArguement, the value is "<%= Session(strKey).ItemID %>" instead of something like "L1234". The CommandName correctly shows "Remove". When I debug on the "strValue = Session(strKey).ItemID" line, I can see the correct value of "L1234".
Why am I not able to see the correct value for "CommandArgument" within my bttnRemove_Command subroutine?