B
Bruce W..1
When someone clicks on a day in my Calendar control I want to postback
to the same page but with information in a querystring, different for
each day. Rather than posting back twice by using its SelectionChanged
event I want to do it the first time.
I've tried adding links and javascript in the Calendar's DayRender event
like this:
string x = "<a href=\"default.aspx?topic=" +
ViewState["topic"].ToString() +
"date=" + myDate + "</a>";
e.Cell.Attributes.Add("OnClick", x);
But maybe I'm just not doing it right.
It seems in the 1.0 Framework that the Calendar controls will postback
first (to the same page) no matter what. Is there a way I can change
the querystring on the client side?
Thanks for your help.
to the same page but with information in a querystring, different for
each day. Rather than posting back twice by using its SelectionChanged
event I want to do it the first time.
I've tried adding links and javascript in the Calendar's DayRender event
like this:
string x = "<a href=\"default.aspx?topic=" +
ViewState["topic"].ToString() +
"date=" + myDate + "</a>";
e.Cell.Attributes.Add("OnClick", x);
But maybe I'm just not doing it right.
It seems in the 1.0 Framework that the Calendar controls will postback
first (to the same page) no matter what. Is there a way I can change
the querystring on the client side?
Thanks for your help.