Avoiding Concurrent Usage Of An ASP Page

I have 4 ASP pages where an user can update some fields and submit the page, so that the fields are updated in the Database(Sqlserver), I need to handle one situation.

1) At a time I need to allow only one user to update the details in a page.

2) I need to stop other users who are trying to access the same page concurrently(probably with a message or Redirecting to other page where he can see the details in a report format).

3) Session timeout in my application is 60, So if the first user leaves the page open for a long time , I think it would be a problem....the other session has to wait for a long time.
I have no choice in decreasing the session timeout interval.

Please suggest , How can I handle this in ASP.

View Replies


ADVERTISEMENT

Avoiding Page Numbers

When we print an HTML page from the browser,the Page Number at Top righ) and page URL At bottom is printed.

How can we avoide these information so that our page print out look similar to a simple printed page same as word document?

View Replies View Related

Handling Concurrent Users

I have an issue with handling concurrent users in asp page.
The server is win 2003.

Asp page calls a dll developed in vc++ for displaying reports from oracle database.
Application works fine for less than 10 users .but it fails with object cannot be intialized for more users.

I tested the same application in my m/c for load testing it supports 50 users without problem.

Iam wondering any settings at IIS or OS needs to be checked for supporting more users.

View Replies View Related

Preventing Concurrent Logins

I would like to prevent a user from logging in with their user/password combination on a different computer or even a different browser window, if they are already logged in. I have a login page, from which I use a DB check to verify user/password info. Also, I have a bit loggedIN field in the DB, which I use to see if they are currently logged in; if so, I prevent them from logging in a second time.

Unless they click the "Log Out" button, then the DB value does not get changed. Any suggestions as to how I can log them out, even if they simply close the browser window or jump to a different page?

View Replies View Related

Crystal Report Concurrent User

help me regarding the concurrent user for crystal report. im using asp classic. how can i prevent the concurrent error? and also stop the server from sending me an error report directly to my mail? the error is asp 0194.

this is related to concurrent users of crystal report upon reaching the limit. i would like to stop the sending or stop the error if ever so that i will not be recieving the error message.

View Replies View Related

Avoiding Duplicates

I have a string value which has the bellow content.

Dim aString as string

aString = "1,2,4,2,2"

where aString is a parameter set dynamically based on the user loggin into the system. Now All I want to do is to eliminate the duplicates. ( In this case I need to keep only one "2" and remove the remaining "2" , so my final string should be "1,2,4" ).

How could I do that. I was thinking of an array, but the issue is, If the "aString" is empty I believe array will return a error. So any other way of doing ?. Or simple asp functions which will eliminate this.

View Replies View Related

Avoiding A RDBMS

I want to avoid using a RDBMS because I don't have time to administer a real database if something goes wrong (for a free website).

So when ever a user submits information, it will dump into a unique html file. Then a link will be created to it on the home page. I am concerned about locking the homepage incase more than one user needs a link created at the same time.

Any suggestions on how to handle this? The user information is not confidential and is for public posting so I'm not concerned with securing information and logins.

View Replies View Related

Avoiding Query Timeouts In ASP.NET ?

We are using ASP.NET on IIS5 to process requests
in a database.

How can one make choices in the .aspx based on
if a user has or hasn't changed a field? Is it possible
to control the ASP.NET environment by use of
some client side scripting ( ?changes=yes to URL)
or is there a way to tell in .aspx which Label elements
has changed?

Only solution i can think of currently is to query the
DB and then do an field by field comparision. Is that
the best way?

View Replies View Related

Avoiding The <p> After A Form Submit

If a form is situated in normal HTML then a paragraph tag is inserted after the Submit button.

If the form is placed in a table then the preceding paragraph tag is supressed but the trailing paragraph space is still inserted.

Any suggestions please?

View Replies View Related

Avoiding IE Warning Messages

I asp.net pages that run on an intranet IIS server. Some op the pages use
XLM DOM doc.Load(sPath) to open and parse a XML file. Every time the
doc.Load(sPath) executes in IE6 a warning message comes up
"This page is accessing information that is not under it's control. . . "

How can I avoid this message. It is a great anoyance to the users. Do I
need to create some time of certificate to pass...

View Replies View Related

Avoiding A Duplicate Entry To An Access DB Field

As part of a data input script, I ask for a user name to be input into an Access DB field called surprisingly, "UserName". I would like to ensure that username is not duplicated. How do I do that before inserting the data. My example show in the incomplete script below doesn't work? Code:

View Replies View Related

ASP And SSL Usage

I have a client that wants a web form to send credit card information and other personal information to an email address. (such as name@aol.com) Now I am uncertain on how to do this. I know SSL must be involve, but what is the process with this and how to use it with ASP ? How do you use SSL with ASP .

