what is the use formsAuthentication.user.identity
is it one of the property of page
View Complete Post
Hello I've written some code to check information based on the authenticated user. The following code works on an ASPX page load but fails when I move into a Master Page. Specifically, the error is "Compiler Error Message: BC30451: Name 'User' is not declared."
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load ' Get & split Domain user Information
' Get & split Domain user Information
Dim strDomainUser As String = User.Identity.Name
I am having problems with a user control. I want my solution to have a separate project for holding my user controls.
The main project can get a reference to this user control project and can import this user control dll into my main project.
Thanks in advance,
My web application has user control which uses third party controls called Devexpress controls. The user control is a menu and is part of the Master page. It is placed there because this needs to be available in all the pages. My user controls raises a even on item clicked. Now, My question is that Is there any way to know that the event has occurred in page_load of the current page in which I am in?
I have some logging that has to be done, which are some database update or inserts.
However this logging is of no importance to the user, so I only want to process the data/logs after the page is completed for the user.As of now, if I process the data while the page is loading, I go from 1.4 to 2.0 speed (server side time processing of code), which is quite a bit comparing it is of no use to the user.
So I want this code only executed after that the page is complete.
I've been checking out Ajax, async pages etc, but the problem is it still gets executed before the page is rendered to the client, which means the client will have to wait longer then it is not being processed.
I've been checking out Threadpool.queueBackgroundWorker, however if I get it correct, this will still be executed before the page is shown to the user, as it has to complete before the prerender.
Then I thought about creating a new thread, and do the processing there, which would not have my page waiting to complete the data/logging.However when I have 100 or 200 users loading pages at the same time, then that would mean I would be creating 200 threads on those loads, which I doubt will be good for performance. So if I want to solve this, I would have to create my own threadpool and only assign for example a max of 40 threads to it which can pr
I've got a single user who's not able to manage his links in MOSS 2007. The links I speak of are gotting to via
users have no issue.
I read somewhere that this might be caused by the user in question having added an improperly formated link. My issue is how can I check for that condition and correct it? Any thoughst
would be much appreciated.
I have a dynamic accordion on a page. Set its datasource to an
object of paged data source.The user control is in the accordions
content template. When i was writing code the properties were showing
but after giving the values of databases as
but the values shows null, these properties are shown as textboxes text property by user control.
MoreOver when I checked the values of database Items.So i made a textbox instead of usercontrol here as
<asp:TextBox ID="txtTest" runat="server"
It is showing the correct value. And if i pass the value directly it is also showing correctly like
<uc:UserControl1 runat="server" Property1="XYZ")%>' Property2="ABC")%>' ></uc:UserControl1>
. where I am wrong
the problem is eval is not passing the value to usercont