Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

pass viewbag using ienumerable

var abc = ViewBag.xyz as IEnumerable<MeroPet.Model.Report>;

foreach( var x in abc)
{
// now we can use abc.(Any item inside Report Model) to show data dynamically
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: whining 
Csharp :: c# skip debug attribute 
Csharp :: multiple input same line c# 
Csharp :: Microsoft.ACE.OLEDB.12.0 c# excel first sheet 
Csharp :: AsExpandable 
Csharp :: c# iterate and pop all elements in stack 
Csharp :: writeline in C# 
Csharp :: remove multiple element on list from index a to b C# 
Csharp :: linqkit predicatebuilder or and nested combined predicates 
Csharp :: asp net identity extend relationship 
Csharp :: c# load button image from resource 
Csharp :: print all string in textbox in array c# 
Csharp :: convert iqueryable to list c# 
Csharp :: switch rows and columns in a datagridview 
Csharp :: xunit setup throw exception 
Csharp :: c# check if pdf is protected without password 
Csharp :: how to assign rds CAL for users 
Csharp :: wpf repository pattern query async with includes properties 
Csharp :: unity c# public all codes 
Csharp :: how to clone something as a parent unity 
Csharp :: c# how to load type of class from string 
Csharp :: c# order by descending on 2 values 
Csharp :: c# getdecimal null 
Csharp :: unity download image from online 
Csharp :: c# asp.net gridview selected row unselect 
Csharp :: c# decimal literal 
Csharp :: basic math functions in c# 
Csharp :: unity check if transform doent have parent 
Csharp :: netmath 
Csharp :: c# Windows Forms screenshot 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =