for(<%=n=2%>;<%=n%><=7;<%=n%>++) , how to make it works  
Author Message
ranadheer mac





PostPosted: ASMX Web Services and XML Serialization, for(<%=n=2%>;<%=n%><=7;<%=n%>++) , how to make it works Top

i have array of variables groups in server

<%

groups();

var n;

%>

// client side java script

<script......

for(<%=n=2%>;<%=n%><=7;<%=n%>++)

{

window.alert('<%=groupsNo%>');

}

it is not working and ifi try

window.alert('<%=groups[5]%>');

(no server ref varible in groups[ ], simple integer its working

-----------------------

if i do like this

<%

groups();

%>

<scriptt.............

var i;

var n;

for(i=2;i<=7;i++)

{

window.alert('<%=groupsIdea%>');

}

i is not recognized by server and

it works properly

with

window.alert('<%=groups[5]%>');

any ideas

ranu



.NET Development25  
 
 
Alex DeJarnatt - MSFT





PostPosted: ASMX Web Services and XML Serialization, for(<%=n=2%>;<%=n%><=7;<%=n%>++) , how to make it works Top

Hello, this forum is for questions relating to web services (.asmx) and xml serialization. You may have better luck posting your question in an asp.net forum at http://forums.asp.net/.

Thanks.

Alex