473,386 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

CS0121 error

Ok, I'm REALLY confused. I'm new to C# and i am getting an error that has be
throughly mystified.

CS0121: The call is ambiguous between the following methods or properties:
'DreamweaverCtrls.DataSet.FieldValue(string,
System.Web.UI.WebControls.DataListItem)' and
'DreamweaverCtrls.DataSet.FieldValue(string,
System.Web.UI.WebControls.DataGridItem)'

Has anyone else run across this? I am simply attempting to assign a value to
a drop-down & radio group control upon entering a page.

I can post code if it will be of use.
Nov 16 '05 #1
2 2477
Noah J wrote:
Ok, I'm REALLY confused. I'm new to C# and i am getting an error that has be
throughly mystified.

CS0121: The call is ambiguous between the following methods or properties:
'DreamweaverCtrls.DataSet.FieldValue(string,
System.Web.UI.WebControls.DataListItem)' and
'DreamweaverCtrls.DataSet.FieldValue(string,
System.Web.UI.WebControls.DataGridItem)'

Has anyone else run across this? I am simply attempting to assign a value to
a drop-down & radio group control upon entering a page.

I can post code if it will be of use.

It would help if you could show the line of code you're having a problem
with.

On a hunch, do you have something like this:

....FieldValue("SomethingHere", null) <-- null is what I'm looking for

If you do, try specifying the type:

....FieldValue("SomethingHere", (DataListItem)null);

or similar, might work...

--
Lasse Vågsæther Karlsen
http://www.vkarlsen.no/
mailto:la***@vkarlsen.no
PGP KeyID: 0x0270466B
Nov 16 '05 #2
Here are the two lines in question:

<% drpTopicType.SelectedIndex =
drpTopicType.Items.IndexOf(drpTopicType.Items.Find ByValue(dsEditNews.FieldValue("NewsType", null) )); %>
&
<% rdoHotTopic.SelectedIndex =
rdoHotTopic.Items.IndexOf(rdoHotTopic.Items.FindBy Value(dsEditNews.FieldValue("NewsSticky", null) )); %>

From what you wrote, I assume I should try it like this:

<% drpTopicType.SelectedIndex =
drpTopicType.Items.IndexOf(drpTopicType.Items.Find ByValue(dsEditNews.FieldValue("NewsType", (DataListItem)null) )); %>

Well, that prevented the error, but those two fields are now not showing the
incomming value fields, nor are they performing the updated when changed.

Any ideas would be most welcome.

"Lasse Vågsæther Karlsen" wrote:
Noah J wrote:
Ok, I'm REALLY confused. I'm new to C# and i am getting an error that has be
throughly mystified.

CS0121: The call is ambiguous between the following methods or properties:
'DreamweaverCtrls.DataSet.FieldValue(string,
System.Web.UI.WebControls.DataListItem)' and
'DreamweaverCtrls.DataSet.FieldValue(string,
System.Web.UI.WebControls.DataGridItem)'

Has anyone else run across this? I am simply attempting to assign a value to
a drop-down & radio group control upon entering a page.

I can post code if it will be of use.

It would help if you could show the line of code you're having a problem
with.

On a hunch, do you have something like this:

....FieldValue("SomethingHere", null) <-- null is what I'm looking for

If you do, try specifying the type:

....FieldValue("SomethingHere", (DataListItem)null);

or similar, might work...

--
Lasse Vågsæther Karlsen
http://www.vkarlsen.no/
mailto:la***@vkarlsen.no
PGP KeyID: 0x0270466B

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
5
by: Tony Wright | last post by:
Hi, I am having a problem installing an msi for a web site. The error message I am getting is: "The specified path 'http://mipdev05/features/Fas2' is unavailable. The Internet Information...
1
by: Aravind | last post by:
we have two files: 1. rc4.c (defines one function "create_pin()") 2. MyImpl.c(calling the function "create_pin()"),This implements JNI method. 1.When I am trying to create .dll file with one...
1
by: yanwan | last post by:
I met this problem in executing a c++ project in visual studio. Does anyone have suggestions to resolve "error lnk 2001"? --------------------Configuration: reconstruction - Win32...
5
by: Enos Meroka | last post by:
Hallo, I am a student doing my project in the university.. I have been trying to compile the program using HP -UX aCC compiler, however I keep on getting the following errors. ...
13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.