G
Guest
I have a requirement to show a label and x number of buttons in all of the
pages.
So i decided to write a Base Page class and added code for dynamically
adding the label and buttons. For the buttons i have added the handlers.
Finally added the label and buttons to a place holder.
When page is rendered i am able to see the label and buttons. but when i
click the buttons events are not firing. i found two problems.
First one is when i click the buttons handlers are not firing. so i kept the
buttons in the session and added them back in the page_load event. by doing i
am able to go inside my handler function. In my handler function I am able to
fetch the information from the page, but not able to set any properties of
other controls. Like disabling a control etc.
Second one is when i write Response.write("test"), it is saying context
does't have Response object.
I think i must be doing some thing wrong.Can someone help me with the above
pages.
So i decided to write a Base Page class and added code for dynamically
adding the label and buttons. For the buttons i have added the handlers.
Finally added the label and buttons to a place holder.
When page is rendered i am able to see the label and buttons. but when i
click the buttons events are not firing. i found two problems.
First one is when i click the buttons handlers are not firing. so i kept the
buttons in the session and added them back in the page_load event. by doing i
am able to go inside my handler function. In my handler function I am able to
fetch the information from the page, but not able to set any properties of
other controls. Like disabling a control etc.
Second one is when i write Response.write("test"), it is saying context
does't have Response object.
I think i must be doing some thing wrong.Can someone help me with the above