Click to See Complete Forum and Search --> : Determine ascx code label value


ISMAILC
04-18-2009, 12:39 PM
Good day, not sure what to do.

I have an ascx page with the code displaying the user logged in, i created an iframe src displaying a report but i want to add the logged in id as parameter but can't determine the code value.

ascx page code

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


the iframe report i add & add the user parameter to the label's lblLogon value.

<IFRAME id="frame1" src="http://biweb/reportserver?&User=lblLogin"</IFRAME>


Please Assist, totally lost

chazzy
04-18-2009, 06:42 PM
what does your codebehind look like?

ISMAILC
04-20-2009, 09:01 AM
Thank You - i don't know or have the codebehind.
But i know it returns the value from the DB "Welcome {0}"

and the config file also uses this: {0}
so i tried:

<IFRAME id="frame1" src="http://biweb/reportserver?&User={0}"</IFRAME>


No luck, and i gues i'm in a real mess.

I'm think of trying to seach the PC registry for the user logged on using javascript (might have to post in javascript forum)

Any ideas!

scottrickman
04-23-2009, 10:40 AM
See my reply to your second post