Web Forms :: Session - URL Routing For Display User Profiles

Jan 15, 2011

I am using URL Routing for display user profiles. I am using master page and child pages. The profile page is a child page and the master page has a login status control. When I login (say user x) through the modal popup which is in the master page itself, i can browse the site with smoothly and reach the routed page. When I log out from the routed page using the login status i get redirected to my home page as required as my login status also is logged out. If i login from this homepage now with another username say y, i get logged in successfully.

The problem is that when I again use the routed to get to the routed page, I get the previous user x still logged in. When i come to homepage I see user y logged in. So I have two sessions working; one in the routed page, and other in the whole of the website.

View 16 Replies


Similar Messages:

Web Forms :: Session - URL Routing To Route User To His Profile Page

Jan 12, 2011

I am using URL Routing to route user to his profile page, which is a child page. Now the problem is that all the images, javascripts references are distorted when i user the url to reach that page whether logged in or not logged in (both the cases). But after reaching this page when i login from this page thru my modal popup login control, all the references seem to work fine. It is to be noted that i am still in that same page which i reached after url routing. So upon logging from here the whole page works and displays fine.

How come the references are automatically adjusted when i am logging in from this page and are not referenced when i log in from other page and route here or when i am logged out?

Global.asax code:

void Application_Start(object sender, EventArgs e)
{
RegisterRoutes(RouteTable.Routes);
}
public static void RegisterRoutes(RouteCollection routes)
{
routes.Add("UseridRoute", new Route
(
"profile/{user}",
new CustomRouteHandler("~/UserProfile.aspx")
));
}

View 2 Replies

Forms Data Controls :: Gridview Display Users And Personal Profiles?

Oct 12, 2010

I am trying to populate a gridview control to display the current registered users on the site.

I query various tables from the ASPDOTNET.mdb database in order have a list comprising of UserNames, Email address, LastLoggedOn, etc. This bit is fine and it displays all the details.

The part I'm having a problem with, is I would like to add the FirstName and LastName to each row also. But I'm not sure how to get at the record. In the profile table I have a column with this detail within plus other personal details but I only need to retrieve the names and display that in the gridview.

View 2 Replies

Display Message To User When Forms Authentication Session Expires?

Oct 21, 2010

I simply want to display a message on the login page when the user is automatically redirected there after requesting a page that they were logged in for but their session has now expired. So essentially if the user was working but stepped away for a lunch break without logging out I want the system to tell them why they were sent back to the login page.

Something like "You have been idle for too long so you must log back in".

This has to be easy I am just running into a wall here. I thought about getting the original ticket and reading the expiration date but I'm a little lost.

View 4 Replies

Active Directory Custom User Profiles / Attributes?

Mar 8, 2010

I am currently using the ActiveDirectoryMembershipProvider just for authentication on an internal business app built in asp.net. This works like a charm.

I am now looking to add some functionality to handle custom profile information for a user, ideally also stored in Active Directory.

For a simple example let's just say the custom attribute is FavoriteColor. Then the goal would be for my app to be able to read in this custom attribute for the authenticated user.

I have looked into ADAM a bit. That looks like it would be great for a Role Provider, but I haven't really found anything that indicates it would work well for a Profile Provider or if it would even let me store custom attributes like FavoriteColor. Maybe someone knows better?

I'm also pretty new to Active Directory so maybe there is even an option to store custom user attributes (like FavoriteColor) within it? In general I am just looking for ideas about the best way to implement this?

View 1 Replies

Security :: Create User Wizard And Profiles And SQL Server?

Jan 29, 2011

I'm modifying Scottgu's tutorial for adding profile information to a login.I have put in a provider tag and the profile tag parts in the web config, and hooked it up to a connection to my SQL Server DB.I have modified the create user wizard step 1 to contain extra controls to capture forename and surname. I then altered the tutorial code to match this.however, though the _CreatedUser event code fires, nothing is stored in the aspnet_Profiles table in my DB.I took the tutorial code for the display profile info page and modified it to displAy the users name, but nothing appears on the page, even though the users username appears using the loginname control.all I would like to do is display message in the master page that says 'welcome, John Doe, you are logged in as doej'

View 8 Replies

Security :: User Profiles Not Working Once Website Goes Live?

Dec 1, 2010

I have just put my first ASP.Net site live on the internet but im having problems with my login. When i try to login my sit is throwing an error.

The SSE Provider did not find the database file specified in the connection string. At the configured trust level (below High trust level), the SSE provider can not automatically create the database file.

I have run my script from visual studio so the profiles are there but i cant login?

View 4 Replies

VS 2008 - Using Profiles To Store A List Of User Defined Clicks?

Oct 3, 2010

