Solved

input bootstrap field

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

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 32

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now