Click here to Skip to main content
16,005,826 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
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 
i am getting "System.Data.DataRowView " error. I tried to write the function in the same class but still getting the same error.


Dim constr As String = ConfigurationSettings.AppSettings("conn")
Dim dbconn As New SqlConnection(constr)


Sub bind1()
CheckBoxList1.DataSource = GetAllItems()
CheckBoxList1.DataBind()
Dim storedValues As String() = Database.GetStoredItems().Split(",")
For Each val As String In storedValues
For Each itm As ListItem In CheckBoxList1.Items
If itm.Value = val Then
itm.Selected = True
End If
Next
Next
End Sub

Public Function GetAllItems() As DataSet
Dim ds As New DataSet()
Dim sqlstr As String = " select list from AList"
Dim comm As New SqlDataAdapter(sqlstr, dbconn)
comm.Fill(ds)
'Return those data as DataSet

Return ds
' 1,2,3,4,5
End Function
Public Function GetStoredItems() As String
'Get the data from Database
' Dim dbconn As New OleDb.OleDbConnection("provider=sqloledb;user id=sa;password=;trusted_connection=yes; initial catalog=wfphumanet;data source=localhost")
Dim ds As New DataSet()
Dim str As String = " select c1 from test where sl='" & TextBox1.text & "'"
'Return those data as comman seperated value
Return str
' 1,2,3
End Function


Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
bind1()
End Sub

Chaitra N

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 
QuestionSetup project with custom actions Pin
steve_rm15-Aug-07 7:47
steve_rm15-Aug-07 7:47 
Questionmisc asp.net questions [modified] Pin
algoaddict15-Aug-07 7:27
algoaddict15-Aug-07 7:27 
AnswerRe: misc asp.net questions Pin
Jpuckett15-Aug-07 7:44
Jpuckett15-Aug-07 7:44 
GeneralRe: misc asp.net questions Pin
algoaddict15-Aug-07 8:16
algoaddict15-Aug-07 8:16 
GeneralRe: misc asp.net questions Pin
Jpuckett15-Aug-07 8:54
Jpuckett15-Aug-07 8:54 
Questionproblem with code downloaded from codeproject [modified] Pin
algoaddict15-Aug-07 9:34
algoaddict15-Aug-07 9:34 

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.