Click here to Skip to main content
15,893,486 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Menu in ASP.NET Pin
Nanda_MR20-Oct-09 0:18
Nanda_MR20-Oct-09 0:18 
GeneralRe: Menu in ASP.NET Pin
Christian Graus20-Oct-09 0:38
protectorChristian Graus20-Oct-09 0:38 
GeneralRe: Menu in ASP.NET Pin
Nanda_MR20-Oct-09 1:29
Nanda_MR20-Oct-09 1:29 
QuestionHow to show GridView on Page load and populate it with data from textboxes Pin
Nopo19-Oct-09 22:52
Nopo19-Oct-09 22:52 
AnswerRe: How to show GridView on Page load and populate it with data from textboxes Pin
nagendrathecoder19-Oct-09 23:00
nagendrathecoder19-Oct-09 23:00 
GeneralRe: How to show GridView on Page load and populate it with data from textboxes Pin
Nopo19-Oct-09 23:27
Nopo19-Oct-09 23:27 
GeneralRe: How to show GridView on Page load and populate it with data from textboxes Pin
nagendrathecoder19-Oct-09 23:32
nagendrathecoder19-Oct-09 23:32 
GeneralRe: How to show GridView on Page load and populate it with data from textboxes Pin
Nopo20-Oct-09 0:16
Nopo20-Oct-09 0:16 
Thanks. Here it is now:

//Create DataTable.
DataTable dt = new DataTable();

//Assign Columns to it.
dt.Columns.Add(new DataColumn("Full Names"));
dt.Columns.Add(new DataColumn("Identifying Number"));
dt.Columns.Add(new DataColumn("Passport Number"));

//Create a DataRow by dt.NewRow().
DataRow dr = dt.NewRow();

//Fill that row and add it to datatable.
dr["Full Names"] = txtFirstName3.Text;
dr["Identifying Number"] = txtIdentityNo.Text;
dr["Passport Number"] = txtPassportNo.Text;
dt.Rows.Add(dr);

//Bind GridView Here with this Table
this.dgInfoProfile.DataSource = dt;
dgInfoProfile.DataBind();

I'm making a huge progress now. Smile | :)

After clicking ADD button, the gridview is showing with all the column names but the data captured from the textboxes is not being saved to the gridview.

I'll double check and see if there're any typing errors.
GeneralRe: How to show GridView on Page load and populate it with data from textboxes Pin
nagendrathecoder20-Oct-09 0:18
nagendrathecoder20-Oct-09 0:18 
GeneralRe: How to show GridView on Page load and populate it with data from textboxes Pin
Nopo20-Oct-09 3:36
Nopo20-Oct-09 3:36 
GeneralRe: How to show GridView on Page load and populate it with data from textboxes Pin
Abhijit Jana20-Oct-09 4:09
professionalAbhijit Jana20-Oct-09 4:09 
GeneralRe: How to show GridView on Page load and populate it with data from textboxes Pin
nagendrathecoder20-Oct-09 18:34
nagendrathecoder20-Oct-09 18:34 
GeneralRe: How to show GridView on Page load and populate it with data from textboxes Pin
Leezo8729-Oct-09 3:19
Leezo8729-Oct-09 3:19 
GeneralRe: How to show GridView on Page load and populate it with data from textboxes Pin
TMFoust22-Dec-09 9:01
TMFoust22-Dec-09 9:01 
QuestionASP.NET Control: The Code Project Newsletter topics Control Pin
Gebbetje19-Oct-09 22:12
Gebbetje19-Oct-09 22:12 
AnswerRe: ASP.NET Control: The Code Project Newsletter topics Control Pin
Abhijit Jana19-Oct-09 22:48
professionalAbhijit Jana19-Oct-09 22:48 
QuestionRe: ASP.NET Control: The Code Project Newsletter topics Control Pin
Gebbetje20-Oct-09 0:21
Gebbetje20-Oct-09 0:21 
AnswerRe: ASP.NET Control: The Code Project Newsletter topics Control Pin
Abhijit Jana20-Oct-09 1:16
professionalAbhijit Jana20-Oct-09 1:16 
QuestionHow to get the treeview node count using javascript? Pin
meeram39519-Oct-09 22:07
meeram39519-Oct-09 22:07 
AnswerRe: How to get the treeview node count using javascript? Pin
Abhishek Sur19-Oct-09 22:40
professionalAbhishek Sur19-Oct-09 22:40 
AnswerRe: How to get the treeview node count using javascript? Pin
Nigel Ferrissey19-Oct-09 22:55
Nigel Ferrissey19-Oct-09 22:55 
Questionimages Pin
mylogics19-Oct-09 22:02
professionalmylogics19-Oct-09 22:02 
AnswerRe: images Pin
nagendrathecoder19-Oct-09 22:07
nagendrathecoder19-Oct-09 22:07 
GeneralRe: images Pin
Christian Graus19-Oct-09 23:27
protectorChristian Graus19-Oct-09 23:27 
GeneralRe: images Pin
nagendrathecoder19-Oct-09 23:33
nagendrathecoder19-Oct-09 23:33 

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.