Retain The Field Information

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:

function verifyBlank(thisForm){
if (thisForm.TeachersName.value == "none" || thisForm.Lab.value == 0 || thisForm.Class.value == 0 || thisForm.Subject.value == 0 || thisForm.PeriodFrom.value == 0 || thisForm.PeriodTo.value == 0 || thisForm.Day.value == "none" || thisForm.Month.value == "none" || thisForm.Year.value == "none")
{
alert('Incomplete information');
return false;
}
return true;
}

View Replies


ADVERTISEMENT

Asp....login...store And Retain Information

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?

View Replies View Related

Information From A Memo Field

I don't know what i am doing wrong. I have an access database,and One of my fields is
Memo format. So when i try to display the information in that field, I was unable to do so, nothing would come up in IE. but the data is there in the fields.something like this.

response.write(rs("description"))

when i changed the field to "text" format, everything worked perfectly fine, ASP was able to display the information stored in that field. But when i changed it back to memo, it would display nothing.is there like a special way of displaying information stored in a Memo field?

View Replies View Related

Deleting Field Information In A Given Record

I'm trying to delete some record information but only a set number of fields. when i run the following, it deletes all the record and not the field information in the given records:

set rs = server.CreateObject ("adodb.recordset")
StrSql = "DELETE field4, field5, field6," _
& " field7, field8, field9" _
& " FROM tblStock" _
& " WHERE field1 ='" & Request("loc") & "'" _
& " AND field2 ='" & Request("pdt") & "'" _
& " AND NumberOut =" & Request(" numberout")

'DEBUG ONLY
'Response.Write StrSql & "<br>"
'Response.End
cn.Execute StrSql

View Replies View Related

Displaying Information Based Off An Empty Field

I've been searching for an answer to this for quite some time now and have found nothing, so maybe (hopefully) someone out there will be able to help me.

At my work, we have a lot of folders for different jobs we've done. And right now, we have more than one person making the folders for all the new jobs that we get. I am trying to make a database were it will only show the jobs that have not had folders made. In order to do this, I've created a field titled "Initials". I want the webpage to pull up all the records where the Initials field is empty, but I'm having trouble doing that. I've tried a few different things and have found no success.

I'm not having a problem accesses the database or updating it, just displaying the right information. I'll give a little illustration (because I'm never good with words):

Say I have 3 jobs: Job #1, Job #2, and Job #3. Someone has already made job folders for Job #1, but Job #2 and Job #3 still need to be made. Since Job #1 has been made, that means there are initials in the initials field of the database and thus, I do not want that Job being displayed on the "To Be Made" page. Job #2 and Job #3 do not have initials in the initials field and as such, I want to display those jobs....

View Replies View Related

Retain Whitespaces

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?

View Replies View Related

Retain Variable Value

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.

View Replies View Related

Retain Same SQL Statement

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.

View Replies View Related

How To Retain QUERY_STRING Value ?

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:

View Replies View Related

Retain Check Box Value

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.

View Replies View Related

Retain The Contents Of The Form

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.

View Replies View Related

Retain Value Of Pulldown List

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?

View Replies View Related

Retain The Textfield Values

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 ?

View Replies View Related

Retain Checkbox Status

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.

View Replies View Related

How Is It Possible To Retain The Textfield Values ?

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..

View Replies View Related

Session Variables Retain Values Even After The .Abandon

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.

View Replies View Related

Retain Values On The Form When Posting Back To Itself

I have simple form where user enter the search criteria and the form is
posted back to itself and runs a query based on the values that are entered.

Everything is expect the values that the user enters disappears everytime
the form is refreshed when posting it to itself.

Is there anyway I can retain the values that were entered on the form?

View Replies View Related

Possble To Retain Orig Request.ServerVariables("HTTP_REFERER") Thru Svrl Refreshes?

I have a "Email this page to a friend" form that submits to itself and contains the hidden input value="<%= Request.ServerVariables("HTTP_REFERER") %>".

The value="<%= Request.ServerVariables("HTTP_REFERER") %>" is to obtain the URL of the page that the person wishes to send.

The problem is, if someone creates an error in any of the input fields, the page submits to itself again and displays the errors. When this happens, the original HTTP_REFERER url address is lost and now replaced with the url of the "Email this page to a friend" page.

Is there a way to retain the original HTTP_REFERER value even though the user refreshes the page?

View Replies View Related

LEFT JOIN On A Date Field And A Numerical Field - Using WHERE Clause

I am using a Relational database for my site and i have the following tables:

FIXTURES, GAMEDATES

the fields in FIXTURES are:

GameDate
Home
Away

(All of the above are numerical fields)

the fields in GAMEDATES are:

DateID(integer)
GameDate(#Date Field#)

What i have done is in the GAMEDATE field in the FIXTURES table i have used the ID number of the date that i wish to assign to that record - using a LEFT JOIN to display the actual date that is pulled from the GAMEDATES table (That which corresponds to the relevant id used in Fixtures)

The problem is that in some of my code i want to display records using sql and sometimes in the where clause i use the following:

WHERE Fixtures.GameDate<=(Date())

obviously meaning WHERE GAMEDATE is LESS THAN or EQUAL to TODAY.

The thing is when i use the join it does not use the where clause and displays all of the records in the FIXTURES table.

Does any one know how to get around this, i have not received any error messages it just isnt displaying the right data

View Replies View Related

Comparing Field Data From Previous Field

Im comparing values in a field while doing a loop if sAct<>myData(5,i) then At the end of the loop I make the value of sAct equal the current myData

This will work when comparing other fields withing my recordset (so I know the statement works) but it will not work for the field I want to compare. The only difference with this field is that it has null values. Could this be the problem? if so, how do I deal with nulls?

View Replies View Related

Fill Field Based On Another Field

I have a input form with 5 fields. One of the fields is MajorNo and the other is named Description.

I have a reference table in my MS Access database (tblMajor)that lists the major numbers and their descriptions.

I would like to have the description field in my ASP automatically filled based on the major number entered on the form, so the user will only need to input the major number when submitting to the Access table (tblSalesTotal).

View Replies View Related

Row Information

I have a database page with a table. I am using ASP and MSSQL on a Windows 2003 machine.

When I get the database information displayed in the table, I have something like the following:
<table>
<tr><td>row1</td><td>row1</td><td>row1</td<td>row1</td>
</tr>
</table>
The table has a total of 167 row that would be divided into five categories.
How can i get the above table to show:
<tr><td>row1</td><td>row2</td><td>row3</td><td>row4</td></tr>

View Replies View Related

Updating The Information

i'm trying to add the data of such client, some of his data have been added already but if i'm going to add or update his data (additional info.) what happened is the data is being added into new row not on the specific client. Code:

View Replies View Related

Error Information

I would like to email detailed error information from my website when an
error occurs.
I tried to use "On Error Resume Next" and if an error occurs check the Err
object and the AspError object returned by Server.GetLastError(), but I
didn't get the same amount of details as I can see on the browser's window
if I don't set "On Error Resume Next".
Is there a way to get detailed information from IIS ?

View Replies View Related

Status Information

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.

View Replies View Related

Clear Information

When I submit information i post it to a page and when it’s reloaded it runs as code accordingly if I refresh it re runs the asp because the information is still posted. How do I clear the posted information? Or possibly after it runs the asp code alter a value in the posted information.

View Replies View Related

Sending Information In A URL

I would like to have my application send a 'request' to an ASP page on my server. something like:-

http://www.mydomain.com/registration.asp?name="Fred"&age="25"

The browser then displays the full URL including the
parameters: name="Fred" and age="25"

Is there any way I can send the parameters without them appearing in the URL.

View Replies View Related

Retrieve Information

how can i retrieve information on a form page that once previously submitted by the user so that when the user goes back to that form page it will remember what they inputted instead of having them to retype it again? do i have to use session? can somebody please help me... what would be the easiest and most efficient for a newbie to tackle this problem?

View Replies View Related

Update Information

I have an update page, when user changes their info. Click update button then go to the update.asp:Code:

LastName= Request.Form("LastName")
Conn.Execute "Update UserInfo SET UserID='" & UserID & "'

'Send an email to confirm…
'Thanks for updating your information

If I refresh the page, it keep sending email. How can we prevent sending email if he/she keep refreshing the page (do not want to disable the refresh button).

View Replies View Related

Secure Information

I've an ASP page in wich the customer write his card number for the payment. How can I make this information secure when it's sent to the server?

View Replies View Related

Information Encrypted

I have a login page, which is not in SSL. However, the script that processes this information is. While that information passes to the login page to the page that processes this information, is this information encrypted?

View Replies View Related

Hardware Information

I'm trying to make a web site that get user hardware information (processor's id and motherboard's id, one of them at least).there's been already one week and nothing yet.I have 2 servers:

windows 2003 server
windows XP professional
both have wmi and iis

View Replies View Related

Information Using SOAP?

I am looking for tutorial and/or help on regards to accessing information using SOAP using ASP. I'm proficient in ASP, but know ver little about SOAP and XML.

View Replies View Related







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