15,896,348 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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)
{
}
}
Member 10106656
24-Jun-13 10:36am
View
Hi, how do i customize my own database in , because i changed the details but still it cant work. could you help ? thank you.
Show More