A New Internet Library: Add Your Website/Blog or Suggest A Website/Blog to our Free Web Directory http://anil.myfunda.net.

Its very simple, free and SEO Friendly.
Submit Now....

Tuesday, July 22, 2008

UpdatePanel and Frames causes full page postback

My company is just starting to venture into Ajax and we are running into an issue.

The site is an original ASP 1.1 written in VB6 converted to visual studio 2003 VB.net and then converted to ASP.net 2.0 VB 2005.

There is a default.aspx page with 1 frameset and 2 frames. The first frame loads the upper navigation and the second frame loads the entire content of the page the user wants to see.

So say the user clicks a link that directs them to hello.aspx -- there is a javascript function that goes to default.aspx and loads the top nav in the first frame and hello.aspx in the second. I have my scriptmanager, updatepanel, and triggers on hello.aspx. The updatepanel is set to conditional and it references an asp.net image button as it's trigger.

When I click the button instead of just the update panel posting back, the entire page refreshes and I've tested it with a <%=Date.now%> both inside and outside the update panel so I know it's not just the page flickering.

I've already removed the xhtmlconformancy tag from the web.config file as it was set to legacy

It still doesn't work

If I remove the page from the frameset the update panel works just fine -- so I know it's not comming from the web.config

And I cannot use a masterpage and rewrite the entire site, which would most likely solve my entire problem.

I need to know WHY a frame is not allowing the updatepanel to work properly.

I receive no error, no warning, nothing to point me in the correct direction.

Suggestions/Thoughts would be most helpful

 

Thanks!



Read Full article Here.

No comments:

Post a Comment

Post your comments here:

Originals Enjoy