Exemplo n.º 1
0
    protected void lnkConfirm_Command(object sender, CommandEventArgs e)
    {
        Session["CurrentTab"] = "1";
        string aid = FormattingHelper.EncryptQueryString(e.CommandArgument.ToString().Trim());

        Response.Redirect("~/web/auctions/confirmauctionevent.aspx?aid=" + aid);
    }
Exemplo n.º 2
0
    protected void gvAuctionEvents_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            LinkButton lnkARN         = (LinkButton)e.Row.FindControl("lblAuctionEvents");
            HyperLink  lnkParticipate = (HyperLink)e.Row.FindControl("lnkParticipate");

            string qs = FormattingHelper.EncryptQueryString(lnkARN.CommandArgument);

            string url = String.Format("javascript:onclick=showWindow('onlineauctionpopup.aspx?qs={0}', '{1}');", qs, lnkARN.CommandArgument);
            lnkParticipate.NavigateUrl = url;
        }
    }