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

ASP.NET

 
GeneralRe: HTML Tag Pin
Socheat.Net23-Aug-06 16:48
Socheat.Net23-Aug-06 16:48 
AnswerRe: HTML Tag Pin
Guffa23-Aug-06 22:11
Guffa23-Aug-06 22:11 
GeneralRe: HTML Tag Pin
Socheat.Net25-Aug-06 15:19
Socheat.Net25-Aug-06 15:19 
AnswerRe: HTML Tag Pin
Guffa27-Aug-06 0:00
Guffa27-Aug-06 0:00 
QuestionDynamically Create Linkbutton Pin
JGOnline20-Aug-06 0:07
JGOnline20-Aug-06 0:07 
AnswerRe: Dynamically Create Linkbutton Pin
gnjunge20-Aug-06 0:40
gnjunge20-Aug-06 0:40 
GeneralRe: Dynamically Create Linkbutton Pin
JGOnline20-Aug-06 1:47
JGOnline20-Aug-06 1:47 
AnswerRe: Dynamically Create Linkbutton Pin
Mircea Grelus20-Aug-06 1:35
Mircea Grelus20-Aug-06 1:35 
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.

Questionhelp needed in slideshow Pin
Pravin H19-Aug-06 22:32
Pravin H19-Aug-06 22:32 
AnswerRe: help needed in slideshow [modified] Pin
gnjunge20-Aug-06 0:53
gnjunge20-Aug-06 0:53 
GeneralRe: help needed in slideshow Pin
Pravin H20-Aug-06 21:38
Pravin H20-Aug-06 21:38 
GeneralRe: help needed in slideshow Pin
gnjunge20-Aug-06 22:59
gnjunge20-Aug-06 22:59 
QuestionSQL Server, Images and DataGrid in ASP.NET Pin
postmaster@programmingknowledge.com19-Aug-06 19:01
postmaster@programmingknowledge.com19-Aug-06 19:01 
AnswerRe: SQL Server, Images and DataGrid in ASP.NET Pin
Colin Angus Mackay19-Aug-06 21:27
Colin Angus Mackay19-Aug-06 21:27 
AnswerRe: SQL Server, Images and DataGrid in ASP.NET Pin
bgates197020-Aug-06 7:43
bgates197020-Aug-06 7:43 
QuestionWebClient Problems Pin
bgates197019-Aug-06 11:11
bgates197019-Aug-06 11:11 
AnswerRe: WebClient Problems Pin
Guffa19-Aug-06 13:28
Guffa19-Aug-06 13:28 
GeneralRe: WebClient Problems Pin
bgates197020-Aug-06 7:33
bgates197020-Aug-06 7:33 
GeneralRe: WebClient Problems Pin
Guffa20-Aug-06 14:01
Guffa20-Aug-06 14:01 
Questionhow to get the selected text in textarea Pin
largs19-Aug-06 10:23
largs19-Aug-06 10:23 
AnswerRe: how to get the selected text in textarea Pin
Coding C#20-Aug-06 20:27
Coding C#20-Aug-06 20:27 
Questionjavascript coding for onmouseover event [modified] Pin
bhushan thorat19-Aug-06 4:00
bhushan thorat19-Aug-06 4:00 
AnswerRe: javascript coding for onmouseover event Pin
bgates197019-Aug-06 11:18
bgates197019-Aug-06 11:18 
Questionhow to do this? Pin
Amit Agarrwal19-Aug-06 3:55
Amit Agarrwal19-Aug-06 3:55 
AnswerRe: how to do this? Pin
Colin Angus Mackay19-Aug-06 21:30
Colin Angus Mackay19-Aug-06 21:30 

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.