Skip to content
Loading
 
Let me know If your problem not resolve.
 
Thanks 
0
  • 0
    hello sandy
     i have two table first table display all user record.
    suppose
    ============ 
    Rinki 
    sandy
    ============
     and second table difine list of products
     
    suppose
    ===========
    computer
     
    headphone
    =============
     
     when i will update my profile my name will display and all product display after my name
    suppose
    ========================
    rinki
    checkbox     computer
    checkbox     headphone
    ========================
     in this page i have to select product. After selecting product when i again update my profile all product with select product will display.
    0
  • Sandy
    0
    Hi Rinki,
     
     Below is html part code for this type of problem
    1. @using (Html.BeginForm("UserDetail", "User", FormMethod.Post, new { @class = "form-horizontal"}))  
    2. {  
    3.   
    4.         class="form-group">  
    5.             class="col-md-2 control-label">  
    6.                 Select User Role  
    7.               
    8.             class="col-md-10">  
    9.                 @foreach (var Product in (SelectList)ViewBag.ProductList)  
    10.                 {  
    11.                     "checkbox" name="SelectedRoles"  
    12.                            value="@Product.Value" class="checkbox-inline" />  
    13.                     Product.Name  
    14.                 }  
    15.             
      
  •           
  •   
  •             ....  
  •   
  •             class="form-group">  
  •                 class="col-md-offset-2 col-md-10">  
  •                     "submit" class="btn btn-default" value="Update" />  
  •                   
  •               
  • }  
  •  
    if issue is not clear than which part you have issue like HTMl part or in c# ?
     
    Thanks 
    0