Skip to main content
August 20, 2007
질문

Using DataSet.Tables("TABLE").Rows(0)("FIELD").ToString(); with MM:DataSet

  • August 20, 2007
  • 2 답변들
  • 313 조회
Hello,

How do I reference the MM:DataSet I have defined in DW8 to get the queried data to a string? I'm trying to use DataSet.Tables("TABLE").Rows(0)("FIELD").ToString(); and I get an error: CS0104: 'DataSet' is an ambiguous reference. In other words, I'm trying to get this data <%# "DATASET_ID".FieldValue("FIELD_NAME", Container) %> to a string to use it in a variable. Any help would be appreciated! I'm using C#
이 주제는 답변이 닫혔습니다.

2 답변

August 20, 2007
I got it. I had to use: DATASET_ID.FieldValue("FIELD_NAME", null).ToString();
Inspiring
August 20, 2007
"stilmas1025" <webforumsuser@macromedia.com> wrote in message
news:facaod$ph1$1@forums.macromedia.com...
> Hello,
>
> How do I reference the MM:DataSet I have defined in DW8 to get the queried
> data to a string? I'm trying to use
> DataSet.Tables("TABLE").Rows(0)("FIELD").ToString(); and I get an error:
> CS0104: 'DataSet' is an ambiguous reference. Any help would be
> appreciated!
>

Since DataSet ia the name of the DataSet class, the error makes sense, try
giving your DataSet an id other than "DataSet".
I.e.: DataSet1

Joris