Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

input bootstrap field

Posted on 2015-02-19
4
Medium Priority
?
142 Views
Last Modified: 2016-02-25
Hi there,

When I use the following structure :

<input name="QuestDBID" type="text" id="QuestDBID" value="<%=(rsQuestAnswer.Fields.Item("QuestDBID").Value)%>" size="5" />

I AM able to pass the QuestDBID value to the next (pure asp) page, but I cannot when I try this structure:

<input type="QuestDBID" class="form-control" id="QuestDBID" placeholder="<%=(rsQuestAnswer.Fields.Item("QuestDBID").Value)%>">

The reason I would like the last one is only "esthetic" (better looking), but even without taking that into account, I would like to learn how to change the second structure so that it works as the first one.

Thanks,
fskilnik.

P.S.1: I would not like to take out the placeholder property, and I know "value" and "placeholder" are different, but I´ve tried changing one for the other and it did not work as I expected...

P.S.2: the value was passed through this:   questDBIDChosen = CStr(Request.Form("questDBID"))
0
Comment
Question by:fskilnik
  • 2
  • 2
4 Comments
 
LVL 34

Accepted Solution

by:
Big Monty earned 2000 total points
ID: 40620320
In order to POST data using field you need to add a NAME attribute.

<input name="QuestDBID" type="QuestDBID" class="form-control" id="QuestDBID" placeholder="<%=(rsQuestAnswer.Fields.Item("QuestDBID").Value)%>"
0
 

Author Comment

by:fskilnik
ID: 40620989
Hi, Big Monty!  Long time since I had the pleasure to learn from you again...

Excellent, it worked as expected!

I was so worried about the value/placeholder stuff (sorry, attributes) that I could not see that "name" was in one but not in the other...    :)

Thanks a lot!

Regards,
fskilnik.
0
 
LVL 34

Expert Comment

by:Big Monty
ID: 40621204
You're very welcome, glad I could help :)

it's always the little stuff that'll get ya!
0
 

Author Comment

by:fskilnik
ID: 40622220
Hi again, Big Monty!

You are very very right...    :)

Thanks a lot, as always!!

All the best,
Fabio.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
The viewer will learn how to count occurrences of each item in an array.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question