P
Paul W
I want to display the 'weekselector' buttons but I don't want them to issue
a PostBack when pressed (I want to execute client-side JS instead).
I inserted the following into the SelectWeekText property:
<img src='arrow.jpg' onclick='Javascript:alert("hello from weekselector")'>
The html that gets rendered is then:
<td align="Center"><a href="javascript:__doPostBack('Calendar1','1730')"
style="color:#CC9966">26</a></td>
<td align="Center" ><a href="javascript:__doPostBack('Calendar1','1731')"
style="color:#CC9966">27</a></td>
....
When I click on the selector it will execute my JS first, but then performs
the PostBack. How can I remove/nullify the PostBack? Or any other approaches
to this?
Of course just setting SelectionMode to 'Day' will not work, because then it
doesn't show the week selector at all.
Thanks,
Paul.
a PostBack when pressed (I want to execute client-side JS instead).
I inserted the following into the SelectWeekText property:
<img src='arrow.jpg' onclick='Javascript:alert("hello from weekselector")'>
The html that gets rendered is then:
weekselector")'></a></td><img src='arrow.jpg' onclick='Javascript:alert("hello from
<td align="Center"><a href="javascript:__doPostBack('Calendar1','1730')"
style="color:#CC9966">26</a></td>
<td align="Center" ><a href="javascript:__doPostBack('Calendar1','1731')"
style="color:#CC9966">27</a></td>
....
When I click on the selector it will execute my JS first, but then performs
the PostBack. How can I remove/nullify the PostBack? Or any other approaches
to this?
Of course just setting SelectionMode to 'Day' will not work, because then it
doesn't show the week selector at all.
Thanks,
Paul.