Question on passing a array as a argument to a Javascript function

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hello,
Im trying to pass a array as a argument to a Javascript function from code behind(vb.net)
Code im trying
private boundaries(,) as string
page load
if not ispostback
<span style="font-size:x-small btnSubmit.Attributes.Add(<span style="font-size:x-small; color:#a31515 <span style="font-size:x-small; color:#a31515 "onClick"<span style="font-size:x-small ,
<span style="font-size:x-small; color:#a31515 <span style="font-size:x-small; color:#a31515 "createMap("<span style="font-size:x-small & boundaries &
<span style="font-size:x-small; color:#a31515 <span style="font-size:x-small; color:#a31515 " )"<span style="font-size:x-small )
<span style="font-size:x-small <span style="font-size:x-small end if
<span style="font-size:x-small <span style="font-size:x-small end sub
<span style="font-size:x-small <span style="font-size:x-small private function getboundaries()
<span style="font-size:x-small <span style="font-size:x-small code which will get the boundaries
<span style="font-size:x-small <span style="font-size:x-small Return boundaries
<span style="font-size:x-small <span style="font-size:x-small End sub
<span style="font-size:x-small <span style="font-size:x-small Error im getting....
<span style="font-size:x-small <span style="font-size:x-small operator & is not defined for types string and 2 dimensional array of string
<span style="font-size:x-small <span style="font-size:x-small
<span style="font-size:x-small <span style="font-size:x-small ... I heard somewhere that if im passing a string array then I will have to use the Index Instead... If so,, How do I do that?
<span style="font-size:x-small <span style="font-size:x-small

View the full article
 

Similar threads

Back
Top