REGISTER
|
Search Tycoon Talk
|
Freelancer.com
|
Members
Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.
Register Here
Forum Rules
.NET Forum
You are currently viewing our .NET Forum as a guest. Please
register
to participate.
Login
Remember Me?
Login via Freelancer.com
Tycoon Talk
>
Web Development and Programming Support
>
ASP.NET Forum
>
.NET Forum
>
Inserting checkbox values into one field
Link Back
Thread Tools
Search this Thread
Inserting checkbox values into one field
05-04-2009, 04:35 AM
#
1
(
permalink
)
Inserting checkbox values into one field
ebosysindia
Novice Talker
Posts: 6
Name: Ebosys India
Trades:
0
Talkupation:
hi
I have a checkboxes on my page (.aspx) like
checkbox1 - item1
checkbox2 - item2
checkbox3 - item3
etc
what i want is that when a user selects certain checkboxes
they should be inserted into a table called
customer which has fields (customer id and actions)
the data should be inserted as
customerid actions
1 item1,item2,item3
2 item1,item3
3 etc..
i.e all the values should be inserted into database into one field separated by commas.
Thanks
__________________
Please login or register to view this content.
Registration is FREE
|
Please login or register to view this content.
Registration is FREE
|
Please login or register to view this content.
Registration is FREE
|
Please login or register to view this content.
Registration is FREE
Last edited by ebosysindia; 05-04-2009 at
04:36 AM
.. Reason: remove space
Register
now for full access!
05-04-2009, 10:13 AM
#
2
(
permalink
)
Re: Inserting checkbox values into one field
stbuchok
Extreme Talker
Posts: 246
Trades:
0
Talkupation:
So are you looking for someone to write the whole thing for you or is there a specific question you are asking.
You won't find anyone here willing to write the whole thing for you, we are here to help, not do your job for you.
07-17-2009, 01:52 PM
#
3
(
permalink
)
Re: Inserting checkbox values into one field
textbox
Experienced Talker
Posts: 31
Trades:
0
Talkupation:
Here is some pseudo code to get you started.
On submit of form
for each in checkbox list
if checkbox is checked
stringactions &= stringaction + checkbox.value
end if
next
database insert statement here
This code could also run on checkboxchanged event as well, but that is a bit inefficient.
« Reply to
Inserting checkbox values into one field
Previous Thread
|
Next Thread
Tycoon Talk
>
Web Development and Programming Support
>
ASP.NET Forum
>
.NET Forum
>
Inserting checkbox values into one field
Thread Tools
Search this Thread
Show Printable Version
Email this Page
Search this Thread
:
Advanced Search
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Forum Rules
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Tweet this thread
Page generated in
4.46484
seconds with
12
queries