Click here to Skip to main content
15,904,877 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: solution n-tiers Pin
tek 200920-Apr-10 5:37
tek 200920-Apr-10 5:37 
GeneralRe: solution n-tiers Pin
Vimalsoft(Pty) Ltd20-Apr-10 10:06
professionalVimalsoft(Pty) Ltd20-Apr-10 10:06 
Questionwebconfig size problem Pin
kuyucakli19-Apr-10 1:11
kuyucakli19-Apr-10 1:11 
AnswerRe: webconfig size problem Pin
Dinesh Mani19-Apr-10 1:28
Dinesh Mani19-Apr-10 1:28 
QuestionResponse.redirect problem in IE Pin
surender.m19-Apr-10 0:57
surender.m19-Apr-10 0:57 
AnswerRe: Response.redirect problem in IE Pin
surender.m20-Apr-10 20:20
surender.m20-Apr-10 20:20 
QuestionData not transfering to another page Pin
developerit18-Apr-10 23:16
developerit18-Apr-10 23:16 
AnswerRe: Data not transfering to another page Pin
Dinesh Mani19-Apr-10 0:49
Dinesh Mani19-Apr-10 0:49 
First and foremost, edit your post and remove the connection details. Its not so good to post your SQL server's sa password on forums even if it is CodeProject.

First step to solving this would be to step through your code and identify if the dt that your are persisting in the session has any values. Debug the application, put a break point on the statement Session["CheckedRecords"] = dt;. Check if it has any values before going into the session.

If it has values then on the 2nd page check what you are getting out of the session. Again put a break point on the line DataTable dt = (DataTable)Session["CheckedRecords"]; and check the values in dt.


Some suggestions [read free advice Big Grin | :-D ]
1. Data table is an reference type. You need not return it from AddNewRow and RemoveRow methods. The dt in the calling function and the dt local to AddNewRow and RemoveRow methods point to the same datatable in the heap. Doing this way would just increase the over head on the GC and reduce maintainability of your code.
2. In the AddNewRow method, rather than doing "dt.Rows.Count - 1" every time, do it once and store it as rowNum and use it subsequently. This reduces the number of execution cycles.
3. Format your code. Proper indentation improves readability.

HTH!
AnswerRe: Data not transfering to another page Pin
Tej Aj19-Apr-10 2:19
Tej Aj19-Apr-10 2:19 
QuestionCSS and Specific Word Colouring Pin
Paul Unsworth18-Apr-10 23:13
Paul Unsworth18-Apr-10 23:13 
AnswerRe: CSS and Specific Word Colouring Pin
daveyerwin19-Apr-10 0:29
daveyerwin19-Apr-10 0:29 
GeneralRe: CSS and Specific Word Colouring Pin
Paul Unsworth19-Apr-10 0:31
Paul Unsworth19-Apr-10 0:31 
QuestionHow to import gmail,yahoo, etc. contacts in asp.net Pin
Avinash_Mane18-Apr-10 21:15
Avinash_Mane18-Apr-10 21:15 
AnswerRe: How to import gmail,yahoo, etc. contacts in asp.net Pin
Abhijit Jana18-Apr-10 21:26
professionalAbhijit Jana18-Apr-10 21:26 
GeneralRe: How to import gmail,yahoo, etc. contacts in asp.net Pin
Gaurav Dudeja India18-Apr-10 22:20
Gaurav Dudeja India18-Apr-10 22:20 
GeneralRe: How to import gmail,yahoo, etc. contacts in asp.net Pin
Abhijit Jana18-Apr-10 22:50
professionalAbhijit Jana18-Apr-10 22:50 
GeneralRe: How to import gmail,yahoo, etc. contacts in asp.net Pin
Gaurav Dudeja India18-Apr-10 22:57
Gaurav Dudeja India18-Apr-10 22:57 
QuestionSearcching Pin
dfsdsf4343418-Apr-10 20:59
dfsdsf4343418-Apr-10 20:59 
AnswerRe: Searcching Pin
Abhijit Jana18-Apr-10 21:14
professionalAbhijit Jana18-Apr-10 21:14 
AnswerRe: Searcching Pin
Sandesh M Patil18-Apr-10 23:02
Sandesh M Patil18-Apr-10 23:02 
QuestionImage url getting wrong Pin
Member 438775718-Apr-10 20:24
Member 438775718-Apr-10 20:24 
QuestionRegular Expression for link in vb.net label. Pin
Member 412548018-Apr-10 14:57
Member 412548018-Apr-10 14:57 
AnswerRe: Regular Expression for link in vb.net label. Pin
Not Active18-Apr-10 15:16
mentorNot Active18-Apr-10 15:16 
AnswerRe: Regular Expression for link in vb.net label. Pin
Member 412548018-Apr-10 17:26
Member 412548018-Apr-10 17:26 
QuestionHow to check email existence with asp.net Pin
Shahriar Iqbal Chowdhury/Galib18-Apr-10 9:15
professionalShahriar Iqbal Chowdhury/Galib18-Apr-10 9:15 

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.