Click here to Skip to main content
15,905,322 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: find all images id from html file and store in array in c# Pin
Christian Graus19-Oct-09 23:59
protectorChristian Graus19-Oct-09 23:59 
AnswerRe: find all images id from html file and store in array in c# Pin
vnsraj20-Oct-09 0:43
vnsraj20-Oct-09 0:43 
AnswerRe: find all images id from html file and store in array in c# Pin
Shameel20-Oct-09 4:52
professionalShameel20-Oct-09 4:52 
QuestionPaging in DataList Pin
Shalini_U19-Oct-09 23:46
Shalini_U19-Oct-09 23:46 
AnswerRe: Paging in DataList Pin
Christian Graus20-Oct-09 0:00
protectorChristian Graus20-Oct-09 0:00 
GeneralRe: Paging in DataList Pin
Shalini_U20-Oct-09 0:09
Shalini_U20-Oct-09 0:09 
GeneralRe: Paging in DataList Pin
Christian Graus20-Oct-09 0:37
protectorChristian Graus20-Oct-09 0:37 
GeneralRe: Paging in DataList Pin
Shalini_U20-Oct-09 2:24
Shalini_U20-Oct-09 2:24 
QuestionMenu in ASP.NET Pin
Nanda_MR19-Oct-09 23:43
Nanda_MR19-Oct-09 23:43 
AnswerRe: Menu in ASP.NET Pin
Christian Graus20-Oct-09 0:02
protectorChristian Graus20-Oct-09 0:02 
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 
I have put:
DataTable dt = new DataTable();
dt.Columns.Add(new DataColumn("Full Names"));
dt.Columns.Add(new DataColumn("Identifying Number"));
dt.Columns.Add(new DataColumn("Passport Number"));

under ADD button click and now my ADD button click looks like:

DataTable dt = new DataTable();
DataRow dr = new DataRow();

dt.Columns.Add(new DataColumn("Full Names"));
dt.Columns.Add(new DataColumn("Identifying Number"));
dt.Columns.Add(new DataColumn("Passport Number"));

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.dgInfoProfile1.DataSource = dt;
dgInfoProfile1.DataBind();

Now, the app is complaining with this line:
DataRow dr = new DataRow(); Sigh | :sigh:

error: 'System.Data.DataRow.DataRow(System.Data.DataRowBuilder)' is inaccessible due to its protection level

How am I supposed to define the DataRow?

And as for the gridview on PageLoad, it's not showing still. Hmmm | :|
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 
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 

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.