473,322 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

How to pass CheckBox Values(1/0 ) to another page?

I want to insert checkbox Y/N or 1/0 into a SQL table. I know i can do
that using a bit field or Char field.

My Question is i have Datalist that lists products and i want to put
this checkBoxes in the Datalist.
But in the Datalist there is a Link that adds the Products to a SQL
table My Datalist looks like this below:-

<asp:datalist id="MyList" runat="server" RepeatColumns="2">
<ItemTemplate>
<asp:CheckBox ID="MessageBank" Runat="server"
Text="MBank"></asp:CheckBox>

<a href='AddToProduct.aspx?productID=<%#
DataBinder.Eval(Container.DataItem, "ProductID") %>'>
<font color="#9D0000"><b>Add To Product<b></font></span>
</ItemTemplate>
</asp:datalist>

So if the User Clicks the AddToProduct link its inserts the ProductID
and the rest of the Product thats binded to it.

But my problem here is how to pass what the user has selected in the
CheckBoxes to AddToProduct so that it can be inserted to the table.

Note that AddToCart only inserts the Products and get redirected to a
page where all the products added are listed.

What 'm trying to do is maybe have a user select the checkboxes in a
different page and then pass the values 1 or 0 to the AddToProduct page?

Any ideas?

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #1
0 1467

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: charlie_M | last post by:
I have a number of applications where I want to have many onclick='submit()' attached to different 'elements' on a single form ..... which sends the form to a CGI "script" which does all the...
5
by: Julien C. | last post by:
Hi all, I have an "EditeItem.aspx" page which lets me edit properties of an "Item". In the OnClick() event of my Save button, I do save Item changes to the database and then I redirect the user...
1
by: Martin | last post by:
Hello Group I'm having a bit of trouble figuring this out. I'm grateful for any hints. Let's assume I'm have a webapplication with two .aspx pages, Page A and Page B. Page A consists of a...
2
by: Scott Natwick | last post by:
I would like to validate that a Checkbox is checked on the client-side. I have tried the "requiredfieldvalidator" and the "regularexpressionvalidator", but haven't been able to get either of them...
2
by: ivanlkc | last post by:
Hi All, Thanks for reading my post! :-) I would like to ask a question about passing data in ASP.Net. Currently, I use a session variable to keep this data(string) to allow several pages to...
4
by: Hugh O'Donnell | last post by:
I am trying to access the values of child properties by a string value. For instance, have a user type "Form1.txtFirstName.Text" in a text box, click on a button, and return the value of that...
2
by: ME | last post by:
I need to know how to create a MULTI page report. All I can seem to create is a report with only one page, even though the datasource it is bound to returns multiple records. I have posted an...
1
by: Mike Collins | last post by:
I have a page that shows a problem. On this problem page, it has a listbox that shows what the problem is related to (i.e., C#, HTML, VB, UserError, SQL Server). A problem can have multiple...
1
by: kurtgambino | last post by:
I cant get crystal report to go past page 2 unless i click go to the last page and it goes directly to the last page and when i press previous page it goes to page 1. Code shown belo Dim...
6
by: Kausar | last post by:
Hello All, How do i pass the value from a page that exists on some domain to another page that exists in subdomain. Regards Kausar
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.