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

.NET (Core and Framework)

 
AnswerRe: Re-Index Pin
ZurdoDev30-Mar-15 4:44
professionalZurdoDev30-Mar-15 4:44 
Questioni have just in time debugging problem Pin
rafizan4629-Mar-15 23:01
rafizan4629-Mar-15 23:01 
QuestionRe: i have just in time debugging problem Pin
Richard MacCutchan29-Mar-15 23:10
mveRichard MacCutchan29-Mar-15 23:10 
AnswerRe: i have just in time debugging problem Pin
rafizan4629-Mar-15 23:19
rafizan4629-Mar-15 23:19 
QuestionRe: i have just in time debugging problem Pin
Richard MacCutchan29-Mar-15 23:25
mveRichard MacCutchan29-Mar-15 23:25 
AnswerRe: i have just in time debugging problem Pin
rafizan4629-Mar-15 23:28
rafizan4629-Mar-15 23:28 
GeneralRe: i have just in time debugging problem Pin
Richard Deeming30-Mar-15 2:13
mveRichard Deeming30-Mar-15 2:13 
GeneralRe: i have just in time debugging problem Pin
rafizan4630-Mar-15 9:17
rafizan4630-Mar-15 9:17 
Questionhow to adjust the size of drawn rectangle at runtime Pin
Member 1144146829-Mar-15 20:12
Member 1144146829-Mar-15 20:12 
AnswerRe: how to adjust the size of drawn rectangle at runtime Pin
Richard MacCutchan29-Mar-15 21:12
mveRichard MacCutchan29-Mar-15 21:12 
QuestionLooking for a thorough Iron Python tutorial. Pin
Brady Kelly24-Mar-15 23:14
Brady Kelly24-Mar-15 23:14 
AnswerRe: Looking for a thorough Iron Python tutorial. Pin
Richard MacCutchan25-Mar-15 1:59
mveRichard MacCutchan25-Mar-15 1:59 
GeneralRe: Looking for a thorough Iron Python tutorial. Pin
Brady Kelly25-Mar-15 2:05
Brady Kelly25-Mar-15 2:05 
QuestionOOPS Concepts Pin
ravitejapuladas24-Mar-15 21:35
ravitejapuladas24-Mar-15 21:35 
AnswerRe: OOPS Concepts Pin
Richard MacCutchan24-Mar-15 21:57
mveRichard MacCutchan24-Mar-15 21:57 
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 

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.