G
Guest
VAR1 = 3/4
VAR2 = 2
I user can submit the values "3/4" or "2" (VAR1, VAR2 represent any numbers)
when user submits "3/4" we assume 1sthalf/2ndhalf
These values are saved into database as a row
row1: 3/4
row2: 2
I have a datagrid that displays values just fine, but user wants to beable
to click on the 3 or 4 when we have a "/" in the value.
How do I split the value when it finds a "/" ,
then create a button column(for an event) for each value. This would allow
the user to click the 3 "or" 4 in 3/4 and then i could run an event based on
what they clicked.
so,
I was thinking
<a href="p.aspx?id=1sthalf&value=3">3</a> /
<a href="p.aspx?id=2ndhalff&value=4">4</a>
I don't know how to do something like this in the data grid and/or datalist.
If it doesn't find a "/" it should assume 1sthalf.
Any ideas, hints, HELP would be GREAT!
VAR2 = 2
I user can submit the values "3/4" or "2" (VAR1, VAR2 represent any numbers)
when user submits "3/4" we assume 1sthalf/2ndhalf
These values are saved into database as a row
row1: 3/4
row2: 2
I have a datagrid that displays values just fine, but user wants to beable
to click on the 3 or 4 when we have a "/" in the value.
How do I split the value when it finds a "/" ,
then create a button column(for an event) for each value. This would allow
the user to click the 3 "or" 4 in 3/4 and then i could run an event based on
what they clicked.
so,
I was thinking
<a href="p.aspx?id=1sthalf&value=3">3</a> /
<a href="p.aspx?id=2ndhalff&value=4">4</a>
I don't know how to do something like this in the data grid and/or datalist.
If it doesn't find a "/" it should assume 1sthalf.
Any ideas, hints, HELP would be GREAT!