Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dropdown Option and StringBuilder

Status
Not open for further replies.

bobbybrown69

Programmer
Jun 11, 2003
15
US
Does anyone know how I would do this?

'** When a user selects an option from the dropdown box an onChange event modifies the value of the hidden input box below.
sb.Append("<input type=hidden name=descriptionName_" + vid + " value=""" & ds.Tables(0).Rows(i).Item("description").ToString() & """></td>")

'** I need to change "description" below to be what the user has chosen i.e. The value from the hidden input box descriptionName_ + vid
‘** instead of ds.Tables(0).Rows(i).Item("description").ToString()

This didn't work. document.forms[0].elements['descriptionName_" + vid + "'].value

sb.Append("<input type=hidden name=linerAd_" + vid + " value=""" + linerAd + ds.Tables(0).Rows(i).Item("description").ToString() + " " + signatureText + """>")
 
I think this is asp.net so try that forum.

Christiaan Baes
Belgium

I just like this --> [Wiggle] [Wiggle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top