Click here to Skip to main content
15,888,181 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: OOPS Concepts Pin
ravitejapuladas24-Mar-15 22:01
ravitejapuladas24-Mar-15 22:01 
GeneralRe: OOPS Concepts Pin
Richard MacCutchan24-Mar-15 22:48
mveRichard MacCutchan24-Mar-15 22:48 
GeneralRe: OOPS Concepts Pin
ravitejapuladas24-Mar-15 23:45
ravitejapuladas24-Mar-15 23:45 
GeneralRe: OOPS Concepts Pin
Richard MacCutchan25-Mar-15 1:54
mveRichard MacCutchan25-Mar-15 1:54 
GeneralRe: OOPS Concepts Pin
PIEBALDconsult27-Mar-15 15:53
mvePIEBALDconsult27-Mar-15 15:53 
QuestionWhat Is Different Between WCF and Web API? Pin
Er. Pradeep Kumar Rai19-Mar-15 19:29
Er. Pradeep Kumar Rai19-Mar-15 19:29 
AnswerRe: What Is Different Between WCF and Web API? Pin
Dave Kreskowiak20-Mar-15 2:36
mveDave Kreskowiak20-Mar-15 2:36 
Generalaspx file: Operator '&' is not defined for string Pin
Member 1153636718-Mar-15 8:07
Member 1153636718-Mar-15 8:07 
OK - I'm pulling my hair out trying to figure this out. I'm saving my file as an aspx file.


My error message is Operator '&' is not defined for string.

Here's my code:
*******************
VB
dim sOutput1
dim sOutput2
dim sOutput3

strconnect = ("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" & server.mappath(dbName))

dbconn = server.createobject("ADODB.connection")

dbconn.open(strconnect)

selAll = "SELECT * FROM PH_Stf_Dist2 ORDER BY dept, [last name] " 'sort by last name then first name

qresults = dbconn.execute(selAll)

sOutput1 = "<td> <input type='text' name=DEPT maxlength = '4' value="

sOutput2 = qresults("DEPT")

soutput3 = "></td>"
			
Response.write (sOutput1 & soutput2 & soutput3)

***************

I have broken it down so I could see exactly where the error occurs (soutput3). This worked in .asp; but .aspx is not working..Confused | :confused: Confused | :confused: Confused | :confused: Confused | :confused:

Actual error page:

Operator '&' is not defined for string " ")
Line 102: Response.Write (" ")


Source File: E:\Websites\cwa\Intranet Home\PhoneDirectory\phone_directory.aspx Line: 100

Stack Trace:

Any help would be MUCH appreciated!
Confused | :confused:

modified 18-Mar-15 14:54pm.

GeneralRe: aspx file: Operator '&' is not defined for string Pin
Dave Kreskowiak18-Mar-15 8:13
mveDave Kreskowiak18-Mar-15 8:13 
GeneralRe: aspx file: Operator '&' is not defined for string Pin
Member 1153636718-Mar-15 8:48
Member 1153636718-Mar-15 8:48 
GeneralRe: aspx file: Operator '&' is not defined for string Pin
Dave Kreskowiak18-Mar-15 9:09
mveDave Kreskowiak18-Mar-15 9:09 
GeneralRe: aspx file: Operator '&' is not defined for string Pin
Eddy Vluggen18-Mar-15 8:26
professionalEddy Vluggen18-Mar-15 8:26 
GeneralRe: aspx file: Operator '&' is not defined for string Pin
Member 1153636718-Mar-15 8:45
Member 1153636718-Mar-15 8:45 
GeneralRe: aspx file: Operator '&' is not defined for string Pin
Richard Deeming18-Mar-15 10:04
mveRichard Deeming18-Mar-15 10:04 
AnswerRe: aspx file: Operator '&' is not defined for string Pin
Member 1153636718-Mar-15 10:21
Member 1153636718-Mar-15 10:21 
GeneralRe: aspx file: Operator '&' is not defined for string Pin
F-ES Sitecore18-Mar-15 10:22
professionalF-ES Sitecore18-Mar-15 10:22 
GeneralRe: aspx file: Operator '&' is not defined for string Pin
Brilliant Bastard18-Mar-15 19:31
Brilliant Bastard18-Mar-15 19:31 
QuestionLooking for guidance in building a responsive WPF GUI for a Windows Service. Pin
Brady Kelly14-Mar-15 1:10
Brady Kelly14-Mar-15 1:10 
AnswerRe: Looking for guidance in building a responsive WPF GUI for a Windows Service. Pin
Eddy Vluggen14-Mar-15 5:13
professionalEddy Vluggen14-Mar-15 5:13 
GeneralRe: Looking for guidance in building a responsive WPF GUI for a Windows Service. Pin
Brady Kelly14-Mar-15 5:46
Brady Kelly14-Mar-15 5:46 
GeneralRe: Looking for guidance in building a responsive WPF GUI for a Windows Service. Pin
Eddy Vluggen16-Mar-15 9:14
professionalEddy Vluggen16-Mar-15 9:14 
GeneralRe: Looking for guidance in building a responsive WPF GUI for a Windows Service. Pin
Brady Kelly16-Mar-15 9:33
Brady Kelly16-Mar-15 9:33 
GeneralRe: Looking for guidance in building a responsive WPF GUI for a Windows Service. Pin
Eddy Vluggen16-Mar-15 9:57
professionalEddy Vluggen16-Mar-15 9:57 
GeneralRe: Looking for guidance in building a responsive WPF GUI for a Windows Service. Pin
Brady Kelly16-Mar-15 10:14
Brady Kelly16-Mar-15 10:14 
GeneralRe: Looking for guidance in building a responsive WPF GUI for a Windows Service. Pin
Eddy Vluggen16-Mar-15 10:33
professionalEddy Vluggen16-Mar-15 10:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.