Click here to Skip to main content
15,891,864 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Using server.transfer Pin
doyang26-Sep-06 15:46
doyang26-Sep-06 15:46 
AnswerRe: Using server.transfer Pin
Mairy31-Jul-06 23:11
Mairy31-Jul-06 23:11 
AnswerRe: Using server.transfer Pin
doyang2-Aug-06 22:33
doyang2-Aug-06 22:33 
QuestionRe: Using server.transfer [Follow-up] Pin
doyang2-Aug-06 22:35
doyang2-Aug-06 22:35 
QuestionProgrammically Adding Controls Pin
Drathmar30-Jul-06 15:42
Drathmar30-Jul-06 15:42 
AnswerRe: Programmically Adding Controls Pin
minhpc_bk30-Jul-06 20:17
minhpc_bk30-Jul-06 20:17 
GeneralRe: Programmically Adding Controls Pin
Drathmar31-Jul-06 11:50
Drathmar31-Jul-06 11:50 
GeneralRe: Programmically Adding Controls Pin
minhpc_bk31-Jul-06 16:11
minhpc_bk31-Jul-06 16:11 
Hi there,
Basically, the ASP.NET processes the postback event like Command based on the id of the control. When you dynamically create and add the control, the ASP.NET will generate the automatic id if you don't explicitly specify a value. And if the id of the control before and after it is clicked, the postback cannot be routed to the right control, and as a result of this the event handler does not execute. You can check this thing by doing a view source the web page. Here it's really odd that you call the Page_Load event handler again in the SetPanelColor as it leads to the fact that you recreate the dynamic control. Instead, you can seperate the code to set the backcolor of the panel in a method ,say SetPanelBackColor, then you can call it in both the Page_Load and SetPanelColor methods.

AnswerRe: weprte...[modified] Pin
Colin Angus Mackay30-Jul-06 12:19
Colin Angus Mackay30-Jul-06 12:19 
AnswerRe: I’m so sorry for this stupid forum. Pin
User 171649230-Jul-06 13:36
professionalUser 171649230-Jul-06 13:36 
GeneralRe: I’m so sorry for this stupid forum. Pin
RichardGrimmer31-Jul-06 1:37
RichardGrimmer31-Jul-06 1:37 
Questionelegant coding style - checkboxs Pin
MrJJKoolJ30-Jul-06 3:41
MrJJKoolJ30-Jul-06 3:41 
Questionhow to open a windows user control on asp.net page Pin
cvinod30-Jul-06 1:41
cvinod30-Jul-06 1:41 
AnswerRe: how to open a windows user control on asp.net page Pin
Ista4-Aug-06 3:31
Ista4-Aug-06 3:31 
QuestionProblem in seprate ui from code behind Pin
a33329-Jul-06 22:54
a33329-Jul-06 22:54 
GeneralRe: Problem in seprate ui from code behind Pin
Guffa29-Jul-06 23:05
Guffa29-Jul-06 23:05 
Questioninjecting controls Pin
sianatia29-Jul-06 21:59
sianatia29-Jul-06 21:59 
AnswerRe: injecting controls Pin
Guffa29-Jul-06 23:03
Guffa29-Jul-06 23:03 
GeneralRe: injecting controls Pin
sianatia30-Jul-06 18:51
sianatia30-Jul-06 18:51 
GeneralRe: injecting controls Pin
Ista3-Aug-06 8:48
Ista3-Aug-06 8:48 
AnswerRe: injecting controls Pin
Ista3-Aug-06 8:51
Ista3-Aug-06 8:51 
QuestionHow to set proxy Credentials to WebRequest ? Pin
VenkataRamana.Gali29-Jul-06 21:33
VenkataRamana.Gali29-Jul-06 21:33 
AnswerRe: How to set proxy Credentials to WebRequest ? [modified] Pin
Abhishek Chatterjee7-Aug-06 3:14
Abhishek Chatterjee7-Aug-06 3:14 
QuestionRadio on website Pin
hussainktm29-Jul-06 21:02
hussainktm29-Jul-06 21:02 
AnswerRe: Radio on website Pin
_AK_8-Aug-06 18:49
_AK_8-Aug-06 18:49 

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.