Showing posts with label pages. Show all posts
Showing posts with label pages. Show all posts

Monday, March 26, 2012

CallBack on ContentPageHolder

Hi everyone,

I have a Master Page called AppMaster.master And I have two aspx pages: Default.aspx and News.aspx.

On my AppMaster.master i have one Menu (top of the page) and Ads (left and right of the page). I have a ContentPlaceHolder in AppMaster. When i click on Home the page refresh and go to /Default.aspx, the same thing for /News.aspx.

I want to refresh only the content of the masterpage using callback or AJAX. I probed two methods but i can't refresh only the content. When i click news on the menu of the master page refresh only the content showing /News.aspx without postback. I used the updatepanel but it does'n work.

Can you help me please? Thanks...Confused

This is your scenario?

1) You have a master page,

2) You have two content pages that use the master page,

3) You want to refresh the UpdatePanel on the content page when someone clicks a link on the Master Page?

Check this out, and if this does not help you then let me know:http://www.ben-rush.net/blog/PermaLink.aspx?guid=d29bafbb-35f5-425e-9105-c1ddaae3b003&dotnet.

...it's possible I don't understand exactly what you're trying to do.


Option 3. I have a Menu with the MenuItemClick method.

Thank you very much...


Option 3. I have a Menu with the MenuItemClick method. It doesn't work because new MenuEventArgs doesn't work :(

Thank you very much...

Wednesday, March 21, 2012

CalendarExtender wont display the calendar.

Hello,

I have been trying to get the CalendarExtender control to work in one of my pages work several days now. I used the sample website in the toolkit as a guide. The Calendar.aspx page in the sample website works fine if I add it to my project but when I try to use the extender on one of my pages I get a Javascript error when I click on the textbox that I have attached to the extender. The error reads:

Line: 548

Char: 13

Error: 'this._popupBehavior' is null or is not an object

If anyone out there cares, I found the problem. It would seem that a different datepicker control that I was using had a conflict with the CalendarExtender. I had been using Basic Date Picker Lite because it was the best FREE control that acted like I wanted it to. Once I removed the other control the CalendarExtender worked like a champ. The CalendarExtender even offers me more flexibility than BDPLite. Anyway, I hope that my suffering means that someone else won't have to.

CalendarExtender with targetcontrol and autopostback

I just updated from build 10618 to 10920. I have two pages that use the calendarextender where the targetcontrol's autopostback property is set true. After appling the update both of these pages continue to postback has if the txtbox was changed.

Forget it... I hav searched all over the place and cannot find a solutions. I have calendarextender connected to textboxes wityh autopostback in a gridview... It does a postback on pageload for every single textbox so in case 10 rows in gridview, ten time the ontextchanged function during the first load...

CalendarExtender seems to cause loss of Session

I have a web app which passes a Session object between pages. When I added a CalendarExtender to the page, that Session object is null when I navigate to the next page, even if I never actually click on the associated ImageButton. The version number of the AjaxControlToolkit.dll is 1.0.10920, which I believe is the latest.

Any thoughts?

Thanks.

Dan

I noticed another post today about the CalendarExtender causing memory leaks in IE. Based on one of the suggestions in that thread, I tried my app in both IE7 & Firefox outside of VS. It exhibited the same problems as with IE inside VS.

Any suggestions would be greatly appreciated.

Thanks.

Dan


Hi Dhurwitz,

As we know, CalendarExtender works on the client and session works on the server side so it seems your issue is not caused by the CalendarExtender.

I suggest that we should use a discharging method. First remove the CalendarExtender from your page and have a test. Here is thedocument which shows how to resolve the session issues.

Best regards,

Jonathan