Web Forms :: Find Last N Pages Visited By User
Apr 19, 2013i want to add field in user profile for pages he last visited, how can i get the last visited pages by user using C#..
View 1 Repliesi want to add field in user profile for pages he last visited, how can i get the last visited pages by user using C#..
View 1 RepliesI have 2 master pages Default.aspx is from Site.Master and some more pages that are from Admin.Master, I have used the code that to prevent the user from going back to previous pages after logout.
Here is my code
function preventBack()
{
window.history.forward();
}
setTimeout("preventBack()", 0);
window.onunload = function () { null };
The problem I am facing Admin.
Master page i.e I have Home.aspx, AboutUs.aspx,Admin.aspx,AddItem.aspx I was unable to navigate between those pages also. how to solve this. I have tried other methods also, but still facing same problem.
How Many User Visit A post And Visit A Thread How Can we get?
View 1 RepliesI would like to display the list of recently accessed/visited web pages just as google chrome shows. I want to achieve this using C# and asp.net.
I am working on a site where the user can see the list of pages that they have visited, I tried using iframe but that does not work as per expectation. I am looking for a clean and intuitive interface something like google chrome.
I would like to provide a thumbnail view of the recently visited pages.
To keep my question simple, I want to display a list of urls as thumbnails, just as chrome does
i want to know if a user is using website to register , and there are three registration pages with three table . if the user has completed one page and submitted and when he redirects to next page his system shuts down and if again he opens the site he should be redirected to the second page how to make it.
View 1 RepliesI have an app with alot of anchor tags in it. I wanna see what ones a user clicked on during a session. I thought aspnet automatically saved that information here:
string sessID = System.Web.SessionState.SessionID;
But there is no such thing as SessionID in the SessionState namespace. Is this information saved automatically, if so how do I access it? Here is my simple html
<body> <form id="form1" runat="server">
<div> Page 2
<a href="{URL}">Visit W3Schools</a>
<br /> <a href="[URL]">Yahoos</a>
</div> </form> </body>
Actually I am working on project in asp.cs in which I want the user to give a exam only once a day. So, how I stop him from again giving that exam.
View 6 Replieshave a CustomValidator in a user control which validates text in TextBox ( TextBox is in user control ). I am using this user control in multiple pages. For some pages i need fire custom Validator and for some pages not.
View 2 RepliesCan anyone point me to where i can find a documentation about css, masterpage and derived pages in VS2008. I used them in VS2005 but it looks like it's almost impossible on VS2008. or it's just me.
View 4 Repliesin asp grid there are multiple asp:linkbutton i want to change the color if one has been viewed.
View 4 RepliesIn IE8 after clicking a LinkButton, I am unable to get the button to display it's a:visited style. I want the LinkButton to show in a different color to show that it has been clicked, like a Hyperlink does.I read on another forum that the browser needs to have the Href value saved in it's history, but this doesn't seem to work for a linkbutton. It works for a HyperLink control, but not a LinkButton. I'm wondering if this is a known bug with the LinkButton. In the example below I have a linkbutton in a GridView, but I can't get it to work for any LinkButtons:
<asp:LinkButton
ID="lbtnEdit"
CommandName="Edit"
CommandArgument='<%# DataBinder.Eval(Container.DataItem, "pattern_ID") %>'
runat="server"
Text="<%$ Resources:Resource, Edit %>"></asp:LinkButton>
Here is what if renders as in the ViewSource:
<a id="ctl00_cphMain_gvWbpatternlist_ctl25_lbtnEdit"
href="javascript:__doPostBack('ctl00$cphMain$gvMyGridView$ctl25$lbtnEdit','')">Edit</a>
I want to change anchor link color in gridview once i click that link.
View 1 RepliesI have two pages, say pageA and pageB, with code behind classes CodePageA and CodePageB. I would like to reference an instance of CodePageA in CodePageB, but I'm getting a
Compiler Error Message: CS0246
Both of my classes are in the default namespace. Can anyone give a hint of whats going on?
I have a gridview that populate hyperlinks on a page. When i click on it it redirect to another page but when I go back one page it doesn't color the visited hyperlink. Does the gridview not support that or something? It works on the rest of my site. I tried adding CSS to it and still the same. This was my CSS:
[Code]....
I used this example from [URL] I changed it around to fit in a regular aspx page and it works great. however when I move it into my child page of a master page it fails on the AnimationExtended. Does anyone have a solution for the $find statement in child pages of a master page? Code is below. Errored line is bold faced.
[Code]....
I've got a web site that has a master page and that master page (mpMaster that has a user control ucControl1) which has a sub user control (ucControl2), this user control has a property which accepts a value. Now, I have a page that uses the master page
and on this page I have another user control (ucPageControl), I need to find a way of setting the value in ucControl2 from ucPageControl. Is this possible at all?
I want to display a menu (which will be strongly typed with it's own unique model) across all pages only if a user is logged in.What menu items are available depend on the user's role and also I'll need to hit the repository to get numbers like "x Messages", etc
Been scratching my head for a simple solution here. Don't want to create something that need changes all over the place.All my controllers derive from a BaseController, all my Models from BaseViewModel....probably where I'll be implementing functionality for this.
I'm writing applications on Facebook located on an external website ASP.NET C #. The application should check whether or not a person likes my Fan Page (page) on Facebook, and if he or she doesn’t like it needs to like it before using this application. How this can be done using the Graph API and ASPSnippets Facebook API.
View 1 RepliesI have a master page that divides the main content into two areas. There are two asp:ContentPlaceHolder controls in the body section of the master page with IDs cphMain and cphSideBar respectively.
One of the corresponding content pages has a control in cphMain that needs to refer to a control in cphSideBar. Specifically, a SqlDataSource in cphMain references a TextBox in cphSideBar to use as a parameter in the select command. When the content page loads the following run-time error occurs:
Could not find control 'TextBox1' in ControlParameter 'date_con'.
Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
[code]....
I kinda know what the problem is... ASP.NET does not like the fact that the SqlDataSource and TextBox are in different asp:Content controls within the content page.
As a workaround, I have another TextBox in cphMain with the SqlDataSource which has Visible=False. Then in the Page_Load() event handler the contents of the TextBox in cphSideBar is copied into the contents of the non-visible TextBox in cphMain.
I am trying to load two pages in two different windows (at the same time). I have three pages in my application
1) Login.aspx
2) TakeOrder.aspx
3) OrderSummary.aspx
When application is executed, user is presented with Login.aspx page. If the user is authenticated, I want TakeOrder.aspx and OrderSummary.aspx to load in two different windows.
TakeOrder.aspx is used to take orders and OrderSummary.aspx shows the summary of the orders which have been placed since morning.
I can put a button on TakeOrder.aspx to redirect to OrderSummary.aspx (but such logic is not allowed by the client).
Also when the user takes an order (I will add the order to th database), I want to refresh ( do postback) OrderSummary.aspx to show newly placed order for e.g.
OrderSummary.aspx is showing "n" orders, now the user takes an order "x", I want OrderSuammyry.aspx page to show "n+1" orders (including order "x")
I want to Transfer UserId after loggin in to everypage in app till the user gets logged out...
View 1 RepliesHow to programatically set a:visited and a:hover programatically? I am dynamically building up some hyperlinks server side and want to know how to specify unique css behaviour for each link. Otherwise I would set them all in a stylesheet.
View 4 Repliescan one web user control gives two different functionality on two different web pages,suppose i use web user control on web form 1 and also web form 2 , but i want some more work from this control on web form1 but this more work not affect on web form 2. for example: button click event of web user control gives me Good Morning message on screen, when i use this control on web form 1 and web form 2 ,it will give me Good morning message on screen,when i click this button, But i want that ,this control give me Good Morning message and some other messages like good after noon on web form 1 only, one control but different functionalty on two different pages
View 2 RepliesI want to know which pages users visit, and I want to register them
View 2 RepliesI have a default.aspx page, it contains a checkboxlist and button (Button1). There are other items too but not significant for this question.
The user selects an item in the checkbox list. Based on which item is selected, in my button click code, I take the user to another page (Page2, for example). In that page I have TextBoxes, where user fills some numeric values. On this page (Page2) I have another button (Button2). In the Button2 Click code, I want to use logic, where I need to know what was checked in my checkboxlist in previous page. How can I do that. I get the error
Error 17 The name 'CheckBoxList1' does not exist in the current context
On default page Button click I have like this..
[Code].....
1. How can I recall what was checked in default page checkboxlist?
2. Secondlay, the values user enters in this page (page2) in TextBoxs, I would need to use them in later pages, how can I use them in later pages. TextBoxs have unique IDs.