View Replies View Related

ASPEXEC Dll Usage

I am building a small Web app that will allow end users to visit a Web page, click a button which will in turn execute a batch file on the Web server which will migrate code from the development environment to QA. The Web app will also capture logins and execution requests, and the batch file currently emails the robocopy log to me.
In researching ways to get the ASP page to execute the batch file, I came across ASPExec from Server Objects - http://www.serverobjects.com/products.htm#free. It seemed straightforward enough, however I have not been able to get the permissions in sync for it to work.

View Replies View Related

Monitoring Usage

I have just figured out how to use the global.asa file to track sessions on my site. However it relies on users logging off correctly. Is there no way that I can know that the user has closed the browser WITHOUT logging off my site? I am finding users registered as being logged in when they may not be
Could anyone show me some code that I could put in Session_OnEnd that would clean up my database table of active users? Say if a user has been in-active for 60 minutes, clean him out. I have tried to do this but it hasn't worked. I cannot seem to connect to my access db from the global.asa file!

View Replies View Related

Database Usage

i have an access database which iv'e designed for my 'client' (ok, he's my friend) and now i'm also in the process of designing a website for his company - so his customers can log on and see their order status.

what's the best (and most secure) way to update the site - we don't host the site - it's hosted by someone else.

i'm totally at loss with this - since iv'e never worked with networks or servers and i just want someone to point me in the right direction. i don't want to get lock errors and the like.

iv'e heard a bit about ADO and i know some of the syntax although i'm not really sure how it applies to me here (i'm not exactly exposed to ADO since iv'e been learning asp.net 2.0 from which i understand, has totally eliminated ADO)

View Replies View Related

Proper Usage

What is the proper way of using html in asp

Response .write "<td>"& variable & "</td>"

or

<td><% Response.write (variable)%></td>

What difference does it make?I am building a table whose number of rows keep changing
When i use the second method the space above my table keeps increasing.I just want to know which method is better..I had posted a similiar question....I'm still trying to figure out.

View Replies View Related

ASP Session Usage

I'm currently working on a survey system that allowes users take the survey and then review/change their answeres in any order. The system uses 3 frame (Header,Body,Footer).

As it stands the system uses 3 sessions to get this done. One for the project they are in, one for the step they are in and one for their answers.

My question is at what point do I end up over whealming the system with sessions? I truly do not want to slow the system down that much. how I could optimize the usage of this?

View Replies View Related

Session Variable Usage

Is there a way to use a Session Variable to prevent the successful resubmission of a form if the user uses the Back button and tries to submit it again?

View Replies View Related

Display The Current CPU Usage

Does anyone have working ASP code that shows CPU usage on the server where it's running from?

View Replies View Related

Response.write Usage

Hi's there any concerns or disadvantages of using alot of respose write's (50) in a ASP page for calculations and is it better than using the recordsets to do the calculations?

Also, we are looking at moving to a secure server, will this cause any problems apart from changing all references to https?

View Replies View Related

Dynamic Input Box Creation And Usage

Can anyone point me in the right direction for dealing with a dynamically created table of shopping cart items? Each row (or Item) has a column where the user can change the quantity. Is there an easy way to grab and use these changed values when they hit the form submit button?

Or, do I need to bite the bullet and write code that filters through the form fields named "quantity1," "quantity2," "quantity3," etc... And then determine which one goes with which cart item?

View Replies View Related

IIS6 W3wc.exe Memory Usage.

I have a problem with our web servers and memory etc.

We have one application pool with a few websites in it and the w3wp.exe is
consuming about 800 mb memory now.
First we had a rule for recycling the application every x minutes or when
it's using more than 600 mb memory but when the recycle is activated the
w3wc.exe process hangs and the cpu usage goes to 100% until we execute an
iisreset.exe.

That's the reason why we disabled all the recycling options and configured
only one worker process for that application.
All the websites in the application pool use the same code, only they have a
different skin.
The website also uses xml/xsl transformations.

Is it normal for an application to push the w3wc.exe process to about 1GB???
If this is the case i really want to know how much memory dedicated hosting
companies need in their webservers :-)

We are storing some information in the application cache, but this is only
for the entire website and not per user... in plain text so the amount of
data would be no greater than 100KB at most.

The application is in classic ASP.
We walked thru the entire code and checked for correctly closing all sql
recordsets, email components etc etc etc...

What is the best approach to find out what is using so much memory and why
the recycle does not work correctly?

View Replies View Related

Memory Usage Of Managed Objects

