We have a weird issue last afternoon, combining two simple strings will result in an &H80070057& error. Below is how:
1. Return a comma separated nvarchar(4000) named "paras" as output from an MS SQL Server 2000 stored procedure.
2. Split that paras into four string variables named s1, s2, s3, s4
3. Server.Transfer "NotEnoughQuestion.aspx"?business_id=" + BusinessId + "&position_id=" + PositionId+ "&s1=" + s1 + "&s2=" + s2 + "&s3=" + s3 + "&s4=" + s4
And you'll have the error.
I don't understand why even by why and it returns no useful information by searching Google. However, it works by writing code this way,
Dim URL As String = "NotEnoughQuestion.aspx"
URL = URL + "?business_id=" + BusinessId
URL = URL + "&position_id=" + PositionId
URL = URL + "&missingquestions=" + QuestionIds
Server.Transfer(URL)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment