Click here to Skip to main content
15,908,013 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ASP.NET Pin
PANKAJMAURYA12-Oct-15 23:17
professionalPANKAJMAURYA12-Oct-15 23:17 
Questionmvc viewbag Pin
Analice14-Sep-15 21:46
Analice14-Sep-15 21:46 
AnswerRe: mvc viewbag Pin
User 418025421-Dec-15 6:36
User 418025421-Dec-15 6:36 
Questionhow to use querystring in html tags Pin
Member 1187854114-Sep-15 0:40
Member 1187854114-Sep-15 0:40 
AnswerRe: how to use querystring in html tags Pin
jkirkerx16-Sep-15 11:13
professionaljkirkerx16-Sep-15 11:13 
Questionasp.net login error using form base authentication Pin
viconex4real13-Sep-15 4:23
viconex4real13-Sep-15 4:23 
AnswerRe: asp.net login error using form base authentication Pin
F-ES Sitecore13-Sep-15 22:27
professionalF-ES Sitecore13-Sep-15 22:27 
AnswerRe: asp.net login error using form base authentication Pin
Blikkies14-Sep-15 0:37
professionalBlikkies14-Sep-15 0:37 
AnswerRe: asp.net login error using form base authentication Pin
Shaikh Ansar16-Sep-15 0:08
Shaikh Ansar16-Sep-15 0:08 
Questionasp.net enableeventvalidation problem Pin
ertum200012-Sep-15 2:25
ertum200012-Sep-15 2:25 
Questiongridview databind Pin
kabifarm11-Sep-15 5:00
kabifarm11-Sep-15 5:00 
AnswerRe: gridview databind Pin
F-ES Sitecore13-Sep-15 3:08
professionalF-ES Sitecore13-Sep-15 3:08 
QuestionIs Multi Tier System Getting automated by using Db Context and Entity Framework ? Pin
SREENATH GANGA9-Sep-15 22:25
SREENATH GANGA9-Sep-15 22:25 
AnswerRe: Is Multi Tier System Getting automated by using Db Context and Entity Framework ? Pin
F-ES Sitecore9-Sep-15 23:34
professionalF-ES Sitecore9-Sep-15 23:34 
GeneralRe: Is Multi Tier System Getting automated by using Db Context and Entity Framework ? Pin
SREENATH GANGA13-Sep-15 1:45
SREENATH GANGA13-Sep-15 1:45 
GeneralRe: Is Multi Tier System Getting automated by using Db Context and Entity Framework ? Pin
F-ES Sitecore13-Sep-15 2:59
professionalF-ES Sitecore13-Sep-15 2:59 
AnswerRe: Is Multi Tier System Getting automated by using Db Context and Entity Framework ? Pin
Shaikh Ansar15-Sep-15 19:07
Shaikh Ansar15-Sep-15 19:07 
QuestionPut task in the background Pin
Member 113235859-Sep-15 7:08
Member 113235859-Sep-15 7:08 
AnswerRe: Put task in the background Pin
F-ES Sitecore9-Sep-15 23:35
professionalF-ES Sitecore9-Sep-15 23:35 
QuestionIs it possible to store CheckBoxList values into separate database column names? Pin
samflex9-Sep-15 4:54
samflex9-Sep-15 4:54 
Hi experts,

When I execute the following code,

PHP
<asp:CheckBoxList ID="ckRequestReview" runat="server" CssClass="cb" Style="border-width: 0;" RepeatDirection="horizontal" RepeatColumns="4" RepeatLayout="Table">
<asp:ListItem>Step One</asp:ListItem>
<asp:ListItem>Step Two</asp:ListItem>
<asp:ListItem>Step Three</asp:ListItem>
</asp:CheckBoxList>

            Dim items As String = String.Empty
               If items = "Step One" Then
           mypreferredChange = txtTitleChange.Text
       ElseIf items = "Step Two" Then
           mypreferredChange = "txtPayGradeChange"
       ElseIf items = "Step Three" Then
           mypreferredChange = "txtClassSpecChange"
             Else
             cmd.Parameters.Add(New SqlParameter("@RequestedChange", mypreferredChange))
             Dim result As Integer = cmd.ExecuteNonQuery()
             End If


The checkbox values are stored in one database column name called ChValues.

If a user checks one item, that one item is stored in that fieldname.

If user checks all three, all three are stored in that one fieldname, separated by comma.

In our situation, as in the example above, we have three items on the checkboxlist.

We would like to store the value of each checkboxlist into a separate fieldname.

Is this possible?

The idea is that when we query the db to retrieve these values, we would like each to have its own checkmark.

Thanks a lot in advance
AnswerRe: Is it possible to store CheckBoxList values into separate database column names? Pin
David Mujica9-Sep-15 5:18
David Mujica9-Sep-15 5:18 
GeneralRe: Is it possible to store CheckBoxList values into separate database column names? Pin
samflex9-Sep-15 5:27
samflex9-Sep-15 5:27 
GeneralRe: Is it possible to store CheckBoxList values into separate database column names? Pin
Richard Deeming14-Sep-15 3:31
mveRichard Deeming14-Sep-15 3:31 
GeneralRe: Is it possible to store CheckBoxList values into separate database column names?(SOLVED) Pin
samflex22-Sep-15 15:59
samflex22-Sep-15 15:59 
AnswerRe: Is it possible to store CheckBoxList values into separate database column names? Pin
aarif moh shaikh10-Sep-15 18:28
professionalaarif moh shaikh10-Sep-15 18:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.