Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        int id;
        int?pais = null;

        if (Request.QueryString["id"] != null)
        {
            id   = Convert.ToInt32(Request.QueryString["id"]);
            pais = GestorViaje.recuperarPais(id);
        }
        rpt_Viajes.DataSource = GestorViaje.BuscarPorPais(pais);
        rpt_Viajes.DataBind();
    }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         int id = 1;
         if (Request.QueryString["id"] != null)
         {
             id = Convert.ToInt32(Request.QueryString["id"]);
         }
         rpt_Viajes.DataSource = GestorViaje.BuscarPorPais(id);
         rpt_Viajes.DataBind();
     }
 }