Problem regarding returning dataset
Tech-Archive recommends: Fix windows errors by optimizing your registry
Date: Tue, 14 Sep 2004 22:43:01 -0700
i am working on smartdevice application and using window CE.net emulator.I am
returning a dataset from a webservice( code is given below).when i debug the
application in emulator there is no data present in the dataset,where as when
i debug the webservice there is data present in the dataset.
code of webservice:
[WebMethod]
public DataSet GetTransactionDetails(string card_no)
{
SqlConnection myConnection = new
SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"]);
string encrptedcardno=Security.Encrypt(card_no);
string myquery="Select Transaction_time,Amount from Transactions where
Card_no='"+encrptedcardno+"'";
SqlDataAdapter DA=new SqlDataAdapter(myquery,myConnection);
myConnection.Open();
DataSet DS=new DataSet();
DA.Fill(DS,"Transactions");
return DS;
}
Code from the application
Service1 ser=new Service1();
DataSet ds=ser.GetTransactionDetails(CardDetails.getCardNumber());
TransactionGrid.DataSource=ds.Tables["Transactions"];
Relevant Pages
- RE: How do degub aspx page when loaded from winforms app.
... it does support you to step through into webservice from ... client proxy project, however it is specific to ASP.NET webservice rather ... if you also have aspx pages that need to debug at the ... Microsoft MSDN Online Support Lead ... (microsoft.public.dotnet.framework.aspnet) - Re: Cant get CF APP to find my Webservice in 2005
... My webservice project is set to use IIS, ... The startup project in the solution is the PPC app. ... I manually start the Device Emulator Manager and connect/cradle (I hate ... If I need to debug into the webservice, then I set a breakpoint in the ... (microsoft.public.dotnet.framework.compactframework) - Re: How to debug a WebMethod
... in the same solution I have a WebService and a Client that calls the WebService; I need to debug a WebMethod of the service and I've correctly set a break point, but I can't step into it... ... you set the timeout for the Web service to be infinity -- never times-out. ... Otherwise, you'll be in the middle of debug, and the Web service will timeout on you with the session being lost. ... (microsoft.public.dotnet.languages.csharp) - Re: How to debug a WebMethod
... in the same solution I have a WebService and a Client that calls the WebService; I need to debug a WebMethod of the service and I've correctly set a break point, but I can't step into it... ... you set the timeout for the Web service to be infinity -- never times-out. ... Otherwise, you'll be in the middle of debug, and the Web service will timeout on you with the session being lost. ... (microsoft.public.dotnet.languages.csharp) - Re: UnauthorizedAccessException by activating integrated authentification
... > I develop a webservice, which will be used by a small vba access client. ... > I enabled only basic authentification in IIS and access the webservice via ... > I can't debug the webservice with basic-authentification. ... (microsoft.public.dotnet.framework.aspnet.security) |
|