Click here to Skip to main content
15,920,956 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionwhich is better ? Pin
anj198314-Jun-06 9:10
anj198314-Jun-06 9:10 
AnswerRe: which is better ? Pin
Elina Blank14-Jun-06 9:27
sitebuilderElina Blank14-Jun-06 9:27 
QuestionDatagrid; using multiple tables and getting blank row Pin
leckey14-Jun-06 8:45
leckey14-Jun-06 8:45 
AnswerRe: Datagrid; using multiple tables and getting blank row Pin
ToddHileHoffer14-Jun-06 9:07
ToddHileHoffer14-Jun-06 9:07 
GeneralRe: Datagrid; using multiple tables and getting blank row Pin
leckey14-Jun-06 9:12
leckey14-Jun-06 9:12 
QuestionHow to get selected values from dynamically created checklist? Pin
omerrauf14-Jun-06 6:02
omerrauf14-Jun-06 6:02 
AnswerRe: How to get selected values from dynamically created checklist? Pin
ToddHileHoffer14-Jun-06 7:50
ToddHileHoffer14-Jun-06 7:50 
AnswerRe: How to get selected values from dynamically created checklist? Pin
Mircea Grelus14-Jun-06 8:33
Mircea Grelus14-Jun-06 8:33 
The thing is that the postback resets the page to it's original state, so any information regarding the dynamically created controls is lost. Why is that? Because the Page class is stateless. The Page recreates child controls based on the tags in the aspx files, so your controls not being present there are not shown. What you need to do is recreate the controls in the OnInit event or any event that fires before PageLoad, or in PageLoad if you do a check to see is the page is posted back. See this article[^] as an example.

regards,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
GeneralRe: How to get selected values from dynamically created checklist? Pin
ToddHileHoffer14-Jun-06 8:38
ToddHileHoffer14-Jun-06 8:38 
GeneralRe: How to get selected values from dynamically created checklist? Pin
Mircea Grelus14-Jun-06 8:45
Mircea Grelus14-Jun-06 8:45 
QuestionAsp 2.0 Gridview/SqlDataSource update/delete problem Pin
Fr23516614-Jun-06 4:00
Fr23516614-Jun-06 4:00 
AnswerRe: Asp 2.0 Gridview/SqlDataSource update/delete problem Pin
ToddHileHoffer14-Jun-06 8:02
ToddHileHoffer14-Jun-06 8:02 
GeneralRe: Asp 2.0 Gridview/SqlDataSource update/delete problem Pin
Fr23516614-Jun-06 22:28
Fr23516614-Jun-06 22:28 
AnswerRe: Asp 2.0 Gridview/SqlDataSource update/delete problem Pin
minhpc_bk14-Jun-06 19:56
minhpc_bk14-Jun-06 19:56 
GeneralRe: Asp 2.0 Gridview/SqlDataSource update/delete problem Pin
Fr23516614-Jun-06 22:00
Fr23516614-Jun-06 22:00 
GeneralRe: Asp 2.0 Gridview/SqlDataSource update/delete problem Pin
minhpc_bk14-Jun-06 22:19
minhpc_bk14-Jun-06 22:19 
GeneralRe: Asp 2.0 Gridview/SqlDataSource update/delete problem Pin
Fr23516614-Jun-06 22:38
Fr23516614-Jun-06 22:38 
GeneralRe: Asp 2.0 Gridview/SqlDataSource update/delete problem Pin
minhpc_bk14-Jun-06 23:06
minhpc_bk14-Jun-06 23:06 
GeneralRe: Asp 2.0 Gridview/SqlDataSource update/delete problem Pin
Fr23516614-Jun-06 23:12
Fr23516614-Jun-06 23:12 
GeneralRe: Asp 2.0 Gridview/SqlDataSource update/delete problem Pin
minhpc_bk14-Jun-06 23:38
minhpc_bk14-Jun-06 23:38 
GeneralRe: Asp 2.0 Gridview/SqlDataSource update/delete problem Pin
Fr23516615-Jun-06 0:07
Fr23516615-Jun-06 0:07 
GeneralRe: Asp 2.0 Gridview/SqlDataSource update/delete problem Pin
minhpc_bk15-Jun-06 0:37
minhpc_bk15-Jun-06 0:37 
GeneralRe: Asp 2.0 Gridview/SqlDataSource update/delete problem Pin
Fr23516615-Jun-06 3:40
Fr23516615-Jun-06 3:40 
GeneralRe: Asp 2.0 Gridview/SqlDataSource update/delete problem Pin
minhpc_bk15-Jun-06 8:15
minhpc_bk15-Jun-06 8:15 
QuestionDynamically Generated Columns in DataGrid Pin
alexfromto14-Jun-06 3:43
alexfromto14-Jun-06 3:43 

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.