Click here to Skip to main content
15,899,026 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: problem when upload my site Pin
Abhishek Sur30-Aug-09 2:27
professionalAbhishek Sur30-Aug-09 2:27 
AnswerRe: problem when upload my site Pin
Shuaib wasif khan30-Aug-09 14:44
Shuaib wasif khan30-Aug-09 14:44 
QuestionItemCommand not firing Pin
Chazzysb29-Aug-09 9:42
Chazzysb29-Aug-09 9:42 
AnswerRe: ItemCommand not firing Pin
Abhishek Sur29-Aug-09 9:52
professionalAbhishek Sur29-Aug-09 9:52 
GeneralRe: ItemCommand not firing Pin
Chazzysb29-Aug-09 9:59
Chazzysb29-Aug-09 9:59 
GeneralRe: ItemCommand not firing Pin
Abhishek Sur29-Aug-09 10:31
professionalAbhishek Sur29-Aug-09 10:31 
GeneralRe: ItemCommand not firing [modified] Pin
Chazzysb29-Aug-09 12:15
Chazzysb29-Aug-09 12:15 
AnswerRe: ItemCommand not firing Pin
Chazzysb30-Aug-09 0:59
Chazzysb30-Aug-09 0:59 
Ok managed to find a fix...

The problem was that as the control was generated dynamically, on clicking on the link button the page would refresh, on its refresh the control was not created, so the link button didnt exist. I googled this for hours and the more I read about it the more I was told that its an EnableViewState issue (assuming enable view state would ensure the control exists after refreshes) - I enabled view state on the master page, the place holder on the master page, the page directive, the content holder on the page, the content holder that i populate dynamically, the user control, the data list within the control... still when the page refreshed the dynamically loaded content was always lost... any ideas on this?

Anyway to hack around this - when i set the datasource for the datalist i store it in a session parameter.
Then override OnInit on the page - and if the session parameter exists then recreate the control first. This has got it working but its a hack that I dont like.
GeneralRe: ItemCommand not firing Pin
Abhishek Sur30-Aug-09 2:44
professionalAbhishek Sur30-Aug-09 2:44 
Questionsend data to sql server Pin
hasani200729-Aug-09 8:23
hasani200729-Aug-09 8:23 
AnswerRe: send data to sql server Pin
Manas Bhardwaj29-Aug-09 8:30
professionalManas Bhardwaj29-Aug-09 8:30 
Questionplay you tube on your site Pin
michael@cohen29-Aug-09 8:14
michael@cohen29-Aug-09 8:14 
AnswerRe: play you tube on your site Pin
Manas Bhardwaj29-Aug-09 8:32
professionalManas Bhardwaj29-Aug-09 8:32 
AnswerRe: play you tube on your site Pin
Abhishek Sur29-Aug-09 10:04
professionalAbhishek Sur29-Aug-09 10:04 
AnswerRe: play you tube on your site Pin
michael@cohen29-Aug-09 10:40
michael@cohen29-Aug-09 10:40 
AnswerRe: play you tube on your site Pin
Christian Graus29-Aug-09 13:26
protectorChristian Graus29-Aug-09 13:26 
Questionabout javascript function Pin
Seraph_summer29-Aug-09 6:47
Seraph_summer29-Aug-09 6:47 
AnswerRe: about javascript function Pin
Arindam Sinha29-Aug-09 7:06
Arindam Sinha29-Aug-09 7:06 
GeneralRe: about javascript function Pin
Seraph_summer29-Aug-09 7:53
Seraph_summer29-Aug-09 7:53 
GeneralRe: about javascript function Pin
Arindam Sinha29-Aug-09 7:55
Arindam Sinha29-Aug-09 7:55 
AnswerRe: about javascript function Pin
Abhishek Sur29-Aug-09 11:03
professionalAbhishek Sur29-Aug-09 11:03 
QuestionHow to induce CSS style to be applied when you run the page from VS2008 Pin
Chesnokov Yuriy29-Aug-09 6:43
professionalChesnokov Yuriy29-Aug-09 6:43 
AnswerRe: How to induce CSS style to be applied when you run the page from VS2008 Pin
Abhishek Sur29-Aug-09 10:28
professionalAbhishek Sur29-Aug-09 10:28 
QuestionRe: How to induce CSS style to be applied when you run the page from VS2008 Pin
Chesnokov Yuriy29-Aug-09 20:40
professionalChesnokov Yuriy29-Aug-09 20:40 
QuestionDropDown List Selected Index Change Problem Pin
jahirhstu29-Aug-09 4:54
jahirhstu29-Aug-09 4:54 

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.