Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

217
Views
Asynchronously update Yandex maps

The repeater receives values from the request (SqlDataSource), which changes during the search and its values change accordingly. It all happens asynchronously. Values are transferred to the repeater as follows:

<script>
function mark() {
                var markers = [
                    <asp:Repeater ID="rptMarkers" runat="server" DataSourceID="Osnova">
                        <ItemTemplate>
                            {
                                "lat": '<%# Eval("lat")%>',
                            "lagg": '<%# Eval("lagg")%>',
                            "url_mark": '<%# Eval("url_mark")%>',
                            "Name_object": '<%# Eval("Имя объекта")%>',
                            "Adress": '<%# Eval("Adress")%>' ,
                            "Number_object": '<%# Eval("Number_object")%>',
                            "Raion":  '<%# Eval("Raion")%>',
                            "District": '<%# Eval("District")%>',
                            "Tip": '<%# Eval("Tip")%>',
                            "Supervisor": '<%# Eval("Supervisor")%>'
                    }
                        </ItemTemplate>
                        <SeparatorTemplate>
                            ,
                        </SeparatorTemplate>
                    </asp:Repeater>
                ];
  }
</script>

The problem is that the "markers" array in the script does not update the values (the values from the first request remain there), although the number of rows in the repeater changes. I tried calling this function every time the update panel fires, but the values ​​still do not change:

ScriptManager.RegisterStartupScript(this, GetType(), "text", "mark()", true);
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!