Writing back field value to the database, DRW (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


evansforsyth -> Writing back field value to the database, DRW (12/14/2001 23:48:47)

On the "Edit" component of a DRW I've removed the text box and just inserted the (uneditable) field value.

When clicking "OK" to accept the editing changes, the field value mentioned above is shortened down to one word. Ouch!

This is the code used to write the field value back.

<INPUT TYPE="HIDDEN" NAME="Departure" VALUE=<%=FP_FieldVal(fp_rs,"Departure")%>>

Any suggestions on how to write the entire field contents back?





rdouglass -> RE: Writing back field value to the database, DRW (12/15/2001 16:04:53)

I'm not exactly sure what you're trying to do; maybe a URL or some more code may help... However, I think I do see a slight syntax error. You need another set of quotes. Also, you may only need Field instead of FieldVal if you're just spitting out text:

<INPUT TYPE="HIDDEN" NAME="Departure" VALUE="<%=FP_Field(fp_rs,"Departure")%>">

Can you explain a little more about the 'shortening' of the field name? What is the code (is this it) and what should it be?

 




Spooky -> RE: Writing back field value to the database, DRW (12/15/2001 16:44:22)

I think you have it covered.
If the quotes are missed, the first space will end the string.

§þððk¥
Database / DRW Q & A
VP-ASP Shopping cart




evansforsyth -> RE: Writing back field value to the database, DRW (12/15/2001 17:17:46)

Thanks, thanks, thanks!

Worked perfectly on the first try!

Evans





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875