[mapguide-users] tips on invole url scripts

SteveS steve.calpoly at gmail.com
Fri Dec 30 13:27:43 EST 2011


hello,

I need an invoke url button that grabs user selection, posts to the database
to delete the selected object and then refreshes the map.

Using JS/C# I can get this to work by calling a function in the 
    
</head>
<body id="bodyID" runat="server" //necessary so tag to call RefreshMap() is
added server side.>
    <form id="form1" runat="server">
    <div>
    Text
    <asp:HiddenField ID="SESSION" runat="server" Value="1"
EnableViewState="False" />
        <asp:HiddenField ID="MAP" runat="server" Value="1"
EnableViewState="False" />
        <asp:HiddenField ID="SELECTION" runat="server" Value="1"
EnableViewState="False" />
        <input id="Button1" type="button" value="button"
onclick="DeleteMarkup();"  />
        <asp:HiddenField ID="INNERX" runat="server" Value="1"
EnableViewState="False" />
        <asp:HiddenField ID="INNERY" runat="server" Value="1"
EnableViewState="False" />
        <asp:HiddenField ID="OUTERX" runat="server" Value="1"
EnableViewState="False" />
        <asp:HiddenField ID="OUTERY" runat="server" Value="1"
EnableViewState="False" />
         <asp:SqlDataSource ID=&quot;DataSource&quot;
runat=&quot;server&quot; 
        ConnectionString=&quot;&lt;%$ ConnectionStrings:ConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName
%>">
    </asp:SqlDataSource>
    </div>
    </form>
</body>

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/tips-on-invole-url-scripts-tp7138730p7138730.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list