FIle Form Element

FIle Form Element

am 12.05.2007 12:47:01 von rn5a

I am storing the physical path of images, along with 3 more columns,
in a MS-Access DB table. I want to provide users the option to change
this physical image path (as well as the records in the other columns)
for which I am using the *File* Form element.

The column under which the physical paths are stored is the 4th column
in the DB table.

Users first come to a page that displays the distinct records existing
in column1 in the above mentioned DB table in a dropdown select list.
When an option is selected by the user & the Form is posted, the next
page would retrieve the records from the DB table depending upon what
a user selected from the dropdown select list & display them to the
user in textboxes so that they can edit the records.

<%
Dim objConn
Set objConn=Server.CreateObject("ADODB.CONNECTION")
'ConnectionString
objConn.Open

Dim strSQL
strSQL="SELECT * FROM MyTable WHERE Col1='" &
Request.Form("selectlistvalue") & "'"

Dim objRS
Set objRS=Server.CreateObject("ADODB.RECORDSET")
objRS.Open strSQL,objConn
%>


">
">
">
">


The problem is, unlike the textboxes, the *File* Form field doesn't
display the physical path (Col4) in the textbox that accompanies the
*File* Form element.

Any idea how do I make the textbox in the *File* Form field show the
record from Col4 (i.e. the physical path) from the DB table like how
the other 3 textboxes display their respective records?

Re: FIle Form Element

am 12.05.2007 13:37:02 von reb01501

rn5a@rediffmail.com wrote:
> I am storing the physical path of images, along with 3 more columns,
> in a MS-Access DB table. I want to provide users the option to change
> this physical image path (as well as the records in the other columns)
> for which I am using the *File* Form element.

Not possible. You need to use a textbox..

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Re: FIle Form Element

am 12.05.2007 13:37:33 von rn5a

On May 12, 3:47 pm, r...@rediffmail.com wrote:
> I am storing the physical path of images, along with 3 more columns,
> in a MS-Access DB table. I want to provide users the option to change
> this physical image path (as well as the records in the other columns)
> for which I am using the *File* Form element.
>
> The column under which the physical paths are stored is the 4th column
> in the DB table.
>
> Users first come to a page that displays the distinct records existing
> in column1 in the above mentioned DB table in a dropdown select list.
> When an option is selected by the user & the Form is posted, the next
> page would retrieve the records from the DB table depending upon what
> a user selected from the dropdown select list & display them to the
> user in textboxes so that they can edit the records.
>
> <%
> Dim objConn
> Set objConn=Server.CreateObject("ADODB.CONNECTION")
> 'ConnectionString
> objConn.Open
>
> Dim strSQL
> strSQL="SELECT * FROM MyTable WHERE Col1='" &
> Request.Form("selectlistvalue") & "'"
>
> Dim objRS
> Set objRS=Server.CreateObject("ADODB.RECORDSET")
> objRS.Open strSQL,objConn
> %>
>


> ">
> ">
> ">
> ">
>

>
> The problem is, unlike the textboxes, the *File* Form field doesn't
> display the physical path (Col4) in the textbox that accompanies the
> *File* Form element.
>
> Any idea how do I make the textbox in the *File* Form field show the
> record from Col4 (i.e. the physical path) from the DB table like how
> the other 3 textboxes display their respective records?

ADDENDUM:
-------------

The same thing happens if a textbox field is replaced with a textarea
Form element. For e.g. using the following code



You can find documentation for the textarea element as well as other HTM=
L =

elemnts on Microsoft's website:

textArea Object
http://msdn2.microsoft.com/en-us/library/ms535904.aspx

HTML Elements
http://msdn2.microsoft.com/en-us/library/ms533029.aspx


-- =

Justin Piper
Bizco Technologies
http://www.bizco.com/