Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" Title="Untitled Page" %>
<script runat="server">
Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand
Select Case e.CommandName
Case "Select"
GridView1.SelectedIndex = e.CommandArgument
Dim index As Integer = Convert.ToInt32(e.CommandArgument)
' Retrieve the row that contains the button clicked
' by the user from the Rows collection.
Dim row As GridViewRow = GridView1.Rows(index)
' Create a new ListItem object for the customer in the row.
Dim Laciudad, Idciudad As String
Laciudad = Server.HtmlDecode(row.Cells(2).Text)
Idciudad = Server.HtmlDecode(row.Cells(1).Text)
Response.Redirect("Propuesta_p2.aspx?laciudad='" & Laciudad & "'&idciudad='" & Idciudad & "'")
End Select
End Sub
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<br />
<img src="Images/PrimerPaso.png" style="position: static" /><br />
<br />
<br />
<span style="font-size: 11pt; font-family: Tahoma">Seleccione el prospecto al cual desea
generar la consulta:</span><br />
<br />
<br />
<center>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" DataKeyNames="IdCiudad" DataSourceID="SqlDataSource1"
Style="position: static">
<Columns>
<asp:CommandField ShowSelectButton="True" />
<asp:BoundField DataField="IdCiudad" HeaderText="IdCiudad" InsertVisible="False"
ReadOnly="True" SortExpression="IdCiudad" />
<asp:BoundField DataField="Descripcion" HeaderText="Descripcion" SortExpression="Descripcion" />
</Columns>
</asp:GridView>
<br />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SIPConnectionString %>"
DeleteCommand="DELETE FROM [Ciudad] WHERE [IdCiudad] = @IdCiudad" InsertCommand="INSERT INTO [Ciudad] ([Descripcion]) VALUES (@Descripcion)"
SelectCommand="SELECT * FROM [Ciudad]" UpdateCommand="UPDATE [Ciudad] SET [Descripcion] = @Descripcion WHERE [IdCiudad] = @IdCiudad">
<DeleteParameters>
<asp:Parameter Name="IdCiudad" Type="Int16" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="Descripcion" Type="String" />
<asp:Parameter Name="IdCiudad" Type="Int16" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="Descripcion" Type="String" />
</InsertParameters>
</asp:SqlDataSource>
</center>
</asp:Content>