Search

You searched for the word(s): userid:689094

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
  • 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
  • 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 =
Page 1 of 1 (8 items)