How to Use the .htaccess File

The .htaccess file is a small and powerful tool that controls many aspects of your website. It is possible to modify your Apache configuration on a per-domain and even a per-directory level by it. Many systems including TomatoCart rely on .htaccess files for configuring your site. Things like redirects, enabling compression, rewriting urls for seo, enabling client caching and more can be achieved by adding some code to this little file. But, some general users may don’t know how to use it. So, I will describe it in great details in this article.

Where to find the .htaccess file? Learn More

Tags: , , , , | Posted under TomatoCart | 6 Comments

Using AJAX to Send Multipart Form

In my continuing detailed blogs in reference to Issues when trying to use multipart form data with jquery ajax forms, I want to talk about using AJAX to send Multipart forms. Although you might think that sending multipart data is the akin to sending data using Jquery and web.api, you would be very wrong. In many ways it is more difficult. In the simplest explanation, processing a multipart form is like building the data transport between the client and the server from scratch. Most of the time you could just put the field names and values in a JSON syntax or something similar and just pass it to the server for processing. However; with multipart forms you are not only sending the additional attributes but you are sending an actual file. This means that your server side web service, api, or MVC must get the object in a way that it can understand both the attributes and the file. Learn More

Tags: , , , , , , , | Posted under ASP .NET 4.0, Programming/Coding | Leave a comment