Question: I need to post a text file to a remote PC. I know of one way which is to setup a ftp server on remote PC but i want to map a drive of remote PC to my computer and then post the file there using C#. In other words i want to know how can i share a folder on remote PC with my computer so i can post a file there using C#.

I want to know how network drive mapping is done

Answer: 
Yes, if you want to make an AJAX request, you probably want to use a javascript framework. ASP.NET MVC ships with JQuery, so this example assumes you have JQuery all ready to rock.

```
<button id="MyButton" />

<script type="text/javascript">
    // This will bind a javascript event handler to the button(s) identified
    // by the CSS selector #MyButton.
    //
    // You could also use the onclick event in the <input> element to 
    // say, call a javascript function... but this couples the HTML to
    // the Javascript logic in a way that is less maintainable as things
    // get more complex.
    $("#MyButton").click(function () {

        // $ is a global reference to JQuery. This instantiates and executes
        // a JQuery request using the browsers native request object (different
        // browsers do this slightly differently, this is why you need a 
        // framework like JQuery to write Javascript productively)
        $.ajax(

            // This is the URL back to an ASP.NET controller\action that will handle the event.
            url: "{controller}/{action}",

                            // This is a callback function that will execute when the round trip completes.
            success: function (response) {
                alert("server response: " + response);
            }
        );
    });
</script>

```

Welcome to the world of web programming. <http://api.jquery.com/jQuery.ajax/>
Have a look at [knockoutJS](http://knockoutjs.com/), it's MVVM design pattern should be familiar from your WPF experience.