Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

How to get current user in Exchange 2007 OWA customization page?

$
0
0

Hi,all

I customize an ASPX page(smsconfig.aspx) in Exchange 2007 OWA( this file in ..\Exchange\ClientAccess\OWA\smsconfig.aspx, I don't modify registry.xml & web.config).

My Exchange 2007 OWA has been configurated with Forms-Based Auth.

https://mail.myexchange.com/owa/smsconfig.aspx The page works fine, but it cannot get current logon user with HttpContext.Current.User.Identity orUserContext.MailboxIdentity or UserContext.LogonIdentity

 

<%@ Page language="c#" AutoEventWireup="false" Inherits="Microsoft.Exchange.Clients.Owa.Core.OwaPage" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><%@ Import namespace="Microsoft.Exchange.Clients"%><%@ Import namespace="Microsoft.Exchange.Clients.Owa.Core"%><%@ Import namespace="Microsoft.Exchange.Clients.Owa.Premium"%><%@ Import Namespace="System" %><%@ Import Namespace="System.Data" %><%@ Import Namespace="System.Data.SqlClient" %><%@ Import Namespace="System.Xml" %><%@ Import Namespace="System.Collections.Generic" %><%@ Import Namespace="System.Text" %><script runat="server">
。。。(my codes in here)</script>
。。。

 

 

thanks for your help.

 


Your Passion.My Potential.

Viewing all articles
Browse latest Browse all 7132

Latest Images

Trending Articles



Latest Images