Click here to Skip to main content
15,887,350 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Getting the Excepption ExceptionType Newtonsoft.Json.JsonSerializationException in my Web API Pin
ZurdoDev12-May-17 0:46
professionalZurdoDev12-May-17 0:46 
SuggestionRe: Getting the Excepption ExceptionType Newtonsoft.Json.JsonSerializationException in my Web API Pin
Richard Deeming12-May-17 1:19
mveRichard Deeming12-May-17 1:19 
GeneralRe: Getting the Excepption ExceptionType Newtonsoft.Json.JsonSerializationException in my Web API Pin
indian14317-May-17 7:16
indian14317-May-17 7:16 
GeneralRe: Getting the Excepption ExceptionType Newtonsoft.Json.JsonSerializationException in my Web API Pin
Richard Deeming17-May-17 7:30
mveRichard Deeming17-May-17 7:30 
GeneralRe: Getting the Excepption ExceptionType Newtonsoft.Json.JsonSerializationException in my Web API Pin
indian14317-May-17 10:39
indian14317-May-17 10:39 
GeneralRe: Getting the Excepption ExceptionType Newtonsoft.Json.JsonSerializationException in my Web API Pin
Richard Deeming17-May-17 11:23
mveRichard Deeming17-May-17 11:23 
GeneralRe: Getting the Excepption ExceptionType Newtonsoft.Json.JsonSerializationException in my Web API Pin
indian14317-May-17 12:14
indian14317-May-17 12:14 
Questionhow can i add gridview in asp.net page using c# Pin
Joker87AHAHAH10-May-17 7:26
Joker87AHAHAH10-May-17 7:26 
hi to everyone
i need your help

i need to add GridView to a webpage using c#, without declare it in the page.aspx. is it possible?

i've tried in this way, but it never work

here the aspx

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <section ID="normalElement" runat="server"></section>    
    <section ID="adminPanel" runat="server"></section>
    <section ID="myC" runat="server"></section>    
</asp:Content>


here the c#

C#
GridView view = new GridView();
DataTable tbl = new DataTable();
DataColumn idCol = tbl.Columns.Add("COL_A");
idCol.DataType = System.Type.GetType("System.String");
DataColumn nameCol = tbl.Columns.Add("COL_B");
nameCol.DataType = System.Type.GetType("System.String");
DataColumn descrCol = tbl.Columns.Add("COL_C");
descrCol.DataType = System.Type.GetType("System.String");
DataColumn delCol = tbl.Columns.Add("COL_D");
delCol.DataType = System.Type.GetType("System.Boolean");
view.DataSource = tbl;
view.DataBind();
myC.Controls.Add(view);


but when i run the page, never appears on the page.
i've tried to add an empty row, but never change Confused | :confused: Confused | :confused: Confused | :confused:

so: is it possible doing what i'm trying to do?

thank you
AnswerRe: how can i add gridview in asp.net page using c# Pin
User 418025414-May-17 19:04
User 418025414-May-17 19:04 
Questionpage doesnot autopostback on radio button Pin
prog.sidra10-May-17 2:25
prog.sidra10-May-17 2:25 
AnswerRe: page doesnot autopostback on radio button Pin
User 418025414-May-17 19:07
User 418025414-May-17 19:07 
AnswerRe: page doesnot autopostback on radio button Pin
senthilaaru18-May-17 4:34
senthilaaru18-May-17 4:34 
Questionasp .net and angular2 Pin
Member 121448819-May-17 19:59
Member 121448819-May-17 19:59 
AnswerRe: asp .net and angular2 Pin
Richard MacCutchan9-May-17 21:32
mveRichard MacCutchan9-May-17 21:32 
GeneralRe: asp .net and angular2 Pin
Member 1214488110-May-17 5:03
Member 1214488110-May-17 5:03 
GeneralRe: asp .net and angular2 Pin
Richard MacCutchan10-May-17 5:24
mveRichard MacCutchan10-May-17 5:24 
AnswerRe: asp .net and angular2 Pin
Afzaal Ahmad Zeeshan10-May-17 5:27
professionalAfzaal Ahmad Zeeshan10-May-17 5:27 
QuestionLuck with integrating lightSlider with bootstrap and MVC Pin
jkirkerx9-May-17 8:52
professionaljkirkerx9-May-17 8:52 
AnswerBetter Luck Now Pin
jkirkerx9-May-17 13:38
professionaljkirkerx9-May-17 13:38 
Questionsearch record in gridview on page change reset to the old Pin
prog.sidra9-May-17 1:06
prog.sidra9-May-17 1:06 
AnswerRe: search record in gridview on page change reset to the old Pin
Afzaal Ahmad Zeeshan9-May-17 1:19
professionalAfzaal Ahmad Zeeshan9-May-17 1:19 
QuestionNeed HRMS Application Pin
naveen.prasad1528-May-17 8:43
naveen.prasad1528-May-17 8:43 
AnswerRe: Need HRMS Application Pin
geeta goel8-May-17 8:53
geeta goel8-May-17 8:53 
GeneralRe: Need HRMS Application Pin
naveen.prasad1528-May-17 8:59
naveen.prasad1528-May-17 8:59 
GeneralRe: Need HRMS Application Pin
Richard MacCutchan8-May-17 21:08
mveRichard MacCutchan8-May-17 21:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.