Binding Data to Gridview

Binding Data to Gridview

Hi All,
 
I am working for ASP.Net MVC applications, I have a requirement to display the HTML control names and Id values into grid view.
 
I know how to find the HTML control names and ID's, below is the code snippet to find the control names and id's.

<

script language ="javascript" type ="text/javascript">

$(function($) {

$.map($("form > *"), function(e) {

if (e.type != "hidden") {

alert("HTML ControlType:- "+ e.type+" ' " +"And" +"Control Name:- "+ e.name);

}  }); });

</script>

But my requirement is to display the retrived control names and id in a grid view of same MVC view(aspx page).

Please help me how to achive this.

Thanks

Satish Kacham