Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:689094
More Search Options
RSS Available
Matching Posts
Re: how do i implement a global object?
is there any way to access a global object without having to use Application("something") or Session("something"), given that its easy to mispell a string parameter, and intellisense wont come up with anything for either of these examples for obvious reasons?
Posted to
Getting Started
(Forum)
by
benvan
on 1/24/2007
Re: how do i implement a global object?
thanks, but you've misunderstood me. I do not want to set global variables on an application level. I want to create an OBJECT which is accessible on a session level. I want this object and its methods to be accessible everywhere. For example the "User" object is accessible everywhere. I can refer to the property "User.Identity.Name" in asp from any page. I want to be able to refer to my object "currentUser" from anywhere in the page, so, for example, i could call the method "currentUser.initialisePayPeriod
Posted to
Getting Started
(Forum)
by
benvan
on 1/24/2007
how do i implement a global object?
I have created a class called currentUser, which contains information about the user who is currently logged in to the system. I want this object to be available in the same way as the session object. When a user logs in, i want to be able to call (instance of currentUser).initialise(). My problem is that i have no idea how to make this object accessible everywhere on a "session" scale. I have created a namespace "currentUser", and in global.asax i have the following line: <object id="thisUser
Posted to
Getting Started
(Forum)
by
benvan
on 1/23/2007
Re: gridview security
This is a very good example of how NOT to ask a question. Do you have any knowledge of C# or VB? on rowcreated, Use e.Row.Cells( index of required cell, in this case probably 0 ).Visible = False likewise, change the index for any other columns which you want to hide. I would suggest writing a hidecolumns function.
Posted to
Security
(Forum)
by
benvan
on 12/7/2006
Website will not run once uploaded
Hi there - i have a big problem. I developed an aspx system (first one) and it runs fine on my machine with no problems. When i upload it however, nothing works. The first error that was being thrown was this: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. It occured to me that the system i uploaded was not in a folder defined as the application
Posted to
Configuration and Deployment
(Forum)
by
benvan
on 12/2/2006
Re: FileHandling (Access .mdb)
Thank you SO much :)
Posted to
Access Databases and AccessDataSource Control
(Forum)
by
benvan
on 11/3/2006
FileHandling (Access .mdb)
Hi i have a problem - My website is based on an access mdb database. The usernames for the website are stored in a table called TblEmployee, where they are mapped against "EmployeeNumber"s I have a gridview in one of my aspx pages showing the contents of one table, TblTimesheets which has the employeeNumber data in it, but i want the datasource of the gridview to be set so that it only displays records relevant to the current user. So logically, i must look in TblEmployee, find the number
Posted to
Access Databases and AccessDataSource Control
(Forum)
by
benvan
on 11/2/2006
Using controls in a query
Hi, i'm very new to asp and i have a small question - If i have a control on my webpage, like "CurrentUser" (which is System.Web.UI.WebControls.LoginName), how can i use it in a query? I want a query which will return all records pertaining to the current user. If i was writing the query in normal SQL i would write the following: SELECT Date, JobID, EmployeeID FROM TblTimeslot WHERE TblEmployee.EmployeeName = (The "CurrentUser" on the webpage) AND TblEmployee.EmployeeID =
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
benvan
on 10/27/2006
Page 1 of 1 (8 items)
TechNet Edge:
Windows Server 2008 R2 Quick Look #3 - PowerShell V2
ASP.NET:
2009 Blogged - Greatest Hits
WindowsClient:
2009 Blogged - Greatest Hits
Channel 9:
Nikolaj Bjørner and Leonardo de Moura: The Z3 Constraint Solver
Channel 9:
MEF & Silverlight 4 Beta - Part 2, Imports & Exports
Channel 9:
MEF & Silverlight 4 Beta - Part 1, Introduction
WindowsClient:
The (Near) Final Word on Multi-Monitor Taskbars for Windows 7 - Ultramon vs. DisplayFusion
WindowsClient:
Looking back at 2009, and forward to 2010
Silverlight:
Polling Video – A Viable sub-second alternative?
TechNet Edge:
Windows Server 2008 R2 Quick Look #2 - Active Directory Recycle Bin
Channel 10:
I'm a Windows 7 PC Themes
Channel 10:
24 Years of Windows Box Art
WindowsClient:
Silverlight tutorial: HOW TO build CommandLink Control in Silverlight with Expression Blend 3 and Behaviors
ASP.NET:
Converting an RGB Color To Hex With JavaScript
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Channel 10:
Microsoft's Mobicast: Stiched Cell Streams
Channel 10:
Festive Bing
TechNet Edge:
How Microsoft Reduces Operational Risk through Business Continuity Management
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online