471,086 Members | 1,188 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

BC30518: Overload resolution failed because no accessible 'ToString' can be called with these arguments:

What am I doing wrong?

the code:
age Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1"
%>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls"
Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,culture=neutral"
%>
<MM:DataSet
id="SSF2Pinky"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%#
System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING_dbPurchaseOrder")
%>'
DatabaseType='<%#
System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABASETYPE_dbPurchaseOrder")
%>'
CommandText='<%# "SELECT PurchaseID FROM dbo.PurchaseOrders WHERE SSF =
@SSF" %>'
Debug="true"

<Parameters>
<Parameter Name="@SSF" Value='<%#
IIf((Request.QueryString("GetPurchase") <> Nothing),
Request.QueryString("GetPurchase"), "") %>' Type="Char" />
</Parameters>
</MM:DataSet>
<MM:PageBind runat="server" PostBackBind="true" />

<%# Response.Redirect("PurchaseSummarySSF.aspx?GetPurc hase="&
SSF2Pinky.FieldValue("PurchaseID",Container))%>

the error:

Line 18: <%# Response.Redirect("PurchaseSummarySSF.aspx?GetPurc hase="&
SSF2Pinky.FieldValue("PurchaseID",Container))%>
:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.1.4322\vbc.ex e"
/t:library /utf8output
/R:"c:\winnt\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseser vices.dll"
/R:"c:\winnt\assembly\gac\system.web\1.0.5000.0__b0 3f5f7f11d50a3a\system.web.dll"
/R:"c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c 561934e089\system.dll"
/R:"c:\winnt\assembly\gac\system.web.services\1.0.5 000.0__b03f5f7f11d50a3a\system.web.services.dll"
/R:"c:\winnt\assembly\gac\system.xml\1.0.5000.0__b7 7a5c561934e089\system.xml.dll"
/R:"c:\winnt\microsoft.net\framework\v1.1.4322\temp orary asp.net
files\root\2135a508\8d69a834\assembly\dl2\d5eaba03 \00387041_c973c301\dreamweaverctrls.dll"
/R:"c:\winnt\assembly\gac\system.drawing\1.0.5000.0 __b03f5f7f11d50a3a\system.drawing.dll"
/R:"c:\winnt\assembly\gac\system.web.mobile\1.0.500 0.0__b03f5f7f11d50a3a\system.web.mobile.dll"
/R:"c:\winnt\assembly\gac\system.data\1.0.5000.0__b 77a5c561934e089\system.data.dll"
/out:"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Te mporary ASP.NET
Files\root\2135a508\8d69a834\thrje9k1.dll" /D:DEBUG=1 /debug+
"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary ASP.NET
Files\root\2135a508\8d69a834\thrje9k1.0.vb"
Microsoft (R) Visual Basic .NET Compiler version 7.10.6310.4
for Microsoft (R) .NET Framework version 1.1.4322.2300
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.

c:\inetpub\wwwroot\PurchaseOrders\ssfconvert.aspx( 18) : error BC30518:
Overload resolution failed because no accessible 'ToString' can be
called with these arguments:
'Public Shared Function ToString(value As String) As String':
Expression does not produce a value.
'Public Shared Function ToString(value As Date) As String':
Expression does not produce a value.
'Public Shared Function ToString(value As Decimal) As String':
Expression does not produce a value.
'Public Shared Function ToString(value As Double) As String':
Expression does not produce a value.
'Public Shared Function ToString(value As Single) As String':
Expression does not produce a value.
'Public Shared Function ToString(value As System.UInt64) As
String': Expression does not produce a value.
'Public Shared Function ToString(value As Long) As String':
Expression does not produce a value.
'Public Shared Function ToString(value As System.UInt32) As
String': Expression does not produce a value.
'Public Shared Function ToString(value As Integer) As String':
Expression does not produce a value.
'Public Shared Function ToString(value As System.UInt16) As
String': Expression does not produce a value.
'Public Shared Function ToString(value As Short) As String':
Expression does not produce a value.
'Public Shared Function ToString(value As Byte) As String':
Expression does not produce a value.
'Public Shared Function ToString(value As System.SByte) As String':
Expression does not produce a value.
'Public Shared Function ToString(value As Char) As String':
Expression does not produce a value.
'Public Shared Function ToString(value As Boolean) As String':
Expression does not produce a value.
'Public Shared Function ToString(value As Object) As String':
Expression does not produce a value.

target.SetDataBoundString(0,
System.Convert.ToString(Response.Redirect("Purchas eSummarySSF.aspx?GetPurchase="&
SSF2Pinky.FieldValue("PurchaseID",Container))))

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

May 24 '06 #1
0 2137

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Eph0nk | last post: by
5 posts views Thread by Gang Zhang | last post: by
4 posts views Thread by Kevin Burton | last post: by
1 post views Thread by =?Utf-8?B?QU1lcmNlcg==?= | last post: by

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.