I am in the process of writing a simple web server monitor (ASP.Net with
VB.Net). One piece of useful information for me to gather would be the
amount of memory used by objects stored in the cache, since objects are
thrown in there left and right.

Items in the cache are either custom objects or are Hashtables. How can I
get the memory size of these objects.

Marshal.SizeOf(object) does not work in this case because .Net cannot
Marshal Managed objects. I thought that I might be able to pull out the
component items in each object and build the total size from their aggregate
sizes, however that would require me to determine each objects type so that I
can correctly gather size info from the internal attributes, something that I
do not want to do.

Is there a generic way to either:

1) get the size of Managed Objects

2) convert Managed Objects into Unmanaged Objects that can be marshaled?

OR

3) some other way to get memory sizes of cached objects

View Replies View Related

Request.form Usage Not Clear

I am trying to get a thorough understanding of a code where a addition or
deletion of records can be done from a list of records. For addition part of
the form, data is being obtained from set of input boxes. Code:

View Replies View Related

Best Practices For Cookies In Classic ASP - Memory Usage

When using cookies in classic asp, is it safe to assume that using a comma delimited list of values in one cookie is much more efficient than using multiple cookies? (example below)

Response.Cookies("someCookie") = "101,102,103,104,105,106"
If InStr(Request.Cookies("someCookie"),"103") 0 Then.......

vs.

Response.Cookies("101") = "True"
Response.Cookies("102") = "True"
Response.Cookies("103") = "True"
Response.Cookies("104") = "True"
Response.Cookies("105") = "True"
Response.Cookies("106") = "True"
If Request.Cookies("103") = "True"

Then.....

View Replies View Related

How Can A Measure Server Session Memory Usage?

How can a measure server session memory usage?

I have a 20-30 session variables and I would like to know how much they memory they consume then multplied with my projected user load.

View Replies View Related

Testing Of Concurrent Users/ Load Testing

How do test my web application for concurrent users (how much concurent user connect at a time and how traffice will be affected and what will the response time?) and how it is done, how long it will takes, does it interfere with current site, etc.?

Reagarding the number of users the site will accomodate is it based on where it's hosted

Application written in ASP/Sql Server. Code:

View Replies View Related

ASP Read The Execl Cell's Data, Web Page Created From Excel2000 -- Save As Web Page

I created a web page from Excel2000, using "Save as web page..."...Publish
function. then, I moved htm file to my IIS web server. Then I added a form control, and submit button.

How can get the data on the excel file using ASP from server side?
For example, the value of Cell(1,2), Cell(2,3)....

View Replies View Related

Display Aspx Page Or Reporting Services Page In User Control

What I want to be able to do is create a user control that will display an
entire page page within it. Does anyone know how to do this or better yet
have any same code?

View Replies View Related

How To Transfer A Data Display On 1st Page To 2nd Page Upon Clicking On The Link

I like to know how to write this specifc function on ASP where the user eg: display a set of records on the webpage. Example the data are ID, Name and address.

Lets say i display the data on the webpage and i set the Name as the <a href>. So when i click on the name, it will move to another page with the id of the specific name. Code:

View Replies View Related

An ActiveX Control On This Page Might Be Unsafe To Interact With Other Parts Of The Page ...

I have an ActiveX control in my ASP page that has not been signed yet, so currently just for testing I set the Security for Intranet to "Low". When I run the ASP page on my machine (the IIS is in my machine), I have no problem, except the page prompted me with "An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?"

But, when I run the ASP page on another machine (even though the other machine is also a development machine that already has the ActiveX control and I set the Security for Intranet to "Low"), it did not prompt me the above message, and I got an error when accesing any method of the AX control (e.g Object doesn't support this property or method 'myAXControl.method').

Is this because I have to create a CAB file and mark the AX control as safe for scripting ?To create a CAB file for this AX control, do I need to create my own VB AX
Control project that contains this control and then create a cab file for this VB project ?

View Replies View Related

On Session_OnStart() Getting Fired When Going From Page To Page At The Same Level As The Global.asa

This is a standard ASP application that has several pages at the root
withthe global.asa. I set a session variable session("accountid") =
"123456" within an asp page and then response.redirect to the next page and
immediately response.write session("accountid") and I get back nothing.

But if I set a session variable session("accountid") = "123456" within an
asp page and response.redirect to a page in a sub directory and immediately
response.write session("accountid") I get back 123456 on the screen.

View Replies View Related

Including Inverted Commas To Specify Page Elements While Page Is In ASP

I am having a problem with a site that I am developing - my aim is for it to validate as XHTML Strict however, I am running into a couple of problems validating it; in my Response.Write ASP script, I am not including " 's to define page element tags as they keep throwing up errors in the page. Code:

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved