Click here to Skip to main content
15,896,348 members

Comments by Member 10106656 (Top 6 by date)

Member 10106656 22-Jul-13 14:21pm View    
<script type="text/javascript">
var name;
function postSomething() {
FB.api('/me', function (response) {
function setLabelText(ID, Text) {
document.getElementById(ID).innerHTML = Text;
name = response.name;
alert(name);
}
setLabelText("Label1", response.name);


});
}


</script>

Hi this are the codes, the function is in the head.
Member 10106656 22-Jul-13 1:17am View    
Hi, Thanks for the help. But i'm using c# calendar and the calendar is link to the database. Is it possible just to disable it from the calendar itself ? because i dont quite understand the codes..
Member 10106656 22-Jul-13 1:13am View    
Thanks for your help! But the OnClientClick return null.

I think its i'm using the Facebook API/Javascript placed in the body, but not in the head.
It works on HTML hyperlinks onclick~ Pls help!
Member 10106656 26-Jun-13 1:59am View    
Sorry , but i realize that mine is visual studio 2010 . could it be the problem , if it is any solution for that ?
Member 10106656 25-Jun-13 23:33pm View    
Hi, these are the codes i inserted i changed the database path and what to display, but the outcome of it is still nothing. Hope you can help thank you.

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

public partial class Planner : System.Web.UI.Page
{
SqlConnection con = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|test.mdf;Integrated Security=True;User Instance=True");//for connection
SqlDataAdapter da;
DataSet ds = new DataSet();
protected void Page_Load(object sender, EventArgs e)
{

da = new SqlDataAdapter("select eventName from userPlanner", con);
da.Fill(ds);//we fill dataset ds from all the data of holidays table
}
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
}
protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
for (int i = 0; i <= ds.Tables[0].Rows.Count - 1; i++)
{
if (ds.Tables[0].Rows[i].ItemArray.Contains(e.Day.Date))
{
if (e.Day.Date.DayOfWeek == DayOfWeek.Saturday || e.Day.Date.DayOfWeek == DayOfWeek.Sunday)
{
e.Cell.ToolTip = ds.Tables[0].Rows[i][1].ToString();
}
else
{
e.Cell.ForeColor = Color.White;
e.Cell.BackColor = Color.Red;
e.Cell.ToolTip = ds.Tables[0].Rows[i][1].ToString();//for tooltip
}
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{

}
}