Choose And Enter Value One Optional

I like to validate 2 textboxes. Users ken choose to enter either one. Therefore if nothing is entered for both, im suppose to prompt him to enter at least one. If he enters value into both txt boxes, I'll prompt him again. Dunno to post this here or @ javascript forum.

View Replies


ADVERTISEMENT

Optional Params

can we write an ASP function with optional parameters?if the answer is yes,is there any refference i can use?

View Replies View Related

Optional Parameter In Javascript

I want to create a optional parameter in javascript function. How i create optional paramter with javascript function and how to use this function?

View Replies View Related

Function With Optional Parameter

how can i declare a function that will accept an optional parameter?

something like:

function newFunc(strValue1, strValue2) --where strValue2 is optional.

View Replies View Related

Optional Fields In A Form, Converting To ASP And SQL

I am trying to incorporate a search feature, and I am having problems thinking up some code to accomplish a certain thing: I have a page that allows a user to search for Industry-specific locations.

It is a basic form with City, State, Zip, radius fields. I also want to incorporate optional fields, such as the different types of amenities/facilities that the building offers. These amenities/facilities will have checkboxes. Code:

View Replies View Related

Passing Optional Values To Function

How can i pass optional values to a function? I tried this below which gave me an "Expected identifier" error:

FUNCTION cart_state_list(selectname, optional stateid as integer = 1)

If it were php here is the code

function cart_state_list($selectname, $stateid = 1)

View Replies View Related

What CMS To Choose?

What Content Mgmt Systems do forum members and ASP pros use?

I'm looking for something fairly sophisticated (WYSIWYG editor, user permissions, versioning, audit trail, etc) that doesn't cost an arm and a leg. It should be pure ASP, and (naturally) available with full source code.

View Replies View Related

Choose A Folder With ASP.Net

I want to allow a user to select a windows folder for reading. I have tried
to work it out without success. Can anyone help me out or point me in the
right direction. I am an experienced VB6 programmer but this is my first
ASP.Net project.

View Replies View Related

Can I Choose The Session ID ??

Is it possible to set the sessionID = value?

I am storing a shopping cart in a in a temporary table and with the sessionID identifying which items belong to the different users. Ideally I want to set it to a random GUID or number so it will make it very hard to guess the next session ID and gain access to another cart if they knew what they were doing.

Any ideas on how to set the sessionID value? Do I need to go that mush in to detail?

View Replies View Related

Choose A Record

i have a database with one table... there are about 10-20 records in the table. i would need to create a page that displays a few descriptive fields of the records. just something like this.

ID NAME PRICE
1 type1 345
2 type2 567
3 type4 1000

just a simple list like this in a table, also each record would need to act as its own hyperlink, so when clicked on. using the primary key i presume, it loads another page specifically for that record. almost like a catalogue..if someone could please direct me to a few tutorials or online examples of this kind of procedure.

View Replies View Related

Choose Data From DB Randomly

i need to choose a data, randomly, in a database based n category (cat1, cat2, cat3, cat4, cat5, cat6). i only need to show 1 data of each category in the html page. kindly inform where to find a sample tuts for this.

View Replies View Related

Choose Oracle Version

I've just had a problem with an ASP page not connecting to one of our Oracle databases. It turns out that the web server has Oracle 8.1 and Oracle 9.2 installed and that my
ASP page was trying to connect with Oracle 8.2. The TNSNAMES.ORA file for this version of Oracle is not maintained and did not have the correct entry I need.

Is it possible to force my ASP pages to use Oracle 9.2 until the migration is complete and Oracle 8.1 is removed?

My connection string looks like this:

Session("PROVIDER") = "Provider=OraOLEDB.Oracle;Data
Source=ht;User Id=" + Request.form("username")
+ ";Password=" + Request.form("password")

View Replies View Related

Choose Image From The Server

i have a folder contain many images in a server, i got to do a web application allow user to choose image the from the folder in the server to be their signature, may i know how to get into the image in the folder on the server?because from what i know i can do a textfield to browse to the file in my local machine, but how do i browse throught the fiel in the image folder that i mention?

View Replies View Related

Choose Recordset In Stored Procedure?

I have a SQL 2000 stored procedure with several recordsets. Is there a way to query a specific recordset in a stored procedure, or will I have to loop through each recordset?

View Replies View Related

How To Choose A Random Record From A Database

ill have a database with 1 table and 3 fields:

ID FIRSTNAME LASTNAME

(the ID field will be the auto incrementing index)

there might be 10 records in the DB, there might be 10,000. i need to open the DB and randomly select a record (and then display the name, which i dont have a problem with)

how can i randomly select a record? im guessing id have to open a recordset and check the count to get the number of records, so lets say there were 100 records. i imagine i would have to generate a random number between 1 and 100....

View Replies View Related

On Enter Tab

For some reason the office manager wants to press enter for go to next line not tab - how can I do this without the form submitting?

