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

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -