S
Sam
I would like to display username on web page via User.Identity.Name using MS
VisualStudio.Net 2003 but it is show nothing.
However, when I use Web Matrix, it show the username on web page.
What's wrong the coding or do I need settings at MS VisualStudio.Net 2003 ?
Coding
-------
<%@ import Namespace="System" %>
<%@ Page Language="vb" EnableViewState="false" EnableSessionState="false"
CodeBehind="main_menu.aspx.vb" AutoEventWireup="false"
Inherits="Purchasing.main_menu" %>
<script runat="server">
Sub Page_Load()
If User.Identity.IsAuthenticated Then
displayCredentials.Text = "User Login : <b>" &
User.Identity.Name.ToUpper() & "</b>"
End If
End Sub
</script>
VS.Net 2003 References
--------------------------
I had added the following at the solution :
- system
- system.configuration.install
- system.data
- system.drawing
- system.security
- system.web
- system.xml
Please help and advise.
VisualStudio.Net 2003 but it is show nothing.
However, when I use Web Matrix, it show the username on web page.
What's wrong the coding or do I need settings at MS VisualStudio.Net 2003 ?
Coding
-------
<%@ import Namespace="System" %>
<%@ Page Language="vb" EnableViewState="false" EnableSessionState="false"
CodeBehind="main_menu.aspx.vb" AutoEventWireup="false"
Inherits="Purchasing.main_menu" %>
<script runat="server">
Sub Page_Load()
If User.Identity.IsAuthenticated Then
displayCredentials.Text = "User Login : <b>" &
User.Identity.Name.ToUpper() & "</b>"
End If
End Sub
</script>
VS.Net 2003 References
--------------------------
I had added the following at the solution :
- system
- system.configuration.install
- system.data
- system.drawing
- system.security
- system.web
- system.xml
Please help and advise.