I have been using profiles to store a list of user defined clicks. A user clicks on items and it adds it to my Shopping Cart.

I have managed to enter all the info I need and see that It is there with a count but I can't pull the information back once I have entered it.

First thing I did was add code to my Web.config under System.web

[code]....

Then I created a Class called ShoppingCart.vb

[Code]...

Okay here is my VB code where I need to be able to pull the information back again.

[Code]...

So I may need to give you more information but the basics are:

I can add items to my list with btnAddS and it will update my label with the correct amount of rows (items)

Under my btnView I can iterate through the rows (items) but I can't pull back the information stored within.

View 25 Replies

How To Use Session Variable To Display User Information After Authenticated Login

Dec 18, 2010

How can I use session variable to display user information after authenticated login like Address: 37, kings Road. Position: Secretary base on User ID

View 2 Replies

State Management :: Session Null On Url Routing Asp 4

Jan 15, 2011

I am having session null on url routing , I searched the net all solutions are mostly for asp.net 3.5 , am using 4.0.... i dont have modules tag in web.config , i've got httpmodules which doesnt have that property.

View 3 Replies

Session Null In IRouteHandler.GetHttpHandler With Asp Routing

Jun 18, 2010

I'm trying to get Session enabled in the GettHttpHandler method of my IRouteHandler classes but session is always null. Could someone tell me what I'm doing wrong? In global.asax I have

RouteTable.Routes.Add("All", new Route("{*page}", new MyRouteHandler()));

The MyRouteHandler class where Session is null looks like this:

public class MyRouteHandler : IRouteHandler, IRequiresSessionState
{
public System.Web.IHttpHandler GetHttpHandler(RequestContext requestContext)
{
string test = HttpContext.Current.Session["test"].ToString();
return BuildManager.CreateInstanceFromVirtualPath("~/Page.aspx", typeof(Page)) as Page;
}
}

I made a small test app that shows the problem. Could someone tell me what I'm doing wrong?

View 4 Replies

Web Forms :: Web.Routing Doesn't Work On Server On IIS Routing

Jul 20, 2010

I tried everything I could find, but still does not work on IIS routing.

View 2 Replies

Sql Server 2005 - Modify Query "log-in User Detail Should Also Display With The Help Of Session"?

Oct 14, 2010

I am using sql server 2005. In this query i want the log-in user detail should also display but it is not displaying . modify the query so that log-in user detail should also display with the help of session[userId].tostring(); Query written by me is:

SELECT DISTINCT MUDMEMBER.PK_ID, MUDMEMBER.EMPLOYEE_ID, LKB.BANK_NAME, MUHD.SALARY_ACCOUNT_NO, MUHD.PF_NO,
MUHD.PAN_NO, MUHD.GENDER, LKD.DESIGNATION_NAME FROM M_LEADERLED MLL INNER JOIN M_USER_DETAILS MUDMEMBER ON
MLL.LED_ID = MUDMEMBER.PK_ID AND MLL.START_DATE <= Getdate() AND MLL.END_DATE > Getdate() AND MLL.LEADER_ID = '1' LEFT OUTER JOIN
M_USER_HR_DETAILS MUHD ON MUHD.FK_USER_ID = MUDMEMBER.PK_ID AND MUHD.IS_ACTIVE =1 LEFT OUTER JOIN
LK_BANKS LKB ON LKB.PK_ID = MUHD.FK_BANK_ID LEFT OUTER JOIN LK_DESIGNATION LKD ON
LKD.DESIGNATION_VALUE = MUHD.FK_DESIGNATION_VALUE AND LKD.FK_ORGANIZATION_ID = 1 AND LKD.IS_ACTIVE = 1 WHERE MUDMEMBER.ACTIVE = 1

View 1 Replies

Routing With Web Forms - Could Not Load System.Web.Routing

Dec 12, 2010

I am using:

ASP.NET 3.5 SP1 with Web Forms Routing thru Global.asax (System.Web.Routing and RegisterRoutes)IIS 7

Everything is working fine in my local machine, but it gives the following error in my hosting environment:

Could not load file or assembly 'System.Web.Routing, Version=3.5.0.0, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

I did everything inside my web.config file mentioned in the following link:

[URL]

But I am still getting the above error.

What else am I supposed to do fix the error?

View 1 Replies

Web Forms :: Display Session (Timeout) Expire Message 5 Seconds Before Session Expire

May 7, 2015

Using this code i want to show an modal pop up to the user that "your session will be expired within 5 minutes , Click here [BUTTON] to reset your session" , here's my code :

