none
Como pegar o usuário que esta logado na minha pagina.aspx ? RRS feed

  • Pergunta

  • Boa Tarde

    Como eu pego o usuario que esta logado na minha pagina.aspx 

    <%@ Page language="c#" Codebehind="UserCheckoutPayment.aspx.cs" Inherits="PFWeb.UserCheckoutPayment" AutoEventWireup="false" validateRequest="false"%>
    <%@ Register src="_OrderSubTotal.ascx" tagname="_OrderSubTotal" tagprefix="uc1" %>
    <%@ Register src="_OrderTotal.ascx" tagname="_OrderTotal" tagprefix="uc1" %>
    <!-- #include file = "register.inc" -->
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
    <!-- Pageflex
         Copyright (C) 2004-2012 Pageflex
         All rights reserved.
    
    -->
    <html>
      <head>
        <title>CheckoutPayment/Window/Title</title>
        <link rel="stylesheet" href="UserSite.css.aspx" type="text/css">
      </head>
      <body class="page">
    
    <form runat="server">
    
      <asp:ScriptManager ID="ScriptManager1" runat="server" /> <PFWeb:PageHeader runat="server" PageInsertSelector="Payment" />
        <PFWeb:StepArea id="StepArea" runat="server"
            TitleText=<%# Strings.Get("CheckoutSteps/Area/Title") %>
            TitleIcon="areaIconCheckout"
            HelpTopic="CheckoutPayment"
            StepType="Payment"
            CommentText=<%# Strings.Get("CheckoutPayment/Area/Comment") %>
            >
                      <table cellpadding="0" cellspacing="0">
          <tr>
            <td style="vertical-align: top">
            
          <PFWeb:FieldFillingForm id="InputFields" runat="server" formName="Payment"
              HorizontalAlign="Left"/>
          <p id="MessageNoOptions" class="areaEmptyMessage" runat="server">
            <%# Strings.Get("CheckoutPayment/Message/NoPaymentsOptions") %>.
          </p>
          <p id="MessageNoCost" class="areaEmptyMessage" runat="server">
            <%# Strings.Get("CheckoutPayment/Message/NoPaymentsCost") %>
          </p>
          
                 </td>
            <td style="vertical-align: top">
            <table align=right border=0 cellpadding=0 cellspacing=0>
            <tr>
              <td>
                <PFWeb:LinkButton ID="LinkButtonCancelCheckout" Layout="nested" CssClass="siteButton"
                  Text=<%# Strings.Get("CheckoutSteps/Button/CancelCheckout") %>
                  Link="UserContentShoppingCart.aspx" runat="server" />
              </td>
            </tr>
          </table>
            <div id="divSubTotal" runat="server" style="padding-top:50px;padding-left:200px;">
                <uc1:_OrderSubTotal ID="ostMultiShipment" runat="server" />
                <uc1:_OrderTotal ID="otSingleShipment" runat="server" />
    
                  <script>    
                     var Valor = getCookie("VALOR_GLOBAL");
                     document.getElementById('Totallbl2').innerHTML = Valor;
                  </script>
    
                <asp:Label ID="Totallbl2" runat="server" ></asp:Label>
                
            </div>
            </td>
          </tr>
        </table>
            
        </PFWeb:StepArea>
      <PFWeb:PageFooter runat="server" PageInsertSelector="Payment" />
    
    
    </form>
    
    </body>
    </html>
    

    Aguardo retorno.

    Obrigado.

    segunda-feira, 20 de fevereiro de 2017 18:11