Hi, I want to trigger if the user did a double click or a click on the dayview control. If this happend I have to fill up a variable in the session object. How to get this event server side in den aspx code behind? I try to use the propertie event window of the dayview control but I get only the client side jscript event. Is there no server side event? If it is so, how can I feel up my session object and decide if there was a click on a exsiting appointment or on a free space in the dayview in jscript?
thx in advance
regards tim mischkin
Yeah he nailed it there. Sorry I wasn't very discriptive in my posting. You can do exactly that then have your Code behind on the page load event handle the things to need to do with that appointment.
if you pass the key to the hidden field then you can get the appointment object from the key
I think he was refering to something along these lines when he was talking about hidden field, this would cause a postback (server side event to fire) and still be in the same session.<style type='text/css'>.HideObject{display:none;)</style>
<script type='text/javascript'>function EventClick(){//use clientevents of webschedule dialogopening and cancel.document.getElementById('eventinfo').value = 'information about event';__doPostBack('eventTrigger.ClientID', '');}</script>
<input type='hidden' id='eventinfo' runat='server' value='' /><asp:LinkButton runat="server" ID="eventTrigger" Text="" CssClass="HideObject"></asp:LinkButton>
in code behind sub for onclick for eventTriggermyvalue = eventInfo.value write session information with myvalue / or parse it up and do more with it.end sub for onclick
Is redirecting to another page not going to work for you or can you do it and make the program work the way it needs to because I'm afraid clicking on an appointment in the webdayview will not trigger any sort of server side event.
There are some sort of server side events on the day view but none of which are able to work with the appointment object.
Though if you are able to redirect to another page and make it work you can pass the values needed as a Query instead of a session or hidden value.
sorry but your solution don't work.I have to store information about the click in the calendar in my session variables.like which day, which time and so on.If I use a html hidden input there is no server side event which will be fired on value change or something like this. If I use a asp hidden field there is a server side event called value change but this won't be firedalso.In a summary I can say after redirect to another page I lost all information in cause of I'm not ableto can't safe them in my session object and to do this I need a indicator which trigger server side with all information about the calendar click to fill up the session object.