Try our conversational search powered by Generative AI!

UpdatePanel goes to wrong url

Vote:
 

I'm on the url www.mysite.com/sv/MINA_SIDOR/verkanmalan_upphovsman

and click a button that triggers an update panel, which then tries to go to www.mysite.com/sv/MINA_SIDOR/verkanmalan_upphovsman/VerkPageManus.aspx

Obviously this breaks since there's no such physical path.

How can I debug this?

#75613
Oct 01, 2013 10:44
Vote:
 

Adding the App_Browsers directory seems to have solved it. It was missing.

Could someone explain why it solved the problem?

#75615
Oct 01, 2013 11:36
Vote:
 

Not sure why it solved the problem but i know that episerver use an browser-file that should be in that folder the files should look something like this:

 

<browsers>
  <browser refID="Default">
    <controlAdapters>
      <adapter controlType="System.Web.UI.HtmlControls.HtmlHead" adapterType="EPiServer.UI.WebControls.ControlAdapters.HtmlHeadAdapter" />
      <adapter controlType="System.Web.UI.HtmlControls.HtmlForm" adapterType="EPiServer.WebControls.ControlAdapters.HtmlFormAdapter" />
    </controlAdapters>
  </browser>
</browsers>

    

#75621
Oct 01, 2013 15:12
Vote:
 

Yup but what does that file do? :)

#75622
Oct 01, 2013 15:13
Vote:
 

If i understand correctly EPiServer will change the default to beeing a episerver htmlhead instead of ordinary .net. And this is done by the adapter. It might be cause of the rightclick menu etc. not sure though

This blogpost they change some defaultproperties of episerver via a controladapter: http://blog.mathiaskunto.com/2012/03/05/being-friends-with-the-propertycontrolclassfactory-or-101-ways-to-change-episerver-built-in-property-appearances/

#75623
Oct 01, 2013 15:27
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.