Click here to Skip to main content
15,921,371 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionStart Up help Pin
hrishiS20-Oct-09 0:06
hrishiS20-Oct-09 0:06 
AnswerRe: Start Up help Pin
Christian Graus20-Oct-09 0:14
protectorChristian Graus20-Oct-09 0:14 
GeneralRe: Start Up help Pin
hrishiS20-Oct-09 1:10
hrishiS20-Oct-09 1:10 
GeneralRe: Start Up help [modified] Pin
Richard MacCutchan20-Oct-09 4:16
mveRichard MacCutchan20-Oct-09 4:16 
GeneralRe: Start Up help Pin
Christian Graus20-Oct-09 10:48
protectorChristian Graus20-Oct-09 10:48 
GeneralRe: Start Up help Pin
Roger Wright20-Oct-09 20:37
professionalRoger Wright20-Oct-09 20:37 
AnswerRe: Start Up help Pin
Blikkies20-Oct-09 19:39
professionalBlikkies20-Oct-09 19:39 
Questionfind all images id from html file and store in array in c# Pin
vnsraj19-Oct-09 23:47
vnsraj19-Oct-09 23:47 
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 

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.