M
marcwentink
Is there a way to turn off depreacted warnings in Visual Studio 2005,
Professional Edition? I've got this VB project ported from version 2003
to 2005, I am a bit cautious to already changing the code that much
that it could not be ported back, but I got a few hundred warnings
saying things like:
'Public Function Add(parameterName As String, value As Object) As
System.Data.SqlClient.SqlParameter' is obsolete: 'Add(String
parameterName, Object value) has been deprecated. Use
AddWithValue(String parameterName, Object value).
http://go.microsoft.com/fwlink/?linkid=14202'
and a few warning between them I would really interested in.
The other frequent warnings I got are:
'Public Function GetPostBackEventReference(control As
System.Web.UI.Control) As String' is obsolete: 'The recommended
alternative is ClientScript.GetPostBackEventReference.
'Public Overridable Sub RegisterClientScriptBlock(key As String, script
As String)' is obsolete: 'The recommended alternative is
ClientScript.RegisterClientScriptBlock(Type type, string key, string
script).
Marc Wentink
Professional Edition? I've got this VB project ported from version 2003
to 2005, I am a bit cautious to already changing the code that much
that it could not be ported back, but I got a few hundred warnings
saying things like:
'Public Function Add(parameterName As String, value As Object) As
System.Data.SqlClient.SqlParameter' is obsolete: 'Add(String
parameterName, Object value) has been deprecated. Use
AddWithValue(String parameterName, Object value).
http://go.microsoft.com/fwlink/?linkid=14202'
and a few warning between them I would really interested in.
The other frequent warnings I got are:
'Public Function GetPostBackEventReference(control As
System.Web.UI.Control) As String' is obsolete: 'The recommended
alternative is ClientScript.GetPostBackEventReference.
'Public Overridable Sub RegisterClientScriptBlock(key As String, script
As String)' is obsolete: 'The recommended alternative is
ClientScript.RegisterClientScriptBlock(Type type, string key, string
script).
Marc Wentink