When using window.returnValue (variant) in a modal, is there a maximum length restriction to be aware of?
I have a setup where I call a modal window utilizing showModalDialog() and then retrieve a comma-separated string as a result. This string represents a selection of users that are then added to a StringBuilder for display within a literal.
Dim strReturn As New StringBuilder
strReturn.Append("<script type=""text/javascript"">window.returnValue='")
Dim strUsers As New StringBuilder
For Each dtRow As DataRow In GetSelectedUserTable.Rows
If strUsers.ToString.Length > 0 Then
strUsers.Append(",")
End If
strUsers.Append(dtRow("UserID"))
Next
strReturn.Append(strUsers.ToString)
strReturn.Append("';window.close();</script>")
litReturnJavascript.Text = strReturn.ToString
In this scenario, is there a maximum limit on the number of characters that can be included in the window.returnValue?