<asp:Button ID="btnReset" Text="Reset" runat="server" OnClick="ResetSession" />
<br />
Your Session will expire in <span id = "seconds"></span> seconds.
<script type="text/javascript">
function SessionExpireAlert(timeout) {
var seconds = timeout / 1000;
seconds--;

[CODE]...

View 1 Replies

MVC :: ASP.NET Routing The Redirect Url After A User Authenticates?

Apr 11, 2010

I thought I was getting the hang for asp.routing until I ran into this situation. I'm trying to use a data api that requires me to utilize OAuth. Well the redirect url after a user authenticates is:

/MyPage?token=thetoken

Does anyone know how to intercept that request and turn that url into a route that looks like this:

routes.Add("MyRoute",
new
Route("MyPage/{token}",
new
[code]...

View 2 Replies

Rest WCF Url Routing & Web Forms Routing?

Feb 22, 2011

I have a Web application where i have added a reference to a RESTful WCF. I got the WCF url Routing to work in my webapplication by adding Inherits="RestService.Global" to the Web applications Global.asax.

<%@ Application Codebehind="Global.asax.cs" Inherits="RestService.Global" Language="C#" %>

But then i tried to create url Routing for the Web application and it does not work with the Inherits="RestService.Global" in the Global.asax. If i take it away it works fine. Is there a correct way to do this.

View 1 Replies

Web Forms :: URL Routing And Dynamic Routing?

Jan 31, 2011

I'm trying to create my own CMS and I've gotten a little bit stuck at the stage of URL routing.

I want clean URLs without extensions and I'd like to be able to create and modify them in a web based interface without any messing around with IIS or actual files.

I've seen how to create a static route, but for that I need to go into my Global.asax file and manually add it.I would like to have all of these routes stored in a database so that I can easily modify them later.

Does anyone know how this can be achieved?

Just for extra information, I will be attempting to create a feature so that if a path exists, but is later changed, a 301 redirect is created to the new URL, is this also possible? (My first problem is the main issue, but thought I might ask this as well just in case it makes a difference)

View 2 Replies

C# - Multiple Page_Load Events For A User Control When Using URL Routing?

Jan 6, 2011

've recently set up an ASP.net site (not using MVC.net) to use URL Routing (more on the code below) - when using user controls on the site (i.e I've created a "menu" user control to hold menu information) the page_load event for that control will fire twice when URLs have more than one variable passed over.

i.e.

pageName/VAR1 : will only fire the page_load event once.

while

pageName/VAR1/VAR2 : will fire the page_load event twice.

*Multiple extra VARs added on the end will still only fire the page_load event twice*.

Below are the code snippits from the files, the first is the MapPageRoute, located in the Global.asax :

[code]....

Note, that when I'm just hitting the page and it uses the default values for items, the reloads do not happen.

View 3 Replies

Web Forms :: Custom Profiles With .net 3.5 WebForms

Aug 2, 2010

I created tables in my database for managing a user's profile.I have the user table (username, password, passwordSalt, etc.) report (1 to 1) with a table ProfiloUser (idprofilouser, iduser, name, sex, DoB, email, etc.), the latter table reports (1 to 1) with the table ProfiloAzienda (idprofilouser, idprofiloutente)
and finally I have another table that is related profilodestinazioni (1 to many) with the table profilouser.

how I can create a custom profile is on web.config, which side code.I've created this in web.config:

[Code]....

The code then I created the following classes
[Code]....

View 5 Replies

Web Forms :: Applying Themes To Profiles?

Dec 7, 2010

I am trying to apply themes to my site using profiles. So in my web.config file I need to write the code so that once that user logs in, then the theme of the site changes. Right now I just have color themes; yellow, blue, and orange.

If this isn't in the right section feel free to move it.

View 2 Replies

Latest Logon Session Is Retained And The User Is Automatically Signed Out From The Other Session

Feb 1, 2011

Let suppose, I am building an asp.net website which has login scenario in it. I want to provide a certain functionality to the website that if the user is already login on computer 1 and now try to login on computer 2, so he will be allowed to remain login on computer 2, while automatically logout him from computer 1. I also know that http is a stateless medium, so whenever user interact with computer 1 and try to interact with the page, it will get noticed at that time.

View 2 Replies

State Management :: Session - User Closes Browser, The Session Does Not Get Killed?

Jul 15, 2010

I have a website live in asp.net

now if user closes browser. the session does not get killed.

I spoke with friend and he said that cannot be done as sessions are on server.

but i see banking website who kills session when browser is closed.

View 10 Replies

Web Forms :: Display Notifications To User When User Logs In

Feb 22, 2013

how to add notification facility same as facebook in our c# website, clients get the notification on their profile whenever any new feature is aaded to website..?

View 1 Replies

User Controls :: Display User Profile Image Of Logged In User?

May 7, 2015

I would like users to upload a profile picture when they register, and to then show that picture in a picture box control when they are logged in based  on that specific user.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved