Click here to Skip to main content
15,907,001 members
Home / Discussions / C#
   

C#

 
AnswerRe: architecture MVC Pin
Not Active2-Mar-12 2:25
mentorNot Active2-Mar-12 2:25 
GeneralRe: architecture MVC Pin
Pete O'Hanlon2-Mar-12 4:01
mvePete O'Hanlon2-Mar-12 4:01 
GeneralRe: architecture MVC Pin
Not Active2-Mar-12 5:51
mentorNot Active2-Mar-12 5:51 
AnswerRe: architecture MVC Pin
Pete O'Hanlon2-Mar-12 3:24
mvePete O'Hanlon2-Mar-12 3:24 
GeneralRe: architecture MVC Pin
MemberDotNetting2-Mar-12 3:41
MemberDotNetting2-Mar-12 3:41 
QuestionDataTable and DataSet? Pin
murali_utr1-Mar-12 17:32
murali_utr1-Mar-12 17:32 
SuggestionRe: DataTable and DataSet? Pin
V.1-Mar-12 20:33
professionalV.1-Mar-12 20:33 
AnswerRe: DataTable and DataSet? Pin
V.1-Mar-12 20:41
professionalV.1-Mar-12 20:41 
I think the problem resides where you check the !Page.IsPostBack. When you press a button that runs on the server, the page will go into the Page_Load first and then in the event handler of the button. The state is NOT saved between postbacks so this means that the datatables do not exist yet.

You could or recreate the table on each postback or save the information in a session object and take it out. Like this:

if(!Page.IsPostBack){
//create table here
//in the end put in Session object.
}
else{
//Reassign your table with the information from the Session object.
}



You might want to read up on the Asp.Net Page Life Cycle (see google). That will clarify things.

hope this helps.
V.

AnswerRe: DataTable and DataSet? Pin
satalaj2-Mar-12 5:18
satalaj2-Mar-12 5:18 
AnswerRe: DataTable and DataSet? Pin
Rahul Rajat Singh3-Mar-12 0:43
professionalRahul Rajat Singh3-Mar-12 0:43 
QuestionHow to know application exit in Console started by Process.Start("cmd.exe")) Pin
gshen1-Mar-12 12:28
gshen1-Mar-12 12:28 
AnswerRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
Dave Kreskowiak1-Mar-12 13:03
mveDave Kreskowiak1-Mar-12 13:03 
GeneralRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
gshen1-Mar-12 13:08
gshen1-Mar-12 13:08 
GeneralRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
Dave Kreskowiak1-Mar-12 13:43
mveDave Kreskowiak1-Mar-12 13:43 
AnswerRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
PIEBALDconsult1-Mar-12 13:24
mvePIEBALDconsult1-Mar-12 13:24 
GeneralRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
gshen2-Mar-12 6:01
gshen2-Mar-12 6:01 
AnswerRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
Peter_in_27801-Mar-12 13:43
professionalPeter_in_27801-Mar-12 13:43 
GeneralRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
gshen2-Mar-12 6:07
gshen2-Mar-12 6:07 
AnswerRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
Bernhard Hiller1-Mar-12 20:38
Bernhard Hiller1-Mar-12 20:38 
GeneralRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
gshen2-Mar-12 6:09
gshen2-Mar-12 6:09 
AnswerRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
BobJanova1-Mar-12 23:28
BobJanova1-Mar-12 23:28 
GeneralRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
gshen2-Mar-12 6:11
gshen2-Mar-12 6:11 
AnswerRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
#realJSOP2-Mar-12 4:21
professional#realJSOP2-Mar-12 4:21 
GeneralRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
gshen2-Mar-12 6:15
gshen2-Mar-12 6:15 
QuestionIQueryable or IEnumerable as returns from Repositories Pin
Ciumac Sergiu1-Mar-12 10:57
Ciumac Sergiu1-Mar-12 10:57 

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.