Click here to Skip to main content
15,891,764 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
result = strOutput1 +"|"+ strOutput2 +"|" + strOutput;
var res1 = result; //string from server side

//client side
var res = res1.Split('|');
var start = res[0];
var end = res[1];
var end = res[2];


document.getElementById("").innerHTML= ""; //HOw to give var to label
Posted
Comments
Sergey Alexandrovich Kryukov 14-Aug-14 7:10am    
Which "var" to which "label".
1) You are loosing the result of var end = res[1] due to next line;
2) You cannot use id="".
—SA
Member 10949397 14-Aug-14 8:08am    
my approach is

var start = res[0];
document.getElementById('lblserverstarttime').innerHTML = start;

<asp:Label ID="lblserverstarttime" runat="server">



is this correct ..??

please help me through this

1 solution

See, for instance this code[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900