Calendar Event click
In calendar control on click of date how to cal pop up window
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Soft CornerRank #1,221 · 1.5K reputationPosted May 2, 2011, 4:06 AM EDT
As abhi explained you is correct & follow that, here is the code how u can do that :
1. Generate SelectionChanged event for Calendar :
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
//here u can see i have called WebForm2 page & passed selected date
ClientScript.RegisterStartupScript(GetType(), "Script", "");
}
2. on WebForm2 page
fetch selected date in page load :
string date;
protected void Page_Load(object sender, EventArgs e)
{
date = Request.QueryString["Date"];
// now use this date to bind your data to grid
}
FroglegRank #1,020 · 1.9K reputationPosted May 2, 2011, 1:19 AM EDT
private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
{
MessageBox.Show("I clicked datetimepicker");
}
Not sure if this is what you want
Soft CornerRank #1,221 · 1.5K reputationPosted May 2, 2011, 1:33 AM EDT
Your question is not clear. Is it a web or windows application?
Revathi Murugesan31 reputationPosted May 2, 2011, 3:32 AM EDT
I'm having monthly calendar in my form. On click of date new pop up window has to be open. There i'm displaying data in grid. In calendar User can click on any date according to that popup window should load with data.
Abhimanyu K VatsaRank #14 · 51.7K reputationPosted May 2, 2011, 3:54 AM EDT
hope this helps
Revathi Murugesan31 reputationPosted May 2, 2011, 4:37 AM EDT
Soft CornerRank #1,221 · 1.5K reputationPosted May 2, 2011, 4:50 AM EDT
Ok, might be something is wrong in your application. I have example for this. Check out attached code.
Revathi Murugesan31 reputationPosted May 2, 2011, 5:43 AM EDT