Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Feb 24, 2008 22:13
open dhtmlx forum
coro

I am trying to access the value field which could be 1,2,3,4,5,6 or 7 depending on the selected day mon,tue,..sun using request["day"] on the server side. But the problem is that i get the day names instead of the ids. How can i get the ids instead of the name?

<column width="75" id="day" type="coro" align="left" sort="str">Day
while (DataReader.Read())
{
<option value="" + DataReader["dayID"] + "">" + DataReader["DayName"] + "</option>
}

Answer posted by Support on Feb 25, 2008 07:38
get text label of option
    grid.cells(i,j).getText()
get ID behind the text
    grid.cells(i,j).getValue()

where i,j - row id and column index of cell in question