Application Object :: Allow Only One User To Access Form
I'm looking for a way to allow only one user to access my web form at a time. so that if there is a user using my web page / html form.. then the next user is directed to another page. So only one user is allowed access at any given time .I was hoping there is a way to do this with Application variables.
View Replies
ADVERTISEMENT
my form contains two text fields(name, address) and two file field control where user can insert image(photo1 and photo2), i want to insert this data in to ms access when the user submits the form?
this is my code for insert text fields to access data base.but i have no idea about the code for image fields. In my access data base i set photo1 and photo2 as herf (binary data). Code:
View Replies
View Related
We have our web site setup on two seperate servers. They are connected together through a BIG/IP server. I'm not sure how many of you are familiar with BIG/IP (load balancing) but I'll give you a quick explanation:
When a user goes to our site, they hit our BIG/IP server first. This server looks at our two web servers and determines which one has more resources to spare. The BIG/IP then redirects the user to that server, where they are on the rest of the time they are on our site.
So we have two web servers with duplicate web sites running. My problem is I need to run one application object between both servers. Is this possible, or is there a work-around?
View Replies
View Related
I am developing ASP application with complicated login system. There is several group of menu options. Each have form 5 to 15 sub-options.
User can work with any combination of options and sub-options and can see only these menu options which are allowed for him. "Rights rules" are store in SQL Tables and are getting after logon.
Now a questions:
1. what is the best way to store this menu structure (Session object is not allowed because it uses Cookies) ?
2. What is the best way to handle the "rights rules" ?
View Replies
View Related
Below you can find quick links to information about the Application Object. I would write a post like my CDONTS one, but I just don't have time, but when I do, I'll see if I can get one done.
An intro to the Application object, this its in JScript but its easy to change
Using the Application Object to Improve Performance
HOW TO: Declare an Array at Application Level Scope in Active Server Pages (Q165293)
A Real-World Example of Caching Data in the Application Object
W3 Schools Application Reference
HOW TO: Use the Application Object to Store ASP State
View Replies
View Related
I am trying to get to the application object from a seperate class in my ASP
application and I dont want to pass the object in as the class is inherited
to lots of other classes. So i can have something like the following:
Imports System.Web.UI.WebControls.DataGrid
Namespace Classes.Inheritable
Public MustInherit Class EntityCollection
Implements IDisposable
Private mobjDataConnection As Classes.Databases.DBConnection
Public Sub New(ByVal strSQL As String)
mobjDataConnection = Application("DataConnection")
End sub
View Replies
View Related
The following code exists in a Global.asa file:
----------------------------------------------
<%
Set Application("Thing")=Server.CreateObject("THINGDOER.THINGY")
%>
----------------------------------------------
Will the above code snippet:
create a non-object Application variable named "Thing" & place it in
the Contents collection of the Application object?
-----OR------
create an Application object named "Thing" & place it in the
StaticObjects collection of the Application object?
View Replies
View Related
There seems to be plenty of discussion about caching in the Application Object, however, I cant find any info on what realistic limitations there are and how they are measured.
What are the factors that will limit performance / storage of many individual or single large bits of data with application scope? eg database driven list boxes (that dont require up to the minute data) 10 * 100 options? 100 * 100 options? kb's? megs of info? How much can I cache?
View Replies
View Related
I'm having trouble with the workflow described bellow:
1. Asp page 1 on server A contains an iframe.
2. Asp page 1 submits a form targeted to the iframe, to Asp page 2 on
server B.
3. Asp page 2 runs in the iframe and at some point might decide to submit a
form targeted to the _top frame, to page 3 on Server B.
4. Page 3 loads in the top frame. Code:
View Replies
View Related
Rather than opening and closing a new connection to the database on every page, I have placed that connection into an Application variable. This has worked fine so far.
My issue is that I have a logoff page where it closes that connection.But this means that users who are on the application will not be able to access that connection.The obvious answer is that I don't close the database connection.But my problem is, I would like to eventually close that database connection.
How can I determine if an application variable (not session variable) exists?How can I determine that there are not any users on the application?
View Replies
View Related
My asp application allows a number of users to log into it. Each user has a different type of access level (General User, Manager or Administrator). I want the administrator to be able to see how many other users are logged into the application at a particular time. How can I do this? Would the use of an application object work for this?
View Replies
View Related
Im trying to detect multiple logins...
Im using a application object in my global.asa, for some reason it doesnt seem to work. here is my code
<script language="vbscript" runat="server">
Sub Session_OnStart
Session("LoggedIn")=0
End Sub
sub Application_OnStart()
Application("Logged")=1
End sub
</script>
In my pages if i print the Application("Logged") value, it does not show....
View Replies
View Related
We have pretty simple ASP (not ASP.Net) application, which has been running fine on IIS4 and IIS5. It has now been moved to a sever running in the DMZ and managed by a 3rd party. The server is Win2003 and IIS 6.0.
Within the Globe.asa file, have an Application_OnStart SubRoutine (Visual
Basic) and it bombs out on the first line:
Application("cnSecurity_ConnectionString") = "connectionProperties"
With the error:
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject failed
Globe.asa, line 25
View Replies
View Related
We’re just wondering if there is an ordering online software which has a feature to create a customised user environment (different product and prices for different user) for each login user? We really need that feature for one of our customer.
If it is not available could you please suggest a product that has this feature?
View Replies
View Related
I'm just wondering if there is ordering online software which has a feature to create a customised user environment (different product and prices for different user) for each login user? I really need that feature for one of my customer.
If it is not available could you please suggest a product that has this feature?
View Replies
View Related
I am currently working on a small asp application. Now I would like to store the complete database connection in the application object. Note I want to store the connection NOT the connectionstring. For that purpose I wrote a small asp include which connects to the dbase and stores the connection object to the application object. However when I use this include in my pages then it doesnt work. What I am doing wrong? Here is the code:
View Replies
View Related
I'm using application variables for a web based sales tracking application. I use the variables for stuff like connection string, database name, etc. I store the values in a asp file that is included in a login page. The assignments are in a procedure that I then call on the login page. This is done everytime a user connects to
the login page.
what's happening to the variables? Are they being overwritten everytime a user accesses the page? I'm not checking for the existence of the variables. I just call the routine everytime the page is accessed. I know the values are shared for all users but, I was wondering if I should check for the existence of variables? Will it free up resources? Should I be using locks?
View Replies
View Related
We have our web-site developed in classic ASP, and I need to add this additional feature on one of the pages to access a VB application. How can I do that? The VB application basically sends output to the COM3 port and opens a USB-Cash drawer that is attached to it. I am not sure how to go about with this.
View Replies
View Related
How can I give a user-defined object session scope? From
http://www.microsoft.com/windows200...asp/iiwaobu.htm
I gather that it can be done, but there are no examples. Simply setting
Set Session("tag") = new MyClass
doesn't work.
View Replies
View Related
I am creating a web-based application with ASP and using frames. I wonder how we could trace user's browsing behaviours in this particular domain. That is, I need to know which pages the user has viewed and which pages the user has not yet visited, as this information is essential and will be used to assess their learning paths and progress.
Therefore, my question is that how to create a file which stores information about users' browsing history, i.e. the page the user visited, so that we could use these information to assess users' learning progress, or what is the right means to tackle this requirements?
View Replies
View Related
I have a project where i have to use an html asp application form to insert records into an sql database. My problem is finding resources online to practice with to learn, i have basic knowledge of ASP and have attended the microsoft 1 week course on Administering a 2000 SQL Database and i have designed a few small sites so i know html and javascript. I have the database side covered its just the VB code to take the form values and post them to the sql database.
I was wondering if anyone could point me in the right direction of sample codes to play around with as i cant seem to find any which relate to this project.
View Replies
View Related
I have a form that fills data into a database, the last field in the form needs to be able to add a pdf into the data as a OLE Object.The pdf changes depending on the data entered. is there any way to "add an attachment" to the form and make that attachment the content for the last field in the database.
View Replies
View Related
I am creating a web interface for an MS-Access database This db has 3 fields called 'picture1', 'picture2' and 'picture3' In the database these are used to contain pictures, word documents or any other kind of file.
To store the files directly into the database I use 'Insert Object', use Object Type 'Package', then I drag the desired file into this package. How can I make the content of these packages through my web interface visible? or how can I download this content to the users computer trough the web?
View Replies
View Related
I'm trying to limit access to certain portions of our intranet application from certain user levels. For example, an admin user would have full access to the site while a data entry users could only access small portions of the site. What is the best way to restrict pages? I have a UserLevel field in the database for each user and have already added this value into a session variable. What about pages that should allow Admins and Managers, but not data entry users? I am using a SQL Server 2000 database .....
View Replies
View Related
I am developing a voting system. How to preventing a user votes continuously? Maybe cookie is useful here, but I don't know how to use it. Could you give me a example?
View Replies
View Related
Is there any way to use asp to determine a users SQL Server database access rights.
I.e I have given a users data read only/ data write only in SQL server, how can I pick that up in an application so that only write only users can see a hyper link.
I know I could create a few more pages with a table in a database with various rights but I just want to read rights directly allocated from SQL Server.
View Replies
View Related
I want to create directory and set access permission to specific user.
i tried with wscript but it's not working, i used "cacls" command it's working only NTFS partition but i used to fat32 . how to set directory permission with asp script
on fat32 so anyone help me?
View Replies
View Related
I have created a form with simple fields such as address and phone number. I would like to, in real time, take the value a person puts in for name (ex. John Smith), check a database to see if he is there, then to populate his address fields and phone number to save the user the trouble of typing it in repeatedly.
Any ideas how to go about this? I created a button for the user to "look up" to see if his info is saved but cant seem to get the syntax write. I have written similar code for the information to be put in the database, and it works, just need to retreive it while the user is on the form.
View Replies
View Related
I have a form on an ASP page that has 5 text boxes, for data entry. I am trying to get data from the text box, and pass it to a hidden text box on the form.
The hidden text box is called "MyDateTime" (a SQL date and time value). I am attempting to concatenate data from two other textboxes (one for date and one for time) to give a string like : "8/8/2004 8:00 AM" I am trying to use the following: Code:
View Replies
View Related
Looking to populate an access db table 'ole object' field through asp code.
View Replies
View Related
I have an asp app that connects to an Access database. It works properly at my work on XP with IIS5.1 running.
I zipped up the asp pages and the Access database and emailed it to my home, which is XP and runs IIS5.1. When I recreate my work environmnet at home and try to update the database I get the following error when the code hits my AddNew method.
Microsoft JET Database Engine (0x80040E09)
Cannot update. Database or object is read-only.
I've tried going into Access/Security/Tools/User and Group Permissions and setting all the tables to be able to update. I've even created new ODBC drivers, but neither has worked. The database is not set to read-only.
View Replies
View Related
I would like to use the form object - list/menu to display out the data from database so that the user can make the selection. May i know how to do it? If possible.
View Replies
View Related
I have machine A and B. A hosts my ASP page which is to create a user account on the machine B. The machine are not on Domain and not in AD environment. I userstand the the web page from A is to create a user account on B should use Impersonate function to log in as the user from the machine B which has the Admin rights.
So I did that.. But It does not seems to be working. I got this famous 80004005 error. I know it's something to do with permissions rights but I couldn't think of anymore. I have tried so many options.
View Replies
View Related