コード例 #1
0
ファイル: AdminDash.aspx.cs プロジェクト: EmiSan1998/GuidaWeb
 /*Alla pressione del pulsante URL relativo a una pagina il programma mostra a video l'URL della pagina statica richiesta*/
 protected void GridView4_OnRowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "getURL")
     {
         URLs.Visible = true;
         URLs.Text    = "URL Richiesto: " + UrlHelp.GetBaseUrl() + "/Page.aspx?Id=" + ((GridView4.Rows[Convert.ToInt32(e.CommandArgument)].Cells[0].Text).Trim()).Replace(" ", "%20");
     }
 }
コード例 #2
0
ファイル: AdminDash.aspx.cs プロジェクト: EmiSan1998/GuidaWeb
        /*protected void LinkButton1_Click(object sender, EventArgs e)
         * {
         *  FormsAuthentication.SignOut();
         * }
         *
         * protected void Button3_Click(object sender, EventArgs e)
         * {
         *  FormsAuthentication.SignOut();
         * }*/

        /*Alla pressione del pulsante URL relativo a una scheda il programma mostra a video l'URL della scheda richiesta
         * che potrà essere usato ad esempio in un codice QR o in un tag NFC.*/
        protected void GridView3_OnRowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "getUrlS")
            {
                URLs.Visible = true;
                URLs.Text    = "URL Richiesto: " + UrlHelp.GetBaseUrl() + "/Schede.aspx?Id=" + GridView3.Rows[Convert.ToInt32(e.CommandArgument)].Cells[0].Text;
            }
        }