Button Click on a User Control Not getting fired

M

Moksha

Hi all,

My first post here :) ..

I seem to have a problem with a button click on a Custom User Control. The
scenario is such :

I have a Home Page (H) and I have a User Control (UC) dynamically loaded on
the page in a DataGrid. On the UC, I have a Button (B). Now the page is
loading fine, with all the controls being rendered as they should have been.
But, when I click on the Button (B), the Home page (H) is posted back and the
nothing happens after that. The flow does not proceed towards the OnClick
Event of the button (tried debugging with breakpoints on the OnClick Event of
the Button (B) but they are never reached).

I cant seem to understand what's happening here ?? Does anyone knows what
might be wrong here. ??

Thanks a bunch,
Yuv
 
B

Brian Fulford

since your button is "inside" of a container, are you sure you are
referencing the control correctly?
also is your autpostback property set to true?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top