Click here to Skip to main content
16,007,504 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Blog/Forum combo Pin
Jamie Nordmeyer5-Jun-08 2:12
Jamie Nordmeyer5-Jun-08 2:12 
AnswerRe: Blog/Forum combo Pin
eyeseetee4-Jun-08 21:36
eyeseetee4-Jun-08 21:36 
GeneralRe: Blog/Forum combo Pin
Jamie Nordmeyer5-Jun-08 2:14
Jamie Nordmeyer5-Jun-08 2:14 
QuestionProblem with redirects or sessions Pin
hasanali004-Jun-08 8:52
hasanali004-Jun-08 8:52 
AnswerRe: Problem with redirects or sessions Pin
Ashik Wani4-Jun-08 11:47
Ashik Wani4-Jun-08 11:47 
GeneralRe: Problem with redirects or sessions Pin
hasanali004-Jun-08 14:08
hasanali004-Jun-08 14:08 
GeneralRe: Problem with redirects or sessions Pin
Ashik Wani5-Jun-08 1:17
Ashik Wani5-Jun-08 1:17 
QuestionBinding CSV to CheckboxList Pin
stormcandi4-Jun-08 5:53
stormcandi4-Jun-08 5:53 
I originally posted this in the C# forum but was advised this may be the better place to get the answer.

I have a checkboxlist with different items. I have a comma separated values field that I need to bind to this cbl. The cbl is in a detailsview. I know that I need to loop through the dataset rows so each record in the detailsview is bound with the correct information, however I have only figured out how to bind the first row in the dataset for every record in the detailsview. I know I need to loop through the dataset but am not sure how to do it at the same time as looping through the rows in the detailsview. This below function is called onDataBinding. Can anyone assist?

Thanks in advance!


public void FillControls()    
{        
   //this executes when the form view is populated so the services are populated correctly        
   int intSN = Convert.ToInt32(Request.QueryString["LookUp"].ToString());        
   Selections db = new Selections();        
   DataSet ds = db.Services(intSNo);        
   int iCount = ds.Tables[0].Rows.Count;        
   if (iCount != 0)        
   {            
      if (dvGetMoreData.CurrentMode != DetailsViewMode.Insert)            
      {                
          FillMultipleCheckboxesWithValue((CheckBoxList)dvGetMoreData.FindControl("cblSvcs"), ds.Tables[0].Rows[0]["Services"].ToString());            
      }        
   }    
}



~Candi

~Candi

AnswerRe: Binding CSV to CheckboxList Pin
cpkilekofp4-Jun-08 7:14
cpkilekofp4-Jun-08 7:14 
GeneralRe: Binding CSV to CheckboxList Pin
stormcandi4-Jun-08 7:49
stormcandi4-Jun-08 7:49 
GeneralRe: Binding CSV to CheckboxList Pin
cpkilekofp5-Jun-08 4:54
cpkilekofp5-Jun-08 4:54 
GeneralRe: Binding CSV to CheckboxList Pin
stormcandi5-Jun-08 5:48
stormcandi5-Jun-08 5:48 
GeneralRe: Binding CSV to CheckboxList Pin
cpkilekofp5-Jun-08 6:18
cpkilekofp5-Jun-08 6:18 
GeneralRe: Binding CSV to CheckboxList Pin
stormcandi5-Jun-08 6:45
stormcandi5-Jun-08 6:45 
GeneralRe: Binding CSV to CheckboxList Pin
cpkilekofp5-Jun-08 8:19
cpkilekofp5-Jun-08 8:19 
GeneralRe: Binding CSV to CheckboxList Pin
stormcandi5-Jun-08 8:24
stormcandi5-Jun-08 8:24 
GeneralRe: Binding CSV to CheckboxList Pin
cpkilekofp5-Jun-08 9:18
cpkilekofp5-Jun-08 9:18 
GeneralRe: Binding CSV to CheckboxList Pin
stormcandi5-Jun-08 9:19
stormcandi5-Jun-08 9:19 
GeneralRe: Binding CSV to CheckboxList Pin
cpkilekofp5-Jun-08 9:20
cpkilekofp5-Jun-08 9:20 
GeneralRe: Binding CSV to CheckboxList Pin
stormcandi17-Jun-08 8:39
stormcandi17-Jun-08 8:39 
QuestionUpdate panel problems... Pin
Jacob Dixon4-Jun-08 5:51
Jacob Dixon4-Jun-08 5:51 
AnswerRe: Update panel problems... Pin
SomeGuyThatIsMe4-Jun-08 8:38
SomeGuyThatIsMe4-Jun-08 8:38 
GeneralRe: Update panel problems... Pin
Jacob Dixon4-Jun-08 8:48
Jacob Dixon4-Jun-08 8:48 
GeneralRe: Update panel problems... Pin
SomeGuyThatIsMe4-Jun-08 8:53
SomeGuyThatIsMe4-Jun-08 8:53 
GeneralRe: Update panel problems... Pin
Jacob Dixon4-Jun-08 9:00
Jacob Dixon4-Jun-08 9:00 

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.