[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 200
  • Last Modified:

Controls Without A <FORM> Tag

Hi All,

In HTML/ASP can we have controls say a textbox control without a container I mean without a form tag.
If yes then how can I refer to it  in the page, I mean the control or its value say suppose I need to pass its value in the form of a querystring to another html/asp page.

Regards,
0
bonnseye
Asked:
bonnseye
1 Solution
 
kevp75Commented:
no.

I you need to contain it in a <form> in order to pass it's value
0
 
golfDoctorCommented:
Yes, it would be all JavaScript.

I don't recommend this, because lot more work than necessary, and non-standard.  But, it could be done without forms.
0
 
jasonsbytesCommented:
Yes, I agree with golfDoctor; you could do it, but it would be all javascript and wouldn't work if the user doesn't have javascript on.

I'd suspect you'd trigger off an onClick where you would take the values in the text fields and build a url with the parameters added to it and do a location.href update and the data would be passed to the new page as GET variables.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
kevp75Commented:
aye...I stand corrected.

But as the others have said, it is javascript dependant, so if a user has turned off javascript in the browser, or has the security settings set high enough to block scripts from running, or if someone is sneaky and decides to download your page, and simply remove the javascript...it won't be possible to do without the <form> tags...
0
 
jasonsbytesCommented:
Why do you want to do this without <form> tags?
0
 
bonnseyeAuthor Commented:
sorry jasonbytes, I wanted to accept golfdoctor and yours as assisted, but unfortunately forgot to check and submitted, and realized when all was done. sorry once again

Thanks & Regards,
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now