Architecture :: Show The Current Client Logged In Only What They Have Posted To The Application?

Sep 7, 2010

I am working on an application where it stores information that different clients will be using. I need to figure out how to show the current client logged in only what they have posted to the application and not everything that has been posted to the application. Client 1 logs in and sees what they have posted; client 2 loggs in and sees what they have posted.....etc. Can anyone shed some light on this for me?

View 1 Replies


Similar Messages:

Architecture :: How To Save The Current Location Of Each Logged-in User

Jan 26, 2010

Let me tell you what I need to implement on my company .NET application and I will be more than glad to hear your advise how to do it:

For every user loged-in to the company website, We want to know on which page he is right now. It means, If user X is now on page "1.html", I need to save this information somewhere. If user X after 30-60 seconds going to page "2.html" I want to update it fast where he is now surfing. It means I want to be able to tell at REAL TIME, on each page, Which users are right now observing the page. This is the problem, now I'm looking for the right solution.

If some day my company website will have 400,000 user log-in at the same time, I am going to save to every one of them where he is surfing right now. Maybe I exaggerated, but we do have 45,000 users at the same time on the company web site and the number is growing. I think big so the solution for this problem will be good for a lot of users.

So, my data object for every user should keep this information somewhere:

1. User code (User Number).
2. Which page user is now observing (Page Number).

This object is going to update every 30-60 seconds by using AJAX, so it should be updated fast. It is a lot of reading/writing data. If a user want to see which other users are now on the same page as he his, he will be able to see it, just by going through the whole array of objects.

I don't need this information to be saved in DB, because it doesn't mean anything. It is temporary and changing A LOT. So, I think the right place to do it is using RAM at the the company server, using the Caching Data option. What do you think? Am I wrong?

If I am going to have a data table with lots of records and every record is going to be update every 30-60 seconds. Where should I save all this table data? I am using SQL Server 2008 to save important data as needed, but this data is not important to save, just need to use it for my purpose. Where should I save this data? I think saving it in DB is a bad idea, because of the dynamic update of records every few seconds. I am thinking about 100,000 users who update this table every few seconds. It probably going to kill my DB, so DB is not an option.

What is the right way to implement this kind of thing?

You may think of it like every page is "a chat room" and I want to know who enter now the room (the page), it doesn't have to be completely accurate in time, but approximately.

View 7 Replies

Architecture :: Entities In Client Application Using WCF Web Services?

Jun 16, 2010

Can some one inform me whether I need to replicate the same set of entities in the client which are similar to that of the ones in the server? I have planned to start a proj with service functions as wcf services and in turn they are getting referred in silverlight client application.

Incase if i need to consider casting to or back from the return value lists of service methods in the server, should i be creating entity class in the client application as well? Or is there a work around? Something like exposing the entities from the server just as the services functions?

View 1 Replies

Architecture :: Web Application For Dealing With Client Resources?

Aug 13, 2010

I am planning to convert desktop application which has to deal with lots of client resources like printer, Id scanner(driver license,passport & business card etc.), webcam etc.Now accessing client resources like files, scanners and webcam everything has to be done through client side scripting which is really pain. Due to nature of this product, I have to create image on client PC and extract information from it. (This is also pain in Vista and Windows 7 due to security permissions and all that stuff).

My ideal design would be making managed dll which takes care of dealing with images, printers, webcam (I have to apply pan, tilt and zoom), id-scanners. This is kind of component. And GUI would be web based Asp.net which simply calls the functions of managed dll. If the end-user is opening application on new computer, then it will ask just like flash or silverlight that you have to install component locally for the first time.Points which I worry: 1. If it logically correct or sounds stupid? 2. How to install managed dll at end-user's PC (C:/program files) and use it from asp.net code behind page.

My application is intranet application.so avoid stupid assumptions about privacy and ohhooo you want to access files from my PC and all those stuff. (end-user would never mind in giving credit card to restaurnt waiter who could do anything with it behind counter but allowing web application to access file which is created by application is privacy issue)

View 1 Replies

Web Forms :: Where To Get The Data Posted From The Client

Jun 13, 2010

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class ResponseTest : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
var a = Request; //I didn't find the data in Request's structure.
Response.Write("successed; hello World;");
}
}
//-----------------------javascript--------------
for( var i=0; i<this.dataToBeSent.length && this.dataToBeSent[i].hasSent == false; i++ )
{
xmlRequest.open("POST",this.dataToBeSent[i].url,true);
xmlRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xmlRequest.setRequestHeader("Content-length", this.dataToBeSent[i].data.length);
xmlRequest.setRequestHeader("Connection", "close");
xmlRequest.onreadystatechange = function()
{
var j = j || i;
if(xmlRequest.readyState == 4 && xmlRequest.status == 200)
{
if( xmlRequest.responseText.toLowerCase().indexOf("successed") > -1 )
{
this.dataToBeSent[i].hasSent = true;
}
}
};
xmlRequest.send(this.dataToBeSent[i].data); // xml data
}

View 2 Replies

How To Show Ip Address Of Client On Web Application

Aug 6, 2010

I have designed web application..where i need to show ip address of logged client..i m using like this

