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
Re: FIle Form Element
am 12.05.2007 14:49:16 von exjxw.hannivoort
wrote on 12 mei 2007 in microsoft.public.inetserver.asp.general:
> ">
>
>
> 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.
Since the files and the directory layout on my, the client's, machine is
non of your, the server's and the programmer's, business, the powers that
make browsers have rightly thought it fitting that the security regime
prohibits your intent.
Furthermore this is not an ASP serverside problem,
so your quest is off-topic on this NG.
If you want to further your doomed quest,
please do so elsewhere, not on a serverside code NG,
as serverside code like under ASP doesn't know about
.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Re: FIle Form Element
am 14.05.2007 16:28:33 von Justin Piper
On Sat, 12 May 2007 06:37:33 -0500, wrote:
> On May 12, 3:47 pm, r...@rediffmail.com wrote:
>
> The same thing happens if a textbox field is replaced with a textarea
> Form element. For e.g. using the following code
>
>
) %>">
> textarea>
>
> the textarea remains blank!
>
The textarea element does not have a value attribute. Instead you nest i=
ts =
content inside the element:
You can find documentation for the textarea element as well as other HTM=
L =