https://gallery.orchardproject.net/List/Modules/Orchard.Module.jQueryWidget/1.0
Monday, November 28, 2011
How to display System.Data.DataTable data in ASP.NET MVC
public ActionResult TasksByProjectReport()
{
System.Data.DataTable data = _reportService.GetReportData();
return View(data);
}
@model System.Data.DataTable
@using System.Data; <h2>Report</h2>
<table>
<thead>
<tr>
@foreach (DataColumn col in Model.Columns)
{
<th>@col.ColumnName</th> }
</tr>
</thead>
<tbody>
@foreach (DataRow row in Model.Rows)
{
<tr>
@foreach (DataColumn col in Model.Columns)
{
<td>@row[col.ColumnName]</td> }
</tr> }
</tbody>
</table>
http://weblogs.asp.net/gunnarpeipman/archive/2011/11/19/asp-net-mvc-simple-view-to-display-contents-of-datatable.aspx
{
System.Data.DataTable data = _reportService.GetReportData();
return View(data);
}
@model System.Data.DataTable
@using System.Data; <h2>Report</h2>
<table>
<thead>
<tr>
@foreach (DataColumn col in Model.Columns)
{
<th>@col.ColumnName</th> }
</tr>
</thead>
<tbody>
@foreach (DataRow row in Model.Rows)
{
<tr>
@foreach (DataColumn col in Model.Columns)
{
<td>@row[col.ColumnName]</td> }
</tr> }
</tbody>
</table>
http://weblogs.asp.net/gunnarpeipman/archive/2011/11/19/asp-net-mvc-simple-view-to-display-contents-of-datatable.aspx
How to make SSO, Single Sign-On in ASP.NET for two sub domains?
1. Put same machine keys setting in two web.config file:
http://rayaspnet.blogspot.com/2011/11/how-to-generate-machine-key-for-aspnet.html
2. Modify following parts in two web.config files:
Name, domain, path and
http://rayaspnet.blogspot.com/2011/11/how-to-generate-machine-key-for-aspnet.html
2. Modify following parts in two web.config files:
Name, domain, path and
enableCrossAppRedirects
<authentication mode="Forms">
<forms name=".ASPNET" path="/" domain="abc.com" enableCrossAppRedirects="true" />
</authentication>
Subscribe to:
Posts (Atom)