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?
I have a little code to add multiple items to a shopping cart based page. This code works perfect, but it adds all of the info to the same input fields every time it loops. I need it to change the input names each time it loops. Here is the code:
I have the following code (part of a larger asp page) to create the user input form for creating user accounts in AD.
What would be nice is to have the radio control (in red) to be created as the result of interrogating AD to retrieve a list of containers (we have a container per office location) so that only relevant controls are available, and if a new office is opened or they shut one down, the form can stay the same. Is there a way to do this? Code:
I have a form which inputs info into a database. However what I would like is to populate a select box directly from the dbase. When the form is entered the field is updated along with all the other info.
I have enclosed two of my pages - I think I'm nearly there.
I have sent form data through email using .asp before but I have never done it when you are using a form that has createelements involved. I have a form w/ 3 inputs, two text inputs and one select combo box. if i click an add user button it will appear with another row of 2 text boxes and a combo box, and you can repeat up to as many as you need. I am trying to figure out how to mail all of those values to someone. Is there an easy way. Below I will attach the code that I use to name the fields when they are generated maybe it will help....
<SCRIPT language="javascript"> counter = 1
function addRow(id){ var tbody = document.getElementById(id).getElementsByTagName("TBODY")[0]; var row = document.createElement("TR"); row.setAttribute("id","tr"+counter);
var td2 = document.createElement("TD"); var input2 = document.createElement("INPUT"); input2.setAttribute("type","text"); input2.setAttribute("name","pName"+counter); input2.setAttribute("id","name"+counter); td2.appendChild(input2);
var td3 = document.createElement("TD"); var input3 = document.createElement("INPUT"); input3.setAttribute("type","text"); input3.setAttribute("name","userName"+counter); input3.setAttribute("id","prc"+counter); td3.appendChild(input3);
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 .
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.
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!
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)
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.
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?
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?
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?
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?
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.
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
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:
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.......
im new to the rss "movement" and would like to implement it on one of my companies internal sites. we have a site that allows users to leave messages for other users based on email address. so for example i can visit the site and type in my email address and if any messages are waiting they will be displayed. the page uses a GET to fetch the messages based on email address so the URL looks like this:
http://mysite.com?emailaddress=my@address.com
since the address is passed in the URL i imagine ill need an rss feed that does the same kind of thing... can anyone point me in the right direction or get me started with an example? im ot even sure if this is something that can be done simply with some ASP object, or if ill have to actually write out some XML at some point.
The problem is that I cannot create an object at the Application level using GLOBAL.ASA. However, the aftfam object works perfectly well when created on an ASP page using Server.createobject. It outputs "true556" which is expected. The problems does not seem to be syntax since the reference to the AUtils object seems to work just fine. Is there some magic difference in my VB code that differs depending on how I create the object?
I've been developing a dynamic content management system that you can hook up to any database (with minimal changes) and manage any of it's data. Ultimately, I'm looking to compile the scripts then sell them compiled so nobody can take the source code. Anyway, I'm not sure how to go about making a component out of these scripts and if anybody is willing to do this for me, I can either compensate you with money or a free copy of the software. A link to a working version of it can be found at http://adminscreens.libdev.com/?cDB=dsnPredig. Use the demo login (demo/demo).
If nobody knows how to actually compile the scripts, I guess the next best thing would be to point me in a direction of a company or whatever that can get it done for me. I've tried using ASP2DLL and various other articles with little luck. All of the VB code is in a single include file.
I have being working with making an edit field over the past few days. The edit function is now working fine. The edit fields that i have are for id, subject, notes, timedate.
All of the edit screens are one line text screens. What I want to do now is increase the size of the notes box to a larger textarea type box to make it easier to edit notes. The notes field in the db is a textarea field. Code:
I have an application I am working on that uses "compiled" asp pages. Once the asp pages are done, they are moved into a VB6 dll to be Response.Written from there. This work great, and results in keeping our code safe at client sites. Currently this works great here and at most client sites. I have one client who is having intermittent problems with this setup Code:
i want to create a page that will accept any rs of data and create a standard excell page. So i can have a bunch of report pages that any number of columns and and number of rows and submit that rs to my xls creation page? I hope i'm explaining this right.
my first question is how do i pass over an entire rs to my xls page? second how do i create a xls creation page that is open ended on the formatting side of it.