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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Soft CornerPosted May 2, 2011, 8:06 AM
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
}
Revathi MurugesanPosted May 2, 2011, 9:43 AM
Soft CornerPosted May 2, 2011, 8:50 AM
Ok, might be something is wrong in your application. I have example for this. Check out attached code.
Revathi MurugesanPosted May 2, 2011, 8:37 AM
Abhimanyu K VatsaPosted May 2, 2011, 7:54 AM
hope this helps
Revathi MurugesanPosted May 2, 2011, 7:32 AM
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.
Soft CornerPosted May 2, 2011, 5:33 AM
Your question is not clear. Is it a web or windows application?
FroglegPosted May 2, 2011, 5:19 AM
private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
{
MessageBox.Show("I clicked datetimepicker");
}
Not sure if this is what you want