PDA

View Full Version : feed data to an asp request at run time


haskins
03-03-2003, 09:35 PM
does this sound possable?

A text field on an asp page.
The value of that text field can be changed live.
That value is read by part of an active server request.
If the value is changed then the value in the active server request has changed and therefore would the active server request effectivly send the updated request next time the page refreshed??>????

Lets say theres a number in the txt field.
You open that asp page and type a new number in that field.
An active server request string requests an items NAME from a database based on its part number 'that being the txt field's value'.

You then refresh the page. Would that actually concevable work????????

oracleguy
03-03-2003, 11:12 PM
Well, in order to send the text field's value back to the server it has to be either in the post data or in the url. So for the former, you'd have to submit it as a form. So if you had a button to 'refresh' the page, it could just submit the form with the form action being the same page.

The latter could be achieved by using a form or if you have a button the page to refresh it, you could have a script redirect the page and ammend the text field value.


Or am I misunderstanding your question?

haskins
03-04-2003, 12:00 AM
The Active server request is being sent from the same page as the text field. the purpose of the active server request is to write on the page the name fields.value from the database. The item that the name field is going to be from is based on what the text fields value is.

example:
txt1 = "11223"
The active server request requests the name of item number = "11223" from the database.

Thus the page displays the name of item 11223 until that value is changed in the text field and after it is either submited or refreshed?? Then it displays the new item numbers name.

glenngv
03-04-2003, 02:25 AM
you should submit the page to get the new value. if you submit the page to itself (same page), you should do a checking. if the page is first loaded (not submitted), the value of the field must come from the database, but if it is submitted, the value must come from the field itself.