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

Comments

Anonymous said…
Hello! I just wanted to ask if you ever have any issues with hackers?
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
Anonymous said…
Magnificent goods from you, man. I have bear in mind your stuff prior to and you're just too magnificent. I actually like what you've received here,
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
Anonymous said…
Hi there to all, how is all, I think every one is getting more from this web site,
and your views are nice in favor of new visitors.

Feel free to surf to my blog post: affiliates products to promote
Anonymous said…
Do you have a spam problem on this website; I also am a blogger, and I was wanting to know your situation;
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
Anonymous said…
Greetings! Very helpful advice in this particular article!
It's the little changes that will make the biggest changes. Thanks for sharing!

My site - Best Honeymoon Packages
Anonymous said…
Your style is really unique compared to other folks I've read stuff from. I appreciate you for posting when you've got the opportunity,
Guess I'll just book mark this blog.

Here is my site ... bad credit unsecured loan
Anonymous said…
Your style is really unique compared to other folks I've read stuff from. I appreciate you for posting when you've got the opportunity, Guess I'll just book mark this blog.

Take a look at my blog: bad credit unsecured loan
My webpage - home equity Loan tax Deduction
Anonymous said…
Hey there would you mind letting me know which hosting
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
Anonymous said…
It's truly a great and helpful piece of information. I am satisfied that you just shared this useful information with us. Please keep us up to date like this. Thanks for sharing.

My blog post - beitragsentwicklung private krankenversicherung
My website: die gesetzlichen krankenkassen
Anonymous said…
Tremendous issues here. I'm very glad to see your article. Thanks a lot and I'm looking
forward to contact you. Will you please drop me a mail?


Feel free to visit my blog post: Krankenkassen ohne zusatzbeitrag
Anonymous said…
First off I want to say wonderful blog! I had a quick question that I'd like to ask if you do not mind. I was curious to know how you center yourself and clear your thoughts prior to writing. I've had trouble clearing
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
Anonymous said…
I do not even know how I ended up here, but I thought this post was good.
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
Anonymous said…
It's a pity you don't have a donate button! I'd certainly donate to this excellent blog! I guess for now i'll settle for book-marking and adding your RSS feed to my Google
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
Anonymous said…
Excellent goods from you, man. I have consider your stuff previous to and you are simply too excellent.
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
Anonymous said…
Greate pieces. Keep writing such kind of information on your page.
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
Anonymous said…
I constantly emailed this weblog post page to all my associates, as if like to read it then my contacts will too.


Also visit my website; how does clickbank work
Anonymous said…
Hmm is anyone else encountering problems with the pictures on
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
Anonymous said…
Keep on writing, great job!

My homepage; poor credit home mortgage
my page :: fast loans
Anonymous said…
Excellent weblog right here! Also your website so much up fast!
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
Anonymous said…
I am regular reader, how are you everybody? This
piece of writing posted at this site is truly fastidious.


Look into my page; krankenversicherung 2011
Anonymous said…
Superb blog! Do you have any tips for aspiring writers?
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
Anonymous said…
Today, while I was at work, my sister stole my apple ipad and tested to see if
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
Anonymous said…
Aw, this was an extremely nice post. Taking the time and actual effort to produce a superb article… but what
can I say… I put things off a lot and don't seem to get anything done.

my homepage; student Loan interest rate
Anonymous said…
Write more, thats all I have to say. Literally,
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
Anonymous said…
Hey there would you mind sharing which blog platform
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
Anonymous said…
Please, are you able to tell me couple of a lot more thinks around this, I'm seriously fan of your net log...

My web site tropical island vacation

Popular posts from this blog

Drupal - How to display webform node in a block?

Error when Installing SQL Server 2008 R2 Management Studio

Technical Team Lead Interview Questions