Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Guest
Aug 20, 2007 Aug 20, 2007
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#
TOPICS
Server side applications
314
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 20, 2007 Aug 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 20, 2007 Aug 20, 2007
LATEST
I got it. I had to use: DATASET_ID.FieldValue("FIELD_NAME", null).ToString();
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines