Postback not working in Gadget
-
Friday, August 24, 2012 5:38 AM
Hi,
I have created a custom calendar gadget where the HTML file has IFrame with the source from a Sharepoint page. The page contains only a calender (asp.net calendar rendered as webpart). The gadget is not showing previous/next month information when I click on the arrows, however If I open the HTML page individually its working fine.
Thanks,
Naveen
All Replies
-
Friday, August 24, 2012 9:56 PMThere are many things which will work in IE but not in a gadget. Without seeing the code behind the arrows it would be hard for anyone to tell which one is causing you grief.
-
Monday, August 27, 2012 7:09 AM
Hi,
There is no code behind for the arrows. It is just a simple asp.net calender. It has day render event where it checks the database for holidays and if there are any holidays, it highlights the days.
-
Monday, August 27, 2012 10:16 AMNo code?? Thought it was an asp.net web part. The arrows are inside the iframe, right ? There must be something providing the functionality for the arrows.
Did you make the web part ? Can you edit it ? -
Monday, August 27, 2012 11:58 AMYes, no code. The arrows are part of asp.net calendar not IFrame, and it requires no code (inbuilt functionality of asp.net calendar) to navigate. I've created Sharepoint webpart using asp.net calendar control where the webpart has Dayrender event to highlight the days. The only server event is Dayrender event in this webpart, as I mentioned earlier, it has code to check the records in Database and highlight the days.
-
Monday, August 27, 2012 2:35 PM
Ok, sorry - have been reading about the calendar control and am starting to understand...
So, I don't think there is anything the gadget can do to fix your problem.
But do the next and previous month links work in the gadget if you remove the Dayrender event ?
-
Monday, August 27, 2012 4:53 PM
Never mind, they don't work for me.
Links just aren't an option in iframes in gadgets (a link will try to open the page in your browser) and after playing with a calendar control it seems that none of the links in the calendar work either.
The only thing I can think of would be to absolutely position your own arrows on top of the iframe and try to use them to pass a new VisibleDate in a url parameter as a new src for the iframe. (see Request.Params)Good luck.
- Edited by mystifeid Monday, August 27, 2012 4:57 PM


