How to get Ajax webmethods to work on Sitecore
Recently I created webmethods on my aspx page and called them using jquery ajax. But they returned a 401 error message.
after further investigation using Fiddler I realized that Site core intercepting the ajax calls and throwing error messages.
Once I found this, the idea was to stop sitecore from intercepting the ajax request.
To do this, I tracked the setting node called "IgnoreUrlPrefixes" in web.config and added the webpage name which contained the webmethods. The IgnoreUrlPrefixes node tells sitecore to ignore the urls (separated by pipe).
So my web.config read as
<setting name="IgnoreUrlPrefixes" value="/sitecore/default.aspx|/trace.axd|pagewhichcontainswebmethod.aspx</setting>
Happy coding
So my web.config read as
<setting name="IgnoreUrlPrefixes" value="/sitecore/default.aspx|/trace.axd|pagewhichcontainswebmethod.aspx</setting>
Happy coding
Comments
My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no data backup.
Do you have any methods to stop hackers?
Take a look at my weblog ... private krankenversicherung günstiger als gesetzliche
My website - private krankenversicherung füR äRzte
really like what you are saying and the way in which in which you assert it.
You make it entertaining and you still take
care of to keep it smart. I can not wait to learn far more from you.
That is really a great web site.
My web site: kredit ohne schufa sofortzusage
and your views are nice in favor of new visitors.
Feel free to surf to my blog post: affiliates products to promote
we have created some nice practices and we are looking to swap solutions with other folks, be sure to shoot
me an e-mail if interested.
Check out my page - web hosting prices
It's the little changes that will make the biggest changes. Thanks for sharing!
My site - Best Honeymoon Packages
Guess I'll just book mark this blog.
Here is my site ... bad credit unsecured loan
Take a look at my blog: bad credit unsecured loan
My webpage - home equity Loan tax Deduction
company you're working with? I've loaded your blog in 3 different browsers and
I must say this blog loads a lot quicker then most.
Can you recommend a good internet hosting provider at a reasonable price?
Kudos, I appreciate it!
Here is my homepage - Need a business Idea
My blog post - beitragsentwicklung private krankenversicherung
My website: die gesetzlichen krankenkassen
forward to contact you. Will you please drop me a mail?
Feel free to visit my blog post: Krankenkassen ohne zusatzbeitrag
my mind in getting my thoughts out there. I do take pleasure in writing but it just seems like the
first 10 to 15 minutes are lost simply just trying to figure out how to
begin. Any recommendations or hints? Cheers!
my webpage outlet center online
I do not know who you are but certainly you're going to a famous blogger if you are not already ;) Cheers!
My blog post: help consolidating student loans
Also see my site :: consolidation private student loans
account. I look forward to brand new updates and will talk about this website with my Facebook group.
Chat soon!
my web page ... kredit auch schufa
I actually like what you have received here, really
like what you're saying and the way in which wherein you assert it. You're making it entertaining
and you continue to take care of to keep it sensible.
I can not wait to read much more from you. This is actually a great website.
Feel free to surf to my homepage resellers web hosting
Im really impressed by it.
Hi there, You have performed a great job. I'll definitely digg it and for my part suggest to my friends. I am sure they will be benefited from this web site.
Feel free to surf to my web page: can i get A mortage With bad credit
Also visit my website; how does clickbank work
this blog loading? I'm trying to find out if its a problem on my end or if it's the blog.
Any responses would be greatly appreciated.
Look into my site; leistungsvergleich krankenkassen
my web site :: krankenversicherung 2011
My homepage; poor credit home mortgage
my page :: fast loans
What web host are you the usage of? Can I get your associate link in your host?
I desire my web site loaded up as quickly as yours lol
Here is my website: best stay at home jobs for women
piece of writing posted at this site is truly fastidious.
Look into my page; krankenversicherung 2011
I'm hoping to start my own website soon but I'm a little lost on everything.
Would you propose starting with a free platform like Wordpress
or go for a paid option? There are so many options out there that
I'm totally overwhelmed .. Any ideas? Thanks!
Feel free to visit my web site: how to create a clickbank product
Also see my web site - best selling clickbank products
it can survive a 30 foot drop, just so she can be a youtube sensation.
My iPad is now destroyed and she has 83 views.
I know this is totally off topic but I had to share it with someone!
my webpage - Suggested Site
can I say… I put things off a lot and don't seem to get anything done.
my homepage; student Loan interest rate
it seems as though you relied on the video to make your point.
You definitely know what youre talking about, why waste your intelligence on
just posting videos to your weblog when you could be giving us something informative to read?
Have a look at my page cancun all inclusive packages
you're using? I'm planning to start my own blog soon
but I'm having a tough time deciding between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then most blogs and I'm looking for
something completely unique. P.S My
apologies for being off-topic but I had to ask!
Feel free to surf to my website: search engine promotion
My web site tropical island vacation
https://englishmanchesterescorts.co.uk/
https://escortsfortoday.co.uk/
https://adultprofileescorts.co.uk/
https://localescortsnews.co.uk/
https://secretsofcity.co.uk/
https://vivaposts.co.uk/