Solved

input bootstrap field

Posted on 2015-02-19
4
121 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 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
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 look for a specific file type in a local or remote server directory using PHP.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

832 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