Fullcalendar: back to selected date after postback -
How can I return the question about jquery plugin fullcalendar, the date I chose after postback? ..
For example, I have the week's agenda as the default view, suppose I choose the next week (custom week) and make an event in it. I return to the default week after postback, but I have to get a custom week.
How can this issue be resolved? .. help please! Thanks
Javascript can get value from a property, so enter the value in the session state before the postback. Drag asset from state to post on postback. Get value from client then property
Server side:
public string bar {get; Set; } Secure zero Page_Load (Object Sender, EventArgs E) {if (IsPostBack) bar = session ["barvalue"]. ToString (); }
Client side:
$ (document) .ready (function () {var foo = '& lt;% = bar% & gt; '; Warning (foo);});
Comments
Post a Comment