Log in

View Full Version : Pass Windows User (domain\userid) to report url in ASCX page



ismailc
04-20-2009, 03:21 PM
Good day, This is linked to my previous post.

I want to display the Windows user logged on to the PC (domain\userid) and add to the report URL.

I have searched:


<% Response.Write(Request.ServerVariables("AUTH_user")) %>


Now i want to display & add to url:


<%@ Control Language="c#" AutoEventWireup="True" Codebehind="Header.ascx.cs" Inherits="FlowCentric.Net.Navigator.Header" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<table><tr>
<td><asp:Label id="lblLogin" runat="server">We</asp:Label></td>
</tr></table>

<IFRAME id="frame1" src="http://biweb/reportserver?&User= <% Request.ServerVariables("AUTH_user") %>"></IFRAME>

<% Response.Write(Request.ServerVariables("LOGon_user")) %> <!-- this does not work


Please Assist!