I have tried to point out tabbing is not a issue to anyone in the office but she is being stubben.

View Replies View Related

Enter Key Problems

I have a form on an ASP page that shows a whole range of miscellaneous stuff. The parts in question are a single text box and a submit button. When I use the submit button, my form does what it is supposed to.

However, if I put focus on the text box and press the enter key, my form submits to the next page, but it's blank. Any ideas.

View Replies View Related

Do Not Press Enter

I am trying to dissable the enter key on a form. Users are hitting enter instead of tab and results in an error. Can I dissable the enter key or make the enter key function as a tab?

View Replies View Related

Enter Key Behavior

When the cursor is in an INPUT TEXT control and the Enter key is hit,
what it's happen. I mean what is the chain of actions starting from that
point.

I have an ASP application that save modifications (qty chang in an input
text) when the user navigate from page to page. For doing so I check if
the value of the TEXT control differ from the value in the table. If so,
I insert or update the table. But, when I hit Enter it is exactly the
same as if I moved to another page. I would like to know exactly what's
happen, in order to take advantage of this behavior.

View Replies View Related

Enter Text

My customer needs to be able to change some of the text on a page from time to time.

She can do this using a form's text area but I'd prefer to design so that she can prepare the text in her PC and then upload it to the page.How can I do this?

View Replies View Related

Press Enter

if anyone knew how to get the enter key to advance to the next text box and so on in ASP ?

View Replies View Related

Enter Coding

i need a script to go from field to another in an asp page with the enter button instead of the tab button, and the submit button is the space instead of the enter button.

View Replies View Related

Enter Characters

i am validating a textbox i only want the user to enter characters so here is my validation script. Code:

var passing=document.formCategory.txtpass.value;

if(isNaN(passing)==false)
{

alert("Only enter characters");
return false;
}

but when the user enters 1234 it says only enter characters so it works. but when the user enters 435dsdfs432544 it allows the form to submit can someone tell me what i am doing wrong.

View Replies View Related

Enter Amount In $ Validation

i have a textbox that has a value $6.00 for example the user has
to enter a dollar value which has to be less then $6.00 so for example if the user enters 4.00 an alert should be fired telling him he has forgotten his dollar sign ("$") then when he enters it properly like this $5.00 i have to check the value is less then $6.00 and it has to be done in javascript

the textbox which holds the $6.00 value is called saleprice
the textbox which holds the $5.00 or value less then $6.00 is called userprice

View Replies View Related

Using The Enter Key To Advance To Next Form Box

I have an asp form that customers use to place orders with us. As I'm sure alot of you are in the habbit of hitting the enter button when you are filling out forms instead of the TAB button (I'm this person also) and having it submit the data before you are done.

Is there a way to use the "enter key" to advance to the next form box ?

View Replies View Related

Enter Symbols In Name Field

been racking my brains for a while now about how to acheive this:

I have a form field where I want a user to enter their name. Unfortunately some users think its funny to enter loads of wierd symbols in their names like joe`¬;bloggs

The problem is this nearly always causes an error on the next ASP page when those wierd symbols are tried to be entered in to my database.

Could anyone tell me how I could ONLY let the user continue if they have entered alphabetic characters ONLY (no symbols)

View Replies View Related

Enter Date In Database

how can I enter a Date in database using now()?

View Replies View Related

Enter The Username And Password

I'm attaching a zip file of four ASP pages. At index.asp I enter the username and password and it goes to signin.asp. That is what it's supposed to do, but I end up with Please Try Again.

I've used this before and as far as I can remember I have done everything the same. I can register as a new user and it will take me back to index.asp and then it will show the welcome, username message.

View Replies View Related

Captue Enter Button

Is it possible to capture the enter button and run a javascript function?

View Replies View Related

Enter Network Password

I am running an ASP 3.0 application on a Windows 2000 Advanced server. We've recently added new functionality to the application that allows users to click on a link, and view an attached document (opens in a new window).

Nearly everybody using Word 2000 has been complaining that they get an "Enter Network Password" dialog box, that prompts for the username and password, while opening only Word and Excel files. RTF, Image and plain text files are not affected. Strangely enough, if you click "Cancel" on the prompt, the document is displayed

I checked, anonymous access is enabled on the folder, and all permissions seem to be in order. Has anybody come across this issue before?

View Replies View Related

Change Enter Button

I have a asp.net webform with textboxes and buttons. What's the trick to disabling the button on-click events to fire when Enter key is pushed?

i want the server click events for the buttons to fire ONLY when the button is clicked with the mouse.

View Replies View Related

Don't Submit When Press Enter In Textbox. Why?

I have a user form with current user and password. If user presses enter in any text box not submit form... Also it happens to me with other forms. I suppose that I will need to choose some option...

View Replies View Related

Enter Only Character In Password Field How Can It Possible

i have a password field and i am doing validation on it i want the user to only enter characters no numbers should be entered and no invalid characters here is the code i have written for it Code:

View Replies View Related







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