Your IP address is <%= Request.ServerVariables("REMOTE_ADDR") %>

but it showing error like

Non-invocable member 'System.Web.HttpRequest.ServerVariables' cannot be used like a method.

i try to use using System.Net in my name spaces but ..showing the same error...

What need to show the ip address of client on my webstie....

View 1 Replies

SQL Server :: Show Time Data Posted?

Jan 1, 2011

i want show time data posted. for example 18 second ago or 4 min and 36 second ago or 2 day ago. for example my post in forum asp.net. this is Procedure: but not run.

@DATEDIFF INT=0
as
If (SELECT DATEDIFF(Minute, date, GETDATE()) AS Minutes)
FROM tblajax > 60
BEGIN
SELECT Id, name, family, age,
(SELECT DATEDIFF(Minute, date, GETDATE()) AS Minutes)
FROM tblajax
END
ELSE
BEGIN
SELECT Id, name, family, age,
(SELECT DATEDIFF(Second, date, GETDATE()) AS Second)
FROM tblajax
END

View 3 Replies

How To Get Current Logged In User Name

Oct 25, 2010

I thought this would be a simple task as I am trying to get the current logged in domain user name. I have the following:

[Code]....

but it ALWAYS returns nothing ""

Is there some configuration in the ASP that I have to do first?

View 3 Replies

Security :: How To Get The Current Logged In UserId Value

Aug 20, 2010

I'm trying to get the current logged in UserId Value, using this code

[code]...

But, I getting an error (NullReferenceException), I did set a url authorization on the page that i try to get the logged in user information, witch is info.aspx, and I made the login.aspx control to be redirected to the info.aspx after the login process, But the info.aspx only shows me (access in denied), how can i make this page knows that i am already logged in?

View 3 Replies

Using EWS From Within A Website, Is It Possible To Use The Current Logged In Users Identity?

Feb 20, 2010

I have a web application using Forms authentication provided by AD. I would like to know if it's possible to use EWS to send mail as the currently logged in user without having to supply credentials, or; would I be required to set up an account with impersonating access which will send mail on behalf of the currently logged in user?

View 1 Replies

How To Get Current Logged In UserID In Aspnet Mvc Membership

May 7, 2010

i am trying to show a list of users of my application "school", when admin logs in then he can view all the users in list but when school principals logins, he should get only users of his school, So i thought to get the current loggedIn userId first and then by that userId i'll get schoolId since userId is foreign key in school table...once i'll get the schoolId i can show the members of that school.

But my problem is how to get the UserID of currently loggedIn. I'm using MVC 1.0 Asp.Net -- "Membership" if my logic above is wrong then tell me the alternate good idea, so that principal can see only his users list.

View 3 Replies

Security :: Link To Current Logged In User?

Jan 25, 2011

I wan't to link to the current logged in user with their userid, this is for the user menu. But I don't see why my code dosen't work.Code Behind:

[Code]....

Masterpage:

<asp:LoginView
ID="LoginView1"
runat="server">
<LoggedInTemplate>
<asp:HyperLink
ID="UserProfil"
Text="Profil"
runat="server">Profil</asp:HyperLink>
</LoggedInTemplate>
</asp:LoginView>

View 3 Replies

Web Forms :: How To Get The Current Logged In User's Email Address

Mar 18, 2010

How to retrieve the current authenticated logged in user's email address who is accessing the page.

I have managed to do it with users. How to get the current authenticated user's email address if that makes sense.

Here is my aspx code:

[Code]....

and my VB script:

[Code]....

Somebody suggested that I should run a query. If you know the user name accessing the page, surely you can take that information, insert it into a query to find out the email address of the user accessing the page. Sounds great but don't have a clue how to do it.

View 2 Replies

Security :: Display Current Logged In User In A Textbox?

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

Security :: How To Get Author Of A Post As The Current Logged In User

Jan 17, 2011

The thing is that I'm creating a community fanpage, I have the membership database installed and I have created user profiles for the users, and it works fine. The thing I can't seem to find anywhere is how to capture the current logged on users username and save is as the author of a post in the database. Like right now, I'm writing a post, and when I click Post it will say it's written by Jeanz91 because I'm the user who's logged in. How do I get my site to do that?

View 3 Replies

Web Forms :: Current Logged In User's Information In Sharepoint List?

Oct 8, 2010

in order to prepopulate some user information, i used query to search the sharepoint list. my question is how to search loggin user's info in the list. i used following testing query function. it works fine. however, it can only search specific text, cannot be changed according different user.

[Code]....

View 1 Replies

How To Dynamically Change Session Time For Current Logged User

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

Web Forms :: Authenticate Current Logged In User In Asp 3.5 - Error CS1061

Jan 26, 2010

I want to check that the user trying to log-in is authenticated and it belongs to a certain role. For this I have wrote the following code

protected void btnLoginButton_Click(object sender, EventArgs e)
{
/
if (this.User.Identity.IsAuthenticated && this.User.IsInRole("Admin"))
{
Response.Redirect("~/Admin/Default.aspx");
}
if (this.User.Identity.IsAuthenticated && this.User.IsInRole("Editor"))
{
Response.Redirect("~/Editor/Default.aspx");
}
if (this.User.Identity.IsAuthenticated && this.User.IsInRole("Moderator"))
{
Response.Redirect("~/Moderator/Default.aspx");
}
}

But when I ran this code it gave me this error error CS1061: 'Page' does not contain a definition for 'User' and no extension method 'User' accepting a first argument of type 'Page' could be found (are you missing a using directive or an assembly reference?) I have already added following directives to cs page-

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

Can anybody tell what directie I should add for "this.User" <P.S> My application is web based and it is in ASP.Net 3.5(C#).

View 6 Replies

State Management :: Users Getting Logged Out Because HttpContext.Current Is Null?

Aug 19, 2010

We've got a fairly large, complex web application that uses Forms Authentication to authenticate users. Throughout the application we store and retrieve information about users in the Session object, and in some cases in cookies. In a couple places we check for the existence of the context, and if it's null we send the user back to the login page to re-establish the session. Just a quick run-down of this web app: C#, .NET 3.5, IIS 6, ASP.NET State Service to manage sessionAs for the session timer, we use our own home-grown timer, which is basically a client-side timer, which is backed up by a check to the SQL database to see when their last activity was. This seems to work well for us. It's not perfect, but it allows us to notify the user before the session times out, and allows us to be certain we're not logging a user out before their 60 minutes of inactivity is up.What's happening is that certain users are being logged out after just a few minutes. We've eliminated the timer as a cause and believe what's happening is the HttpContext.Current is null, so the user is logged out. We do not know why the HttpContext.Current is null, and I understand there are many reasons that may occur. What I'm trying to figure out is, is there any way to re-establish the context once it is null? If not, is there anything I can do at this point other than have the user login again? We're also trying to figure out a better way of managing user information (preferences, roles, flags, history, etc), but everything needs context to use, right? Cookies, sessions, cache, etc. all require a response or request, correct? hope this makes sense, because I really need help with this. I've searched the forums here, and found many posts about HttpContext.Current going null, but not a lot of solutions for this...

View 14 Replies

Web Forms :: Display Online Users Except Current Logged In User In Membership

May 7, 2015

I have below code to display "list of all the online users" inside listBox using Membership function.

Code:

protected void Page_Load(object sender, EventArgs e) {
if (!IsPostBack) {
MembershipUserCollection allUser = Membership.GetAllUsers(); // to get all the users
List<MembershipUser> onlineUsers = new List<MembershipUser>(); //creating list of online users
foreach (MembershipUser user in allUser)

[Code] ....

I want to remove that user from the list of online users, who himself has logged in. Example: if I had logged-in with UserName: Admin, then this Admin should not show to me in the list of "online users"

Tried below Code but not working:

protected void Page_Load(object sender, EventArgs e) {
if (!IsPostBack) {
MembershipUserCollection allUser = Membership.GetAllUsers(); // to get all the users
List<MembershipUser> onlineUsers = new List<MembershipUser>(); //creating list of online users
MembershipUser m_user = Membership.GetUser(); //to get self logged-in user

[Code] ....

View 1 Replies

Security :: Get Logged On User From Client Computer

Jan 27, 2011

Im using forms authentication on a site. I have a requirement where I have to log the username of the user that is currently logged into the computer. It is not a public site. It is an intranet site at work. I have tried several different methods but they all return the username of the user that is logged into the site. The methods I have tried are below. Note: I would perfer to log the username without the domain.

[Code]....

View 4 Replies

Client - Server - Client Architecture?

Feb 23, 2010

I'm going to create my own project, and i have some difficulties with technology selection. I will have client application(windows forms) and web service. Data exchange between clients will be only by using this web service. Data will be like image stream,so I don't know which technology to use. I started to look at WCF, but i don't know a lot about it.

View 3 Replies

How To Show A Div Tag Only If A Person Is Logged In

Jan 23, 2011

I was trying to incorporate a functionality in my ASP.NET such that a DIV tag which contains the Profile Navigation Menu should only be visible if a person is logged in. I know the condition on how to if the person is logged in or not but wanted to know the method to toggle the div tag on/off based on person's logged in status.

if(loggedin==yes)
{
//?
}

View 3 Replies

C# - Show Only Client-side Validation With Client And Server Validators?

Dec 12, 2010

If I have something like the following:

<asp:TextBox id="test" runat="sever"></asp:TextBox>
<asp:RequiredFieldValidator runat="server" ControlToValidate="test"
ErrorMessage="Required"></asp:RequiredFieldValidator>
<asp:Label runat="server" id="lblStatus"></asp:Label>

if in the code behind, I set the label to "You must enter a value if the textbox is empty" to validate it on the server side and this is fine, but if javascript is enabled, I don't want to show the client side validation and the server side label together. Is this something where I would just have to disable the client-side validators if javascript was enabled?

View 3 Replies

MVC :: How To Only Show Links When User Is Logged In

Jan 13, 2011

Just starting from starter program in VS 2010 there are link/tabs like "Home" and "About". I intend to add additional tabs like "Settings" and "Contacts". What is the best way to make these invisible until the user has registered or logged in?

View 5 Replies







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