Author: ravidhya | Posted on: 9/9/2008 7:55:46 PM | Views : 400

my requirement is to upload a file, save it in the project folder and process it to get some datas and save data as array and pass array to javascript...
At present,    i used web.services.webmethod in .aspx.cs file (getcoordinates).  in javascript on upload btn click,i call a function on the javascript (callgetcoordinates) which in turn calls the webmethod written in .aspx.cs page. in callgetcoordinates method i pass callgetcoordinatessucess and callgetcoordinateserror as arguments. function callgetcoordinatessucess gets returned array from webmethod. If the call has some error, then it will call callgetcoordinateserror method to display the error.
 i write the returned array in one <div> tag...
here are the codes
in .aspx.cs file
public partial class FileUpload : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }
&nbs ...

Go to the complete details ...