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

ASP.NET

 
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 
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 
With your code, you have created the table tbl but you did not bind any data to it, those are columns you defined with no data so it will not be visible on the page.

Try something like below -

Have a place holder as below -
<asp:PlaceHolder ID="ph" runat="server" />


I am able to add the grid on page with below code.

C#
protected void Page_Load(object sender, EventArgs e)
{
    List<string> countrylist = new List<string>() { "India", "US" };

    GridView grid = new GridView();
    grid.AutoGenerateColumns = true;
    grid.DataSource = countrylist;
    grid.DataBind();

    ph.Controls.Add(grid);

}


modified 20-Sep-20 21:01pm.

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 
GeneralRe: Need HRMS Application Pin
naveen.prasad1523-Nov-17 7:18
naveen.prasad1523-Nov-17 7:18 

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.