how to retrieve data using web services in asp.net pls give
me the code and explain me briefly
Answers were Sorted based on User's Feedback
To retrieve data from a web service first make method in
web service that query to the database and retrieve data
and return Dataset or the data type which you want to
retrieve (But web service can only return integer, string,
arrays, enum, xmlNode, Dataset etc). Make a proxy class for
your web service using VS or wsdl.exe. Now just make a
client class, make an object instance of web service in
your client class, and call the web method using this
object. I think now you can design code according to your
need.
| Is This Answer Correct ? | 5 Yes | 3 No |
Answer / kumar
(1)create a method in webservice as
[WebMethod]
public string AccBalanceAgingSummary(string FilterBy)
{
DataAccess.Report.DailyReport daDailyReport = new
DataAccess.Report.DailyReport();
return daDailyReport.AccBalanceAgingSummary
(FilterBy);
}
(2)
| Is This Answer Correct ? | 0 Yes | 1 No |
What are the server controls in asp.net?
What is the difference between application state and caching?
Explain how can we inherit a static variable?
Explain the boxing and unboxing concept in .net?
Explain automatic memory management in .net.
What is the main function of razor in asp.net? : asp.net mvc
You ve defined one page_load event in aspx page and same page_load event in code behind how will prog run?
To bind columns manually which tags do you need to add within the asp:datagrid ?
What are the Difference between asp.net and asp ?
How to disable validator control by client side JavaScript?
In a page there is dropdown list with the name of the cities like Bangalore,Pune,Chennai,Other and a text box that would enable the user to enter the name of the city if other is selected. How to enable validation on the text box if other is selected
What are session cookies?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)