samsmithnz
Well-known member
Hi, Ive been converting a conversion function from the internet today from C# to VB.NET. Im pretty close, but I have two lines Im not sure about, and I was wondering if anyone could help. The lines in question are:
The C# code line 1:
This is what I have... what are the $$ supposed to be, its coming up as a syntax error
The C# code line 2:
This is what I have... the \ in the last part (\"onChange\") is throwing an error, whats wrong here then?
Sorry this post is so wide...
The C# code line 1:
Code:
selectHtml = selectHtml + "; parent.ShowLookupAdditionalInfo(\""+ HttpUtility.HtmlAttributeEncode(TextFieldId) + "\",\""+ "$$ADDITIONALINFO$$" +"\")";
Code:
selectHtml = selectHtml + "; parent.ShowLookupAdditionalInfo(\""+ HttpUtility.HtmlAttributeEncode(TextFieldId) + "\",\""+ "$$ADDITIONALINFO$$" +"\")"
The C# code line 2:
Code:
selectHtml = selectHtml + "; parent.document.all(\""+ HttpUtility.HtmlAttributeEncode(TextFieldId) + "\").fireEvent(\"onChange\");";
Code:
selectHtml = selectHtml + "; parent.document.all(\""+ HttpUtility.HtmlAttributeEncode(TextFieldId) + "\").fireEvent(\"onChange\");"
Sorry this post is so wide...
Last edited by a moderator: