How To Display Full Name After Logged In (Session )
Sep 22, 2010
After login, i have create a session to display the Username of the logged user, however instead of display the Username, i want to display the Full_Name of the logged user
However i have no idea how it dones...
PersonUser Table
P_ID (PK) =1
Username =lucy88
Password =88ycul
Full_Name = Lucy
User_Type =Admin
Login.aspx - as i do session, it will display lucy88 however i would like to display Full_Name which is Lucy.
View 4 Replies
Similar Messages:
Nov 11, 2010
I want to display logged-in user's Full Name & Avatar on the asp.net(C#) master page.
let me know any feedback on how to do that?
View 1 Replies
May 7, 2015
I use the code, to display the file that I saved in the database.the question is: why the file can not be performed with a full screen.
protected void View(object sender, EventArgs e)
{
int peraturan_id = int.Parse((sender as LinkButton).CommandArgument);
Session["peraturan_id"] = peraturan_id;
ClientScript.RegisterStartupScript(this.GetType(), "open", "window.open('file_view.aspx','_blank' );", true);
}
[Code] ....
View 1 Replies
Jan 30, 2011
I'm building a web application: some pages will be accessible by non logged-in users (demo and sign-up pages) and others will only be accessible by logged-in users (actual application). In the global.asax file, I'm currently handling the session start event by loading some variable from a query that's based on the UserID. What will happen when a non-logged in user looks at a page? I guess my question is really about how to handle the session start event when it's a logged-in user, when it's not and when a user logs in. I want a certain number of queries to run only once per session, after the user logged in.
View 2 Replies
Jul 2, 2010
My 3.5 app uses Forms Authentication. I create an authentication cookie (ticket) with an expiration date of one day. The cookie's IsPersistent is set to True. I do not use any session variables. Session timeout is the default 20 minutes.
Here's the problem:
When the session times out in 20 minutes, the user is redirected to the logon page even though the authentication cookie has not expired.
Why does this happen? I thought the session and the cookie were independent of each other.
View 3 Replies
Jul 29, 2010
I new to .aspx and now the thing is since i am doing a web enabled project, I have this login from an user. I drag dropped the login template and then used the
Session["Authentication"] = username.Tostring();
to store the current logged user's info and so. Now i even used a hyperlink "Logout" at the top right corner and then made it transfer to Login page.
Now if on running the web , i can easily login , but when i logout through hyper link "logout" it will take me to the Login page again, but if i press the back button of the browser it again transfers the control to the data page and i can again perform the data operation's.
I used this
Session["Authenticate"] = null
at the page load of the login page so that only at the login button click the user can enter again by
Session["Authenticate"] = username.Tostring();
Then i used a check at each page load of the data pages
if(Session[Authentiacte"] == null)
Server.Tranfer("LoginPage.aspx");
View 1 Replies
Mar 26, 2011
I created asp.net application on alumni information database.After logged in it redirects to page i wish but the problem is the page i am redirected is not holding the user logged information. it just simply showing as annonymus user.
View 5 Replies
May 12, 2010
My web application uses forms authentication. One of my users who uses IE8 says that she always stays logged into the website on her computer. This is even after she closes the browser window and restarts the computer. This only happens on her computer, if she switches computers the same thing won't happen.
I'm baffled by this. Is there a setting in IE that could save her login information and automatically sign her in every time she accesses the website? Is there anything else to look into?
View 5 Replies
May 10, 2010
I am working on a asp.net 3.5 app. In the Global.asax in the Application_Error method, I am logging everthing to ddatabase (log4Net).
I have a session limit of 20 minutes. What happens when the user hits that limit and then clicks on the Submit Button of the app. ?Will that generate any exception? and will that exception be logged into my database as I am logging all exceptions in my Application_Error method.
View 3 Replies
Jun 1, 2010
Can anyone tell me how to detect when a users session has exipred in asp? I want to redirect users to a logged out page once the session has expired.
View 3 Replies
Jan 28, 2011
I'm wondering if it's possible to perhaps set something up in the global.asx file or something that will build a list of all currently active user sessions that I can then use to display to a logged in user, who else is currently logged in.
Currently I store my userId's in a session variable Session["IsLoggedIn"], so basically i want to build an global array of some sort that will store all these active userId's.
Let me know if this is possible, or who i would go about accomplishing this sort of thing. BTW, I'm not using asp.net's built in membership thing for login accounts.
View 1 Replies
Oct 27, 2010
it is possible to change dynamically the session time for currently logged user. I'm communicating with a WebService which does a long-running task, and while the it sends the final response, I don't want the user to be logged out.
View 2 Replies
Aug 22, 2010
My page is logging out in 20 minutes. I want my page should not be logged out for 60 mins.
View 4 Replies
Dec 26, 2010
i want to generate the new sessionid in the same httpcontext once the user is successfully authenticated.so, how can i do that ? ( please dont ask why do you want it, i got such kind of requirement).
View 3 Replies
Dec 2, 2010
I was not able to find the post. I am building an MVC app and on the master page I want to display the user that is logged into the workstation. This is just an internal app so we were just going to use
AD authentication. I am not sure how ISS will be configured on the anonymous or impersionate part so I did this line of code in the master page
<%=Environment.GetEnvironmentVariable("USERNAME") %>
Is this proper and the best way or should I look for a better way. I know this is generic but just curious.
View 2 Replies
Feb 2, 2011
i want to know how expire the session after certain period of time which has been created once the customer logged in to the page
View 3 Replies
Jan 13, 2010
i have a login form where it validates 'username' and 'password' against a datbase table. After a user logs in, i would like to show their details such as image, name, etc in a detailsview.
View 16 Replies
Jun 8, 2010
am making a MyAccount page and want to display only the details of the logged in user and the previous Orders the logged in user made.
View 8 Replies
Mar 22, 2011
I new to ASP.net and have created the registration form and login using the wizzard. This data is now stored in the relevent tables provided by asp. I also have created an extra table with profile information like address, phone number etc and a USer ID field that links with the aspnet_users table.
I am trying to display the details of the user when they log in so for example...
User logs on, clicks profile page, profile information can be added and viewed.
Now the problem is I am using a Select statement to get the data but when I do a Where statement im not sure what to put to basically say where userid = current user id logged on.
View 5 Replies
Sep 3, 2010
I have an asp.net web app. I have secure parts to the website and currently I have it setup so that people can login with their domain accounts. The are three secure sections to the site, all of which require files of interest be displayed to the user so they can download them.
Okay so this is how I see it working, people come to the home page and select on one of the three options. At this point they are prompted for there domain password then they are navigated to the secure page and a bit of code populates the page with file downloads based on who they are logged in as.
The files themselves will be uploaded to the website and kept in folders named after the username. so for instance the user edwardh would be displayed the files in the folder /downloads/edwardh.
View 2 Replies
Feb 15, 2010
I am trying to make a Contact form exclusive for Members. So as my first field (ID=username) I would like some VB script so that when the page loads it can identify the user that is accessing the page and display it in a read-only text ready for submission by email (with the email address and text area, don't worry about these because I know how to add these).
(here is my Contact us page code, nothing special but I'll give you it just in case)
[Code]....
View 8 Replies
Sep 30, 2010
i'm using forms based authentication within my aspnet (c#) website. At the log in page i'm capturing username, password and email. the email addressed is stored within the membership table. now on a new page, i'd just like to display the users' email address so they update it as well as another boolean field. i've tried using a gridview but i can't figure out how to modify the query so it only reveals the current logged in user.
View 1 Replies
May 7, 2015
I want to know what the members who are online at my site and I can identify them.Do you have an article that identifies registered online users like your site.
View 1 Replies
Jan 20, 2011
I have two textbox and a button .... control on web page, ,,,
database structure...
ID Email Password
1 dd@d.com jhatri00
2 ff@f.com tyyuiioo
i want when i login using texxbox1 and textbox2 then it validate emailid and password if record find .... the it will display the emailid on the each page ........ of the logged in username ..... on everypage ...
View 1 Replies
Oct 9, 2010
The LoginName control displays the Username. I would like to display the Full Name of the user logged in rather than the Username. Below is my code. I cannot seem to access the LoginName control in code behind. I am wondering if it because the control is in .
ASPX Page:
<asp:loginview id="HeadLoginView" runat="server" enableviewstate="false">
<AnonymousTemplate>
[ <a id="HeadLoginStatus" runat="server" href="login">Log In</a> ] [code]....
View 2 Replies