Я работаю над своего рода менеджером, который позволяет определенным сотрудникам просматривать результаты опроса клиентов. Я отслеживаю IP-адреса клиентов, которые принимают участие в опросе, и отображаю этот IP-адрес сотрудникам, которые могут просматривать результаты. Я использую gridview с sqldatasource для извлечения данных из базы данных и их отображения.
Что я хотел бы сделать, это добавить кнопку или ссылку, которая берет IP-адрес и добавляет его к URL-адресу веб-сайта, чтобы отслеживать местоположение IP-адреса на карте. Я уже подписался на услугу для этого, но не знаю, как ее кодировать.
Вот мой Гридвью
<asp:GridView ID="GVnewsletterManager" runat="server" AutoGenerateColumns="False"
DataSourceID="SqlDataSource1" AllowPaging="True" AllowSorting="True"
BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
CellPadding="4" DataKeyNames="email_time" ForeColor="Black"
GridLines="Horizontal" Width="100%" PageSize="15">
<Columns>
<asp:BoundField DataField="email_time" HeaderText="Length of Email Subscription"
SortExpression="email_time" />
<asp:BoundField DataField="reason" HeaderText="Reason for Unsubscribe"
SortExpression="reason" />
<asp:BoundField DataField="other" HeaderText="Other Reason"
SortExpression="other" />
<asp:BoundField DataField="other_comments" HeaderText="Other Comments" SortExpression="other_comments"
ReadOnly="True" />
<asp:BoundField DataField="DateTime" HeaderText="Date"
SortExpression="DateTime" />
<asp:BoundField DataField="IP" HeaderText="Client IP" SortExpression="IP" />
<asp:ButtonField ButtonType="Button" Text="Trace IP to Map" />
</Columns>
<FooterStyle BackColor="#CCCC99" ForeColor="Black" />
<HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White"
HorizontalAlign="Left" />
<PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
<SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F7F7F7" />
<SortedAscendingHeaderStyle BackColor="#4B4B4B" />
<SortedDescendingCellStyle BackColor="#E5E5E5" />
<SortedDescendingHeaderStyle BackColor="#242121" />
</asp:GridView>
Заранее спасибо за помощь!