G
Guest
I do not how to include char & in a string. In C, use \&. But I do not know
how in VB.NET? any one give me hand?
I have the following error message.
David
......
Syntax error: Missing operand after ''&''prot='' operator.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.Data.SyntaxErrorException: Syntax error: Missing
operand after ''&''prot='' operator.
Source Error:
Line 85:
Line 86:
'dsResource.Tables("Resource4Spec").Columns.Add("URLQuery",
Type.GetType("System.String"), "MethodName +" & "'?pkey='" & "+ PatientKey")
Line 87:
dsResource.Tables("Resource4Spec").Columns.Add("URLQuery",
Type.GetType("System.String"), "MethodName +" & "'?pkey='" & "+ PatientKey" &
"'&'" & "'prot='" & "+ Protocol")
Line 88:
Line 89: 'binding datagrid
how in VB.NET? any one give me hand?
I have the following error message.
David
......
Syntax error: Missing operand after ''&''prot='' operator.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.Data.SyntaxErrorException: Syntax error: Missing
operand after ''&''prot='' operator.
Source Error:
Line 85:
Line 86:
'dsResource.Tables("Resource4Spec").Columns.Add("URLQuery",
Type.GetType("System.String"), "MethodName +" & "'?pkey='" & "+ PatientKey")
Line 87:
dsResource.Tables("Resource4Spec").Columns.Add("URLQuery",
Type.GetType("System.String"), "MethodName +" & "'?pkey='" & "+ PatientKey" &
"'&'" & "'prot='" & "+ Protocol")
Line 88:
Line 89: 'binding datagrid