C# :: WebMethod Can't See DataSet
Nov 16, 2014
I'm trying to create a web service that uses a dataset called dsPeople, but it doesn't seem to know where it is, and gives me a directive/namespace error underneath it where it occurs. Do I need to declare it somewhere or something?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Data;
using System.Data.OleDb;
namespace WebServiceTest
[code]....
View 5 Replies
May 16, 2014
what I need to do is load a dataset with the most recent record for each item in the database table. Each item has an ID, location ID and date along with some numeric data. the item ID, location ID, and date is referenced in each record of the table. So each item will have multiple records with different dates that could be anything. To make things worse there may be the same item in multiple locations. and each locations items most recent record needs to loaded in to the dateset and then displayed in a data grid. At a later time there will be a location sort as well so only items in a particular location or group of locations will be loaded. More question on the data grid to come.
View 3 Replies
View Related
Aug 6, 2014
I'm trying to pass one dataset's result as a variable in another stored procedure and this is what I have so far:
DataSet dsID = StoredProcedures.GetID((int)Session["TypeID"]);
int IDValue = Convert.ToInt32(dsID.Tables[0].Rows[0]["ID"]);
DataSet dsRequest = StoredProcedures.GetRequest(IDValue);
But I get the error: cannot implicitly convert to system.dataset.
View 1 Replies
View Related
Nov 26, 2013
Data is not getting updated in dropdownlist using data set:
protected void SpecificationNameDropDownList_SelectedIndexChanged(object sender, EventArgs e) {
if (SpecificationNameDropDownList.SelectedItem.Text != null) {
SpecificationValueLabel.Visible = true;
SpecificationValueDropDownList.Visible = true;
[code].....
View 1 Replies
View Related
Dec 17, 2014
Following is my xml file called PropertyInfo.xml :-
<?xml version="1.0" encoding="utf-8" ?>
<PropertyInformation>
<locations>
<location name="Bombay">
[Code].....
In above LoadPropertyInfo() method, how to cast DataSet to List<Location> locations before returning "locations" ?
View 2 Replies
View Related
Mar 30, 2012
Code:
class CUser {
public:
CUser();
~CUser();
protected:
std::string firt_name;
std::string last_name;
[Code] .....
How would I go about shrink the duplicate data set from CWorksheetTwo? For CWorksheetTwo has both CUser and CUserEx, and I only need CUserEx, and all other classes are happy with CUser
Since there is no such thing virtual variable what are my choices? In CWorksheetTwo set users to NULL and use another exclusively? Change CSettings variable to template <class T> std::vector<T>users?
View 6 Replies
View Related