Microsoft
Software
Hardware
Network
Question : Form with dynamic field names only returning first word on request.form
Hello,
I've got a classic ASP page using dynamically assigned field names that is only returning the first word from the value when returning the value via request.form. Here is the code for the dynamic field:
ctr = ctr+1
response.write "<tr><td height='26' bordercolor='#CCCCCC' bgcolor='#FFFFFF'><input name='hidCtr' type='hidden' value=" & ctr & "><input name='char_02" & ctr & "' type='hidden' id='char_02" & ctr & "' value=" & rs_co_task("char_02") & "><div align='center'>"
Here is the code on the update page:
arrctrIDs = Split(ctrID, ", ")
set rs_catdata1 = Server.CreateObject("ADODB
.Recordset
")
for each elem in arrctrIDs
w_task = Replace(Request.Form("char
_02" & elem), "'", "''")
From here the variables are being inserted into the database with no additional formatting.
Anyone have any ideas?
Thanks,
Scott
Answer : Form with dynamic field names only returning first word on request.form
You can do it like this:
=iif(Fields!CustomerState.
Value = "NY", "Tri-State", iif(Fields!CustomerState.V
alue = "CT", "Tri-State",iif(Fields!Cus
tomerState
.Value = "NJ", "Tri-State", Fields!CustomerState.Value
)))
Random Solutions
How to set a default desktop background for all users on apple mac
Blinking light on laptop ac adapter
How do I create a "file folder" on an access form?
Multithreading Through a Wrapper DLL
Write a trigger which, when the salary of any employee(s) is updated, inserts a single record into this audit table with the total amount of the change across all employees.
When machine in locked state can Outlook forward all emails to a Hotmail account?
Why I can't open database again at Worksheet_Change event
Delete Enable Passwords
Increase volume of mpeg4 movie (made in psp video 9 for psp)
WMI registry vb.net