Locking All Text Boxes In Asp Page

I need advise as to how to do the following. In a asp page, the user can input
information via text boxes which goes to a database. If users click a check
box named final and submit the asp page, then next time they come, they will
not be able to change any information.

This means, I would like to grey out the text boxes so that users are unable to edit the values in the text boxes. The only way to allow edit is via adminstrator's intervention.

View Replies


ADVERTISEMENT

Two Text Boxes

code:

If request("bMarketTypes") <> "" AND request("bMarketArea") <> "" Then
Response.Write "types and area<br />"
Elseif request("bMarketArea") <> "" Then
Response.Write "area<br />"
Elseif request("bMarketTypes") <> "" Then
Response.Write "types<br />"
End If

I have two text boxes,so the possible combination both are checked,OR one is checked and the other isn't, or vice versa.Why won't this code work then?

View Replies View Related

ASP Text Boxes

I have a text box that i need to check for illegal characters. I only want to have 2 numbers allowed in them, with no letters or ( . , ' ; / ? [ etc.

how could i read the input to a string and check each character entered one by one?

View Replies View Related

Getting Text From Option Boxes

ok i need to get the text from an option box? i know you can do it with java script but it would make my life a lot easier if you can get it using asp. don't know if there is a method out there or what. any ideas?

View Replies View Related

Forms And Text Boxes

I have a form and some of the text boxes are being filled in from a search from another form. Go to this link to see the code for the form page: Code:

I want the user to see the info in the first four text boxes that are populated by the database and I want this info. to be submitted with this form, but I don't want them to be able to change or edit the info. in these populated boxes. Just want them to fill out the rest of the unpopulated boxes.

This form submits to an asp page that processes the form data and sends it to an email. how can i do this?

View Replies View Related

Dynamic Text Boxes

i have been asked to create text boxes dynamically on a web site, the user can click a button and a new set of text boxes will appear. The user can add as many boxes as many times as he wants, I have created the text boxes already using the following code.

function inserttextboxs() {
var tab = document.getElementById("Difference")

var tr = tab.insertRow()
var tc = tr.insertCell("") tc.innerHTML = '< input type=text id=text1 name=text1>';

}

The problem is I don't if this how I should be doing it when I submit the form all the elements have the same id, I need to create something with unique id's so I can retrieve the different values

View Replies View Related

Dynamic Text Boxes

how do get dynamic content to a drop down text box from a db. For example:

There are two drop down boxes. First one continents Second one countries.

The user selects content from the first drop down box and using the onChange javascript function the data on the second drop down should show the countries related with that content.

View Replies View Related

Filing Text Boxes

I have a select list which retrieves the values of a field from a database. I also have
some text fields which I would like to fill with data from other fields in the same
table which are associated with the selected item in the list. I can't seem to figure out
a way to fill the text boxes with the values from the DB in the OnChange procedure of
the select list. Does anyone know how I might go about this, or if it is even possible?

View Replies View Related

Automatic Population Of Text Boxes

I need help on this ASAP. I have to deliver this in another 3 days. There is a ASP page that has 4 text boxes. In the 1st one, I will enter a value. based on this value I enter in the text box, the other 3 text boxes should be filled in automatically. These values for the other 3 text boxes should be retrieved from a SQL Server 200 database based on the value in the 1st text box.

View Replies View Related

Text Boxes Change Colours

In a form I'm creating several asp text boxes for user input. When I look at these in IE or Firefox one or two are coloured yellow with a border, whereas the rest are the normal white with a thin blue border.

There is nothing I can see in the code that does this, and with a bit of testing I can force this condition by adding text outside the text box. Very weird. Has anybody seen this behaviour before. I'm using Dreamweaver MX 2004, but I'm feeling it's not DW at fault here.

View Replies View Related

To Transfer The Data From Database To The Text Boxes In ASP

I need some ideas in this if you can please help me.The folllowing is the scenerio:

I have a form which is the normal html with some validations and scripting done in javascript and i have a text box by name ticket no when the user enters a ticket no which exists in my database I need to update all my other form textboxes and textboxes with the data in the database else I need to show a alert that this doent exist in the database.

usually the event handling is done in javascript but now i have to call server side connection I have no clue how to do this.

View Replies View Related

Searching Database With Multiple Text Boxes?

The user can search the database when they put in a date, that works fine, but when i put in another text box to search the database for a certain date range Code:

View Replies View Related

Validation Of Dynamically Created Text Boxes

I'm using ASP 3.0,IIS and Java script.I have created some text boxes Dynamically using java script.So the text boxes has got the same name. This is the code i'm using for that..

aTable1=document.all('myTableTBody1')
aRow1 = aTable1.insertRow(aTable1.rows.length);
aRow =aRow1
aCell = aRow.insertCell(0);
aCell.align = "Left";
aCell.width = "5%";
aCell.innerHTML = "<input type='text' name='Course' size='20'>";

Problem is that when i'm doing client side validation using javascript its not taking values..Here 2 or 3 or 4 text boxes with the course will be created when i use
this code:

if (document.Qualificationdetails.Course.value == "") {
window.alert ("Enter Course !");
document.Qualificationdetails.Course.focus();
return false;
}

it does not give any validation...

View Replies View Related

Dynamic Form Lists And Dependant Text Boxes?

I am having trouble with the ordering page. I would like a dynamic form list to look at a database and when the user selects a product code, the text boxes containing description and price change too to reflect the product code.

The user will be entering in their contact details, so I dont want the page to reload too because I will lose that info. Code:

View Replies View Related

Form :: Make The Input Text Boxes Smaller Or Bigger

I am currently making a form in asp and when i make the text boxes they are all formatted to the same size, even if I use the width=*** to change the size? Is there another way to make the input text boxes smaller or bigger?

View Replies View Related

Msaccess Db Locking Up

I am having problems with some ms access mdb queries that used to work fine up to about two weeks ago. All they now do is lock the database (produce an ldb file) or say there are key violations.

Nothing has changed to the asp pages or the database so I am scratching my head (amongst other things) to work out what the problem is - any help much appreciated to restore sanity! I even get the same errors when I try the sql statements below on a local copy of the database (its about 50mb) on my local machine. Code:

View Replies View Related

Locking Files ??

I have an asp intranet app which allows users to download files from the
server.

It all works fine but now I have been told that in the case of Word and Excel files the user, after downloading or opening the file the file must be locked in some way so that other users cannot change it. On top of that I also have to allow users to save changes they have made to these files on the server.

View Replies View Related

Locking With Access

I am having a problem with locking, and it is crashing our website. I suspect it is a locking problem because everytime the database goes down, I ftp into the site and see the dreaded *.ldb file. Access is susposed to support from 15 to 20 concurrent users, right? The log files show no more than two or three users accessing the database at the same time. By "same time" I mean within one second.

Below is the code which updates the database. Can anyone see anything wrong with this?

Also, if I wrote the information to a text file with the FileSystemObject instead to Access, would I solve the problem of locking?

BEGIN CODE .....

View Replies View Related

Locking Pages

I have developed an asp application to track the training of employee training records. I'm close to done but I have one nagging problem. Multiple users can log in at once of course, but I don't want more than (1) person to open a training record. So I put some code in: Code:

View Replies View Related

Locking Header Row

I know this is client side but this is coming from an asp page. Is there a way to lock two rows on a table so that when a user scrolls down a long table they always see the header row? Without using frames.

View Replies View Related

Webserver Is Locking Up

i am having this problem with my webserver. everytime i run an asp application that will display pictures, my server will lock up. i used to this it was due to the asp itself, but whenever i run asp apps that display pics, it works fine.

this only happens when i access my websites from my personal computer within my network. whenever i access the sites from outsite my network, it runs fine. is this a problem due to my server or is it because of the data that flows through my network?? any thoughts?

View Replies View Related

Locking MS Access

I have a table at MS access database, and I want when I perform an insert action at that table to be locked, noone other to insert. maybe can do updates or see the values but no insertions values to that table via the asp application. Is that possible?

View Replies View Related

Locking Account Problem

I wrote this script which for now it works fine. The purpose of this code is to lock the account whenever a particular document comes to its expiration date. So, if I have a document that expired on 7/31/06, the it should lock the user's account once they'd logged in.

However, the problem I am having is that is locking everyone that has already an expired document. What I would like it for the code to check during the current month. If a document expired, say yesterday 8/9/06, lock the account, else let then user continue to access their account. Code:

View Replies View Related

Access Database Locking Up

I have an access database that used to be on 1 box and now is on another.
There's asp pages calling it. The gals that use it said they used to be able
to get into the access database at anytime and modify it without the asp
pages locking up. Does anyone know how this could occur?

View Replies View Related

Passing Text ID From One Page To Another

my database has a table with a primary key that is both text and numeric
(seems like a bad idea now but there's 1000s of records so too late to change it ((((

basically i want to pass this from one asp page to another using the ?ID=house_ID

house_ID being the offending key

the other end i pick it up using lngRecordNo = Request.QueryString("ID")

and then my sql statement is as follows ...

strSQL = "Select * FROM House WHERE House_ID LIKE " & lngRecordNo

but it doesn't work .... i'm getting the rather generic error message of Too few parameters expected 1.

anyone got any ideas

also if i want to use date in a where clause how do i format it i've tried < " # Now() # ";" but it doesn't like it because of the quote marks inside of the sql statment.

View Replies View Related

Get Text Out Of Html Page

I have an html page, how would I be able to just get the words in it? I mean I can probably program to get it but is there any existing tool that we can use and just fetch the word content of a html page?

View Replies View Related

Grabing The Visible Text Of A Page

I was wondering if there was any way to grab all the visible text off a page using asp and xml. I can get all the html of a page. Can anyone help we be able to grab the visilble text.

View Replies View Related

Displaying Text On Asp Page From Access

I've created a db field with Memo type, and I have stored some text with
carriage returns (no html) So the 3 words start on a differnt line. In
access this displays correctly ( each word starts on a new line).
However when I display these on a web page all the words appear on the same
line.

I need the words to be displayed on a seperate line.

View Replies View Related

ASP Page Emailing Text File

I have an asp page that successfully writes out the form data to a text
file. I would like to use Blat (or other free email utility) to send
the contents of the text file to a user. The code to email is as
follows:

Dim stdout, shell, cmd
function ExecCmd(cmdline)
set stdout = wscript.stdout
set shell = createobject("wscript.shell")
set cmd = shell.Exec(cmdline)
do until cmd.status=1: wscript.sleep 5:loop
ExecCmd = cmd.stdout.readall
End Function

ExecCmd("blat .prodapp.txt -s "Product Info" -t Join Bytes!")

I am guessing that it may not like the two sets of double quotes. Is it
possible to do this? The company is not willing to spend $$$$$ on
actual sendmail package.

View Replies View Related

Passing Text From One Frame/page To Another

I have a date in a frame/page that i want to pass to another page. I can succefully pass a static value, i just can't pass a value from a text box.

I tried to make everything public. I believe that Me. may only refer to the page that is orginating the action. But how do I pass the text box. Can we assume since I can pass the static value, that the issue is how I grab the textbox value Code:

View Replies View Related

How To Pass Disabled Text Box Value On Other Page

I am trying to fatch disabled text box vlue on other form but i cant...

View Replies View Related

Replacing Text From RSS Feed In ASP Page

I have a rss feed that I am pulling into an ASP page. In the rss there is a url with the text 'SITEID' that I need to change to my actual id '456456'. Does anyone know how I can have the ASP page replace the text in the URL? I am pretty green on all this. Here is the asp page code I am working with: Code:

View Replies View Related

Text Size Issue On Asp Page

I cant seem to alter the text size on the code below only the colour, the
code you see is all that the page consists of from start to finish that's
all of it, cant apply css nothing works. Code:

View Replies View Related







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