Click here to Skip to main content
15,914,642 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: C# to Vb.net Convert error in string place..., Pin
Michael Sync15-Aug-07 21:08
Michael Sync15-Aug-07 21:08 
AnswerRe: C# to Vb.net Convert error in string place..., Pin
Nouman Bhatti16-Aug-07 0:02
Nouman Bhatti16-Aug-07 0:02 
QuestionHow can i kill a mySQL server Process? Pin
cometburn00715-Aug-07 18:53
cometburn00715-Aug-07 18:53 
AnswerRe: How can i kill a mySQL server Process? Pin
Nouman Bhatti16-Aug-07 1:18
Nouman Bhatti16-Aug-07 1:18 
Questioncalling a codebehind function from javascript using ajax Pin
anujose15-Aug-07 18:52
anujose15-Aug-07 18:52 
AnswerRe: calling a codebehind function from javascript using ajax Pin
Imran Khan Pathan15-Aug-07 23:13
Imran Khan Pathan15-Aug-07 23:13 
QuestionHow to change a template and Skin to ASP.NET page Pin
mangrovecm15-Aug-07 18:27
mangrovecm15-Aug-07 18:27 
QuestionCheckboxlist Pin
n_gchaitra15-Aug-07 17:16
n_gchaitra15-Aug-07 17:16 
Hi,

I am storing the checkboxlist items as comma seperated values in a row. My problem is during updation of those values. When i bind the values to the checkboxlist i want to display all items but only those items have to be checked which are present in the row.

For inserting i am using the followng code,

Dim sqlstr As String
Dim str As String = ""
If dbconn.State <> ConnectionState.Open Then
dbconn.Open()
End If
For Each item As ListItem In CheckBoxList1.Items
If item.Selected = True Then
If str = "" Then
str = item.Text
Else
str = str & "," & item.Text
End If
End If
Next
sqlstr = "insert into test(c1) values(@c)"
Dim comm As New SqlCommand(sqlstr, dbconn)
comm.Parameters.Add("@c", SqlDbType.Char, 10).Value = str
Try
comm.ExecuteNonQuery()
Label1.Visible = True
Label1.Text = "Success"
Catch ex As Exception
Label1.Visible = True
Label1.Text = ex.ToString
End Try



AnswerRe: Checkboxlist Pin
Michael Sync15-Aug-07 17:42
Michael Sync15-Aug-07 17:42 
GeneralRe: Checkboxlist Pin
n_gchaitra15-Aug-07 17:57
n_gchaitra15-Aug-07 17:57 
GeneralRe: Checkboxlist Pin
Michael Sync15-Aug-07 20:03
Michael Sync15-Aug-07 20:03 
GeneralRe: Checkboxlist Pin
n_gchaitra15-Aug-07 23:09
n_gchaitra15-Aug-07 23:09 
GeneralRe: Checkboxlist Pin
Michael Sync15-Aug-07 23:41
Michael Sync15-Aug-07 23:41 
GeneralRe: Checkboxlist Pin
n_gchaitra16-Aug-07 23:47
n_gchaitra16-Aug-07 23:47 
GeneralRe: Checkboxlist Pin
Michael Sync17-Aug-07 2:20
Michael Sync17-Aug-07 2:20 
GeneralRe: Checkboxlist Pin
n_gchaitra17-Aug-07 17:28
n_gchaitra17-Aug-07 17:28 
QuestionCan I remove Master Page in the program? Pin
J Liang15-Aug-07 16:57
J Liang15-Aug-07 16:57 
AnswerRe: Can I remove Master Page in the program? Pin
Steve Echols15-Aug-07 18:16
Steve Echols15-Aug-07 18:16 
AnswerRe: Can I remove Master Page in the program? Pin
nandhububbly15-Aug-07 19:23
nandhububbly15-Aug-07 19:23 
GeneralRe: Can I remove Master Page in the program? Pin
Michael Sync15-Aug-07 20:04
Michael Sync15-Aug-07 20:04 
AnswerRe: Can I remove Master Page in the program? [modified] Pin
Michael Sync15-Aug-07 19:57
Michael Sync15-Aug-07 19:57 
AnswerRe: Can I remove Master Page in the program? Pin
ganeshvittal15-Aug-07 20:57
ganeshvittal15-Aug-07 20:57 
QuestionCan't create ASP controls from shared function Pin
chris_wanaka15-Aug-07 16:51
chris_wanaka15-Aug-07 16:51 
AnswerRe: Can't create ASP controls from shared function Pin
Michael Sync15-Aug-07 17:30
Michael Sync15-Aug-07 17:30 
GeneralRe: Can't create ASP controls from shared function Pin
chris_wanaka15-Aug-07 18:10
chris_wanaka15-Aug-07 18:10 

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.