Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brunoocasali/table-maker

This is an UserControl that generate by reflection, a table with some content data.
https://github.com/brunoocasali/table-maker

Last synced: about 23 hours ago
JSON representation

This is an UserControl that generate by reflection, a table with some content data.

Awesome Lists containing this project

README

        

Table Maker - User Control
===========

This is an simple user control that by reflection generate to you an awesome html table with your data.

How to use:

1° First add into your web.config file:
```







```
2° Create a new web form called `something.aspx`

3° Add this code to him ``

It maybe seems like this:
```
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Something.aspx.cs" Inherits="Something" %>

Awesome html tables now!!





```

4° In the code behind you need to insert the code reference at your classes and methods.
It maybe seems like this either:

```
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Something : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
uc.ParametersArray = new object[] { /* anything here, ALL OF YOUR METHOD PARAMS */ };
uc.ClassName = typeof(MyClass);
uc.MethodName = "myMethod";
uc.Fields = new List() { "my", "public", "attributes", "that", "I", "want" };
}
}
```

And save and start your ISS server! :D
I'll be improve the code, so help me fork this repo!