Concatenation

I am really struglling to get my head around concatenation. Does anyone know a website that explains it really well I think I understand the basics its just when the query gets quite long that i struggle.

View Replies


ADVERTISEMENT

ASP String Concatenation Problem

i have actually obtained some keywords from javascript and i have concatenated them in the form of:

function delete_check()
{
//alert("m inside the function") Testing Purpose
var count=<%=c%>
var str = ""
alert(count)
for (xx = 1; xx <= count; xx++)
{
if(document.getElementById(xx).checked == true)
{
vals=document.getElementById(xx).value;
str= str+"@" +vals
}
}
location.href="delete_demo_submit.asp?var="+str
}
</script>

this code basically opens up a new window names delete_demo_submit.asp and i have passed a concatenated string in the format " @fghfg@dfgdf@farhan19 " as a query string. now after recieving that concatenated string i have to split that keyword by split function wrt @ sign.

now the question is ... in asp is there any function that can calculate the number of "@" signs in the string so i can easily control the loop or any other alternative and effective technique?

View Replies View Related

Error With String Concatenation

some code inside my project:
<%
atitle1 = Request.Form("title1")
atitle2 = Request.Form("title2")
response.write(atitle1)
response.write(atitle1 & atitle2)
response.write(atitle2)
%>
returns not 4 but 2 values from atitle1 and atitle2...
In a separate asp file it works fine but inside my asp-page - as I described. Maybe somebody can recognize this situation. Why does it happends? Also, set obj = Server.CreateObject("InvalidProgId") don't give an error, just skipped by compiler with any call to obj too.

View Replies View Related

Exclamation In String Concatenation

When we concatenate a huge string in ASP Forms (for the purpose of sending mails) in server side VB Script we found that an Exclamation mark is added inadvertently inside it. This Exclamation mark is being shown in different positions at different points of time.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved