I have a form which submits data to a new page based on the checkboxes that are clicked corresponding to each row of data. My next page has a cancel button which takes me back to the first page I have to retain the status of the checkboxes that were checked.
How do I do that? The no of checkboxes depends on the no of rows of data returned
I have them named in a for loop as strcheck0, strcheck1 and so on . the data that is submitted to the next page is assigned to the value attribute of checkbox.
Im trying to figure out if a checkbox was checked or unchecked on an ASP page. I want to store Completed or Not Completed to a variable based on the status of the checkbox. My first page has all the checkboxs and my second page will do all the processing so i need to pull the data from the prior page.
This is what i have so far:
dim chk1stat If request.form ("chk1") = true Then chk1stat = "Completed" Else chk1stat = "Not Completed" End If
Status = true and false is not working for me is there another way?
When a Button is clicked in a Form, the JavaScript 'prompt' dialog pops-up for users to enter any text. When the user clicks OK in the prompt dialog, the text is populated in a TextBox & the Form posts. I then retrieve the text using Request.Form.
The problem I am facing is in retaining whitespaces in the text the user has entered. Assume that the user has entered the following text in the JavaScript prompt dialog (note the whitespaces in the string):
"abc def ghi jkl"
The double quotes have been added just to show where the string ends; they aren't a part of the string.
Now when I retrieve the string using Request.Form, this is what I get (once again please neglect the double quotes):
"abc def ghi jkl"
i.e. irrespective of the number of whitespaces a user has inserted in between the words in the JavaScript prompt dialog, Request.Form always replaces all the whitespaces in between the various words in the string with a single whitespace.
How do I ensure that the whitespaces entered by the user in the JavaScript prompt dialog are retained by ASP?
I have got a page called view_month which displays records and allows users to update records then returns back to the view_month page. Because my view_month page uses an SQL with the table name as a variable which retrieves its value from the form in the previous page. My problem is that the table name disappears whenever I finish updating and tries to return to the view_month page. How can I retain the variable value so that whenever I updates and return the SQL will still contain the value.
I still have the weirdest problem. I posted that couple of weeks ago and I got too busy to follow up. When I was back, I redid the whole page from scratch and still got the same problem:
I have an Access database containing list of activities for my students, and each activity can be searched by a number of criteria and is linked to a file they can download... The search dn diplay of the results as well as downloading the file from the database work all fine... The problem starts when I have results that would span more than one page... When I click next, the new page displays a list of all records. I Response.write the query to know what is hapenning and I found out that the query reverts to Select * from table and loses the WHERE statement.
I will attach the code that I tried to document as possible.... Most of the code is created by Macromedia Dreamweaver except for the form variables and SQL statement... The code is long so ignore HTML and CSS.
I have an asp application where there are two pages. The first page pulls some data from a database and displays it in a tabular format with hyperlinks. When the user clicks on a particluar link, he/she is taken to page 2, where the specifics of that item come up with various text fields and drop down boxes, etc Code:
I have a form, which has various text boxes,check boxes etc. The problem is, when the user hits the submit button, if the form validation finds an error,say, the user forgot to fill in a field,the ticks from the check boxes dissapear.
as if the check boxes have reset themselves. How to I stop this? Is there a way to retain check box values if the form is submitted? This is also occurring with my list boxes,too.
I am having 14 textboxes on the form and One data grid control and one Button That button allows to open new web page (in new window) where in I can select some products from the list.
The products selected in the list are added in the Grid of my original form. I use response.redirect by passing parameters for that purpose. but that wipes out the contents of the textboxes. how can i retain them.
I have one .asp page with a SELECT pulldown list on it and some INPUT fields. When SUBMIT is clicked the form data is submitted to that same page and validated. If INPUT fields are empty the asp code will insert a visual indicator (e.g. *) to convey that the field must be filled in.
However, if the user has made a selection in the pulldown list and has left an INPUT field empty, when the form reappears after validation, the pulldown menu looses its selection and returns to its default value.Would anyone be able to provide a solution to this?Or do you need to see the code first?
how do i retian values in the textfield even after it is submitted ? Like for example, when you fill out most application forms, after submitting if there is an error it redirects you back to the first page alerting you of the error but the other values still remain. I would like to incoporate this function. where i can find them ?
how do i retian values in the textfield even after it is submitted ?
Like for example, when you fill out most application forms, after submitting if there is an error it redirects you back to the first page alerting you of the error but the other values still remain..
Can anyone tell me on how to retain the information that was being key in previously and mark which field was being filled in incorrectly rather than reset all the field to previous value?
I have done checking like this but i think it is not quite user friendly:
I have an asp driven website using an Access database.
Basically the user arrives to the site selects the product from a list. From their they are directed to another page where they see the starting price and then they can customize the product from a list of options that is also database derived. The result is a final price.
What I would like to do is have the ability for the user to save that product and on their next visit bring it back up along with any other products they saved.
(note...all I have is done using asp classic, access database, and some javascript)
Could someone direct me to a good or source or help me get started on how to create a user logon and retain their user info and how to do the above?
I am developing a membership based website for car auctions. It uses the session object on many pages, most importantly on user personal pages. When the user session ends, i.e., on logout, I use the Session.Abandon to destroy a session object associated with a particular user, and also turn a boolean variable session("Valid_User")=False (which was turned ON at the time of successful login and used on user personal pages for authentication).
But, when I go BACK and browse the previous pages, they still appear with the specific user's data, who logged in last time on the same browser. Why is it so? When I refresh the pages, only then the session variables' values are erased.
Secondly, my site doesn't allow me to login as a different user, even after logout, because I have put a check on the login page so that it doesn't allow a user to login again during his current session, which again means that the logout process doesn't destroy his session.
i have this code to show the numbre of users who are currently in my asp page... but its showed directly in the page and i want it to be in the status bar.
I'm looking at C# and ASP .NET these days. Visual Sudio 2005 looks like a neat dev. env. But before committing, I would like to know more about the current status of these tools. I noticed, that my site hoster does not support ASP at all.
And more providers do not... PHP however, IS supported a lot, but does not have anything like .NET facilities, does it?
What is the status of the language wars these days?
Is there anyway I can check to see if a server is online in my network with an if statement saying if online response.write "Online" else response.write "Offline"?
I'm have a page which requires considerable database processing before writing the results to the page. I therefore wish to have a "Please wait message" up on the screen whilst the main page is processed.
I've tried Response.redirect hoping that the previous page will stay until all processing on th main page is complete and id drawn but this is not the case.
I want to offer on our organisations intranet a support site for our webmasters, one of the features I'd like to add is a server status page. Currently webmasters use MS Frontpage to connect from their local PC to our development servers, work on their sites, then publish from there to our live servers.I have found an ASP component that can PING a server(s) however whilst normally this would be the ideal solution, are organisations firewall currently has PING blocked, I have spoken to the person resonsible for the firewall in the hope that he maybe able to unblock it for specific servers within our organsations, thus allowing me to check whether the servers are up or down, but I expect the 'block' is probably a blanket block, ie all or nothing, so its probably unlikely it'll be changed.how I could check using ASP whether or not its possible to talk to another server without using PING?
I am wondering if this is possible. I have an ASP page that calls a stored procedure (MSSQL). I want to display the status on the ASP page as each process is executed on the Stored Procedure and ASP page. For example, when I connect to the database, show the user that a connection has been made or in the stored procedure when some tables are updated to show that.
I use CDONTS to send out my mail. But I want it to report me whether it can successful delivery or not.I want it both delivery report and non delivery report. Does this object has property to do that ?or Could you please suggest me other componets that have these feature?
I'm trying to see if there is a way to display what a users Cookie status is. For new members joining my site may have cookies blocked and not allow "Session"'s to active...
i've got a client that wants to be able to review records about IIS generated emails.
in his own words, he wants the "ability to track and report message status (i.e. how many messages were sent successfully, how many were blocked, how many bounced back with an incorrect address)"
i'd start by adding a new row containing the email address, dateTime, etc when first sending the email, but how to track the rest of the info? for instance, if an email bounces back, does it bounce back to IIS or to the "from" email address? what about the blocked (i.e. spam filter) emails? is there a way to track blocked email? since most spam filters don't generate response emails, there's not much i can really do about this, is there?
this will be run off an IIS6 server. can anybody tell me my options?
I have some experience in asp coding and we have a nice "Help Desk" portal in our company. The only thing it's missing is an online indicator, where people can see online availability of other co-workers and so on. I want to keep the portal simple as possible.
We are using MsSQL as database. There are about 10 users who are going to use the online indicator. Login is integrated in AD / LDAP. I just dont know where to start making of the online indicator?
I used a Response.Redirect "page.asp" as the last command in ASP code that processes a submitted form from an Adobe PDF form (using HTML format). For some reason, if there is any linked file (image, stylesheet, javascript) in the target "page.asp" IE hangs until you press Escape. With Refresh, the page loads completely.
I checked the web log and the entry for "page.asp" is 200 (OK) but all the files I mentioned above all show 400. The description for this status code is pretty generic and not much help (a syntax error in the request and the server doesn't understand it
I can't control the syntax of the request so how can this be fixed? (and how could the submit from the PDF form have anything to do with this since other HTML forms directed to an ASP page with images etc. works fine.
When I launch a popup window from our application, the status bar now shows up for some reason. I explicitly turn it off in the code that launches it. This problem just started happening after our app has been around for more than a year. It may be because of I.E. SP2, but I'm not sure yet. If anyone has experienced this problem.
if objIndexMail.Send then Response.Write("Mail Sent") else Response.Write("Failure. ") end if
and it's coming up as Failure every time. Is there a way I can see the status of the .Send command, and why it came up as a failure? no errors are being generated, it's just not sending..