R
rc
Hello,
Trying to place a textbox for each day inside a calendar control using code
triggered from the RenderDay method to fill each cell.
The following code, using a standard HTML input box, works fine:
//
Sub Cal_RenderDay(s as object, e as DayRenderEventArgs)
e.cell.text="<center><b>" & Day(e.day.date) & "</b><BR><INPUT
NAME='Day" & Day(e.day.date) & "'
MAXLENGTH='5' SIZE='3' ></center>"
end sub
//
However, if I try to replace the HTML textbox with an asp:textbox, like
this:
//
Sub Cal_RenderDay(s as object, e as DayRenderEventArgs)
e.cell.text="<center><b>" & Day(e.day.date) & "</b><BR><asp:textbox
id='Day" & Day(e.day.date) & "' columns='3' maxlength='5'
runat='server'/></center>"
end sub
//
the calendar looks fine, but no text boxes rendered.
Any insight would be helpful.
Thank you
Trying to place a textbox for each day inside a calendar control using code
triggered from the RenderDay method to fill each cell.
The following code, using a standard HTML input box, works fine:
//
Sub Cal_RenderDay(s as object, e as DayRenderEventArgs)
e.cell.text="<center><b>" & Day(e.day.date) & "</b><BR><INPUT
NAME='Day" & Day(e.day.date) & "'
MAXLENGTH='5' SIZE='3' ></center>"
end sub
//
However, if I try to replace the HTML textbox with an asp:textbox, like
this:
//
Sub Cal_RenderDay(s as object, e as DayRenderEventArgs)
e.cell.text="<center><b>" & Day(e.day.date) & "</b><BR><asp:textbox
id='Day" & Day(e.day.date) & "' columns='3' maxlength='5'
runat='server'/></center>"
end sub
//
the calendar looks fine, but no text boxes rendered.
Any insight would be helpful.
Thank you