Click here to Skip to main content
15,945,603 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am using asp.net i want to retrieve the data within the excel file without pressing any button the code which retrieves the data from the excel file is in c# so how do i call my server side method from client side as soon as the file is being uploaded from the client side
can any one tell me how do i achieve it .
Posted

1 solution

For that you have to use jQuery ajax functionality.It's like below(get method).You can retrieve or post data into server without post back the whole page.

PHP
$("a#runSample1").click(function() {
       $.get("GetServerTime.aspx", function(response) {
           alert(response);
       });
   });


For more info check this :

Using jQuery for AJAX in ASP.NET

Using jQuery for AJAX in ASP.NET[^]

I hope this will help to you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900