Hi
Im using the free full calendar written in j query (http://arshaw.com/fullcalendar/)
I use it for a planning of each employee.I want to affect color for item by each employee.
I added in a jquery file that lines:
var couleur = $('span.color').text();
$('span.color').hide();
and in the page that contain the calendar :
<div id="calendar" runat="server">
<span id="span1" class="color" runat="server" >red</span>
</div>
and in the code behind :
protected void Page_Load(object sender, EventArgs e)
{
//CalendarEvent cevent;
DataTable dt = new DataTable();
SqlConnection con2 = new SqlConnection("Data Source=PC;Initial Catalog=base;Persist Security Info=True;User ID=sa;Password=hhh");
SqlCommand cmd = new SqlCommand("select couleur_planning from cadres where prénom='maher'", con2);
cmd.CommandType = CommandType.Text;
// con2.Open()
SqlDataAdapter adp = new SqlDataAdapter(cmd);
adp.Fill(dt);
span1.InnerText ="";
span1.InnerText = dt.Rows[0]["couleur_planning"].ToString();
}
but it doesnt work