Ask a Question related to ASP Components, Design and Development.
-
S. Justin Gengo #1
Re: asp checkbox
Kerri,
Do a search for the checkbox list object and how to databind it. It think
that's what will work best for you.
Sincerely,
--
S. Justin Gengo, MCP
Web Developer
Free code library at:
[url]www.aboutfortunate.com[/url]
"Out of chaos comes order."
Nietzche
"Kerri" <kerri@nospam.com> wrote in message
news:02eb01c35dda$1261f850$a101280a@phx.gbl...> Hi,
>
> I have a series of checkboxes on a web page.
>
> Based on what the user checks I write a record to a
> Database Table.
>
> I want to associate each checkbox item with an IDENTITY
> in an existing DB Table that holds these options.
>
> This way I have the IDENTITY and just have to add to
> other table.
>
> Does anyone know how I can do this or do I have to query
> the database for each checkbox checked?
>
> Thanks,
> Kerri.
S. Justin Gengo Guest
-
[PHP] Q: How to get the value of a checkbox of which name without '[]'?
> Consider the following form in a HTML file: -
Howto bind CheckBox to the datagrid/ Then update the database field when the checkbox is clicked.
I am trying to update the database field when the checkbox is clicked. I am trying to modified the following solution but.. got stuck on the... -
Q: How to get the value of a checkbox of which name without '[]'?
Consider the following form in a HTML file: .... <input type=checkbox name="box" value=1> <input type=checkbox name="box" value=2> <input... -
<asp:checkbox>
Hi, I have a series of checkboxes on a web page. Based on what the user checks I write a record to a Database Table. I want to associate... -
DIV, CheckBox
Hello, I am populating a DIV with Checkboxes based on rows I get from a Table while dr.read() ..... mydiv.controls.add(etc...) .... other set... -
Darren Woodbrey #2
asp checkbox
I have a form with ship to customer and bill to customer fields. Both of
these are required fields. I want to put a check box in the form and if the
check box is checked then the value of the ship to customer is loaded into
the bill to customer. I need this to happen before the form is submitted.
can I do this with ASP?
The person fills in the ship to customer and if the bill to customer is the
same then they just check the box and the same value is automatically
entered. If they are different then he just types the bill to customer in.
Thanks!
Darren
Darren Woodbrey Guest
-
Bullschmidt #3
Re: asp checkbox
Here's a JavaScript function I used once that copied Billing fields to
Shipping fields that hopefully might give you some ideas:
function jsCopyBillFieldsToShipFields() {
// This function is triggered by button's onclick.
// Dim var.
var frm;
// Form.
frm = document.frmMain
// Set form fld.
frm.ShipName.value = frm.DistribName.value;
frm.ShipContactName.value = frm.Contact1Name.value;
frm.ShipAddress1.value = frm.DistAddress1.value;
frm.ShipAddress2.value = frm.DistAddress2.value;
frm.ShipCity.value = frm.DistCity.value;
frm.ShipState.value = frm.DistState.value;
frm.ShipZipCode.value = frm.DistZipCode.value;
frm.ShipPhone.value = frm.DistPhone.value;
frm.ShipFax.value = frm.DistFax.value;
}
Best regards,
J. Paul Schmidt, Freelance ASP Web Designer
[url]http://www.Bullschmidt.com[/url]
ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Devdex [url]http://www.devdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Bullschmidt Guest
-
Darren Woodbrey #4
Re: asp checkbox
Thanks for the reply. I have this code, but nothing happens when I check
the box:
<script language="JavaScript">
function jscopyshiptobill()
{
var form1;
form1 = document.form1Main
form1.billto.value = form1.customer.value;
form1.billtoaddress1.value = form1.street.value;
form1.billtocity.value = form1.city.value;
form1.billtostate.value = form1.state.value;
form1.billtozip.value = form1.zip.value;
}
</script>
The checkbox looks like this:
<input name="checkbox" type="checkbox"
onClick="MM_callJS('jscopyshiptobill')" value="checkbox">
I am not familiar with javascript. Can you tell what I am doing wrong?
Thanks!
"Bullschmidt" <paul@bullschmidt.com-nospam> wrote in message
news:ON5kD5WXEHA.2840@TK2MSFTNGP11.phx.gbl...> Here's a JavaScript function I used once that copied Billing fields to
> Shipping fields that hopefully might give you some ideas:
>
> function jsCopyBillFieldsToShipFields() {
> // This function is triggered by button's onclick.
>
> // Dim var.
> var frm;
>
> // Form.
> frm = document.frmMain
>
> // Set form fld.
> frm.ShipName.value = frm.DistribName.value;
> frm.ShipContactName.value = frm.Contact1Name.value;
> frm.ShipAddress1.value = frm.DistAddress1.value;
> frm.ShipAddress2.value = frm.DistAddress2.value;
> frm.ShipCity.value = frm.DistCity.value;
> frm.ShipState.value = frm.DistState.value;
> frm.ShipZipCode.value = frm.DistZipCode.value;
> frm.ShipPhone.value = frm.DistPhone.value;
> frm.ShipFax.value = frm.DistFax.value;
> }
>
> Best regards,
> J. Paul Schmidt, Freelance ASP Web Designer
> [url]http://www.Bullschmidt.com[/url]
> ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
>
>
> *** Sent via Devdex [url]http://www.devdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!
Darren Woodbrey Guest
-
Darren Woodbrey #5
Re: asp checkbox
Just saw that there was an "error on page" message. It says that "billto"
is NULL or not an object.
Thanks
Darren
"Darren Woodbrey" <darrenwoodbrey@hpfairfield.com> wrote in message
news:Oa4GPceXEHA.2544@TK2MSFTNGP10.phx.gbl...> Thanks for the reply. I have this code, but nothing happens when I check
> the box:
>
> <script language="JavaScript">
>
> function jscopyshiptobill()
> {
> var form1;
> form1 = document.form1Main
> form1.billto.value = form1.customer.value;
> form1.billtoaddress1.value = form1.street.value;
> form1.billtocity.value = form1.city.value;
> form1.billtostate.value = form1.state.value;
> form1.billtozip.value = form1.zip.value;
> }
> </script>
> The checkbox looks like this:
>
> <input name="checkbox" type="checkbox"
> onClick="MM_callJS('jscopyshiptobill')" value="checkbox">
>
> I am not familiar with javascript. Can you tell what I am doing wrong?
> Thanks!
> "Bullschmidt" <paul@bullschmidt.com-nospam> wrote in message
> news:ON5kD5WXEHA.2840@TK2MSFTNGP11.phx.gbl...>> > Here's a JavaScript function I used once that copied Billing fields to
> > Shipping fields that hopefully might give you some ideas:
> >
> > function jsCopyBillFieldsToShipFields() {
> > // This function is triggered by button's onclick.
> >
> > // Dim var.
> > var frm;
> >
> > // Form.
> > frm = document.frmMain
> >
> > // Set form fld.
> > frm.ShipName.value = frm.DistribName.value;
> > frm.ShipContactName.value = frm.Contact1Name.value;
> > frm.ShipAddress1.value = frm.DistAddress1.value;
> > frm.ShipAddress2.value = frm.DistAddress2.value;
> > frm.ShipCity.value = frm.DistCity.value;
> > frm.ShipState.value = frm.DistState.value;
> > frm.ShipZipCode.value = frm.DistZipCode.value;
> > frm.ShipPhone.value = frm.DistPhone.value;
> > frm.ShipFax.value = frm.DistFax.value;
> > }
> >
> > Best regards,
> > J. Paul Schmidt, Freelance ASP Web Designer
> > [url]http://www.Bullschmidt.com[/url]
> > ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
> >
> >
> > *** Sent via Devdex [url]http://www.devdex.com[/url] ***
> > Don't just participate in USENET...get rewarded for it!
>
Darren Woodbrey Guest
-
Bullschmidt #6
Re: asp checkbox
And here are some other newsgroups you may want to check out. For
non-component, classic ASP questions:
microsoft.public.inetserver.asp.general
For JavaScript questions:
microsoft.public.scripting.jscript
Best regards,
J. Paul Schmidt, Freelance ASP Web Designer
[url]http://www.Bullschmidt.com[/url]
ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Devdex [url]http://www.devdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Bullschmidt Guest
-
Bullschmidt #7
Re: asp checkbox
Perhaps change this:
<input name="checkbox" type="checkbox"
onClick="MM_callJS('jscopyshiptobill')" value="checkbox">
To be more like this instead (i.e. using the actual name of the
JavaScript function:
<input name="checkbox" type="checkbox"
onclick="jscopyshiptobill()" value="checkbox">
And of course check your form tag to be sure that the name of the form
is really form1Main.
Best regards,
J. Paul Schmidt, Freelance ASP Web Designer
[url]http://www.Bullschmidt.com[/url]
ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Devdex [url]http://www.devdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Bullschmidt Guest



Reply With Quote

