R
Ray Booysen
Hi all
I have a function that generates some HTML for a literal control.
The code is simply:
public string RenderCalendar( string ControlID)
{
return "<span id=\"" + "cal_" + ControlID + "\" onclick=\"DoCalendar('"
+ ControlID + "');\">...</span>";
}
It simply adds the characters "..." to the literal control and onclick
opens a new window via DoCalendar() in javascript.
However, when rendered the id of the span is removed! Is there any
reason why ASP.NET would remove the ID tag from the span?
Kind Regards
Ray
I have a function that generates some HTML for a literal control.
The code is simply:
public string RenderCalendar( string ControlID)
{
return "<span id=\"" + "cal_" + ControlID + "\" onclick=\"DoCalendar('"
+ ControlID + "');\">...</span>";
}
It simply adds the characters "..." to the literal control and onclick
opens a new window via DoCalendar() in javascript.
However, when rendered the id of the span is removed! Is there any
reason why ASP.NET would remove the ID tag from the span?
Kind Regards
Ray