Click here to Skip to main content
15,892,161 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: playing video files Pin
Atif Ali Bhatti15-May-07 19:07
Atif Ali Bhatti15-May-07 19:07 
QuestionHow to make objects display while retrieving data from database Pin
Don Dang15-May-07 15:13
Don Dang15-May-07 15:13 
AnswerRe: How to make objects display while retrieving data from database Pin
Fred_Smith16-May-07 12:16
Fred_Smith16-May-07 12:16 
GeneralRe: How to make objects display while retrieving data from database Pin
Don Dang18-May-07 15:40
Don Dang18-May-07 15:40 
GeneralRe: How to make objects display while retrieving data from database Pin
Fred_Smith18-May-07 21:57
Fred_Smith18-May-07 21:57 
QuestionRun CGI application under Integrated Windows Authentication on IIS 6.0 Pin
shuchikalra15-May-07 5:30
shuchikalra15-May-07 5:30 
QuestionGerman "Umlaute" and Request.QueryString.Get [modified] Pin
Stasiak15-May-07 3:16
Stasiak15-May-07 3:16 
QuestionMaster.Page and WindowsIdentity doesn't work? [modified] Pin
Stasiak15-May-07 3:04
Stasiak15-May-07 3:04 
Hallo,

I'm trying to get the local Windows login name within a master.page or even the client page.

Here's my code.

<default.aspx>

<%@ Page Language="C#" MasterPageFile="~/FormularMasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Form_Default" Title="Test Page" %><br />
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="Server"><br />
<asp:TextBox ID="Textbox1" runat="server" Visible="true" ReadOnly="true" BorderStyle="None" BorderWidth="0" /><br />
</asp:Content><br />


<default.aspx.cs>

using System;<br />
using System.Data;<br />
using System.Configuration;<br />
using System.Collections;<br />
using System.Security;<br />
using System.Security.Principal;<br />
using System.Web;<br />
using System.Web.Security;<br />
using System.Web.UI;<br />
using System.Web.UI.WebControls;<br />
using System.Web.UI.WebControls.WebParts;<br />
using System.Web.UI.HtmlControls;<br />
<br />
public partial class Form_Default : System.Web.UI.Page<br />
{<br />
public string WinUser = "";<br />
<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
        WinUser = System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString().Substring(5); <br />
<br />
Textbox1.text = WinUser;<br />
}<br />
}

I'm starting to think that since this runs on the server, that there can be no client side information. Sigh | :sigh:

Please prove my assumption wrong. Unsure | :~

Thanks in Advance.


Dan
The Stasiak Network
QuestionAJAX Page Loading message Pin
AaronM_NZ15-May-07 0:37
AaronM_NZ15-May-07 0:37 
AnswerRe: AJAX Page Loading message Pin
badgrs15-May-07 1:21
badgrs15-May-07 1:21 
AnswerRe: AJAX Page Loading message Pin
JimmyRopes15-May-07 3:39
professionalJimmyRopes15-May-07 3:39 
AnswerRe: AJAX Page Loading message Pin
szukuro15-May-07 5:28
szukuro15-May-07 5:28 
Questionplease helpme in this Pin
Vinay Dornala15-May-07 0:11
Vinay Dornala15-May-07 0:11 
AnswerRe: please helpme in this Pin
koolprasad200315-May-07 21:09
professionalkoolprasad200315-May-07 21:09 
Questionurgent help Pin
shruthis914-May-07 21:17
shruthis914-May-07 21:17 
AnswerRe: urgent help Pin
Guffa14-May-07 21:59
Guffa14-May-07 21:59 
QuestionAnchor tags getting affected by IFrame Pin
K.P.Kannan14-May-07 3:23
K.P.Kannan14-May-07 3:23 
Questionclientside upload script Pin
dennisv.oers13-May-07 22:12
dennisv.oers13-May-07 22:12 
AnswerRe: clientside upload script Pin
kubben14-May-07 3:58
kubben14-May-07 3:58 
Questioncreate folder on remote machine Pin
Navneet Hegde13-May-07 22:09
Navneet Hegde13-May-07 22:09 
AnswerRe: create folder on remote machine Pin
Fred_Smith14-May-07 2:15
Fred_Smith14-May-07 2:15 
GeneralRe: create folder on remote machine Pin
Navneet Hegde14-May-07 18:45
Navneet Hegde14-May-07 18:45 
QuestionHow to acheive daemon functionality in c# Pin
Prajin13-May-07 19:01
Prajin13-May-07 19:01 
AnswerRe: How to acheive daemon functionality in c# Pin
badgrs15-May-07 1:25
badgrs15-May-07 1:25 
QuestionSave File To Client Pin
AnhTin13-May-07 16:41
AnhTin13-May-07 16:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.