Solved

input bootstrap field

Posted on 2015-02-19
4
127 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 33

Accepted Solution

by:
Big Monty earned 500 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 33

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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. …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

738 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