Click here to Skip to main content
15,938,022 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my application i am using page method to get some data My javascript code is
PageMethods.ProductFillFileUploadDetails(, GetFileuploadDetails_onSuccess, GetFileuploadDetails_onFail);

and the c# code is
protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)

       DataTable dt = bindgrid();
       this.RadGrid1.DataSource = dt;

   public static string ProductFillFileUploadDetails(string DistibutorId)
       DataServiceBase objdal = new DataServiceBase();
       DataTable dtpricingrule = new DataTable();
       dtpricingrule = objdal.Getdata("SELECT* from XXXX));
       string UploadDetails = dtpricingrule.Rows[0][0].ToString() + "," + dtpricingrule.Rows[0][1].ToString();
       return UploadDetails;

the above code working fine in locall
but return entire web page Remote server please help me any one.
thanks by Meganathan.M
Updated 23-Oct-13 5:50am
thatraja 23-Oct-13 10:36am    
:'( what's the error?
[no name] 24-Oct-13 7:35am    
How are you calling the webmethod...through jquery Ajax ? Please show some jquery code..
meganathanm 25-Oct-13 23:50pm    
i am clling the webmethod by following javascript code

PageMethods.ProductFillFileUploadDetails(, GetFileuploadDetails_onSuccess, GetFileuploadDetails_onFail);
meganathanm 25-Oct-13 23:51pm    
i need UploadDetails string values but in client side return whole html page as return value of web method

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