Map Tool Button Problen in 4.8.4 version

6/14/2014 7:40:17 AM
Total Posts 28

Map Tool Button Problen in 4.8.4 version

Map Tool Button not working when content page use in master page.

what's the problem ?

Please solve this issue.

 

Example : This example MapToolButton is working (WebForm1.aspx)

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebForm1" %>

<%@ Register Assembly="AspMapNET" Namespace="AspMap.Web" TagPrefix="aspmap" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <aspmap:MapToolButton ID="MapToolButton1" Map="map" MapTool="ZoomIn" runat="server" />
            <aspmap:MapToolButton ID="MapToolButton2" Map="map" MapTool="ZoomOut" runat="server" />
        </div>
        <div>
            <aspmap:Map ID="map" BorderStyle="Solid" BorderWidth="2px" BorderColor="Red" Width="722px" Height="627px" runat="server" />
        </div>
    </form>
</body>
</html>

 

 

Example : This example MapToolButton is not working (WebForm2.aspx)

<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebForm2" %>
<%@ Register Assembly="AspMapNET" Namespace="AspMap.Web" TagPrefix="aspmap" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <aspmap:MapToolButton ID="MapToolButton1" Map="map" MapTool="ZoomIn" runat="server" />
        <aspmap:MapToolButton ID="MapToolButton2" Map="map" MapTool="ZoomOut" runat="server" />
    </div>
    <div>
        <aspmap:Map ID="map" BorderStyle="Solid" BorderWidth="2px" BorderColor="Red" Width="722px" Height="627px" runat="server" />
    </div>
</asp:Content>

Master Page File:

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="gpris.Site1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
            </asp:ContentPlaceHolder>
        </div>
    </form>
</body>
</html>

 

 

 

 

 

6/14/2014 1:25:46 PM
MVP
Total Posts 323

Re: Map Tool Button Problen in 4.8.4 version

Please redownload and reinstall the AspMap 4.8.4 version.