hi All,
Iam having a server control ( without any .ascx file), the contains other user controls, and renders some html by overriding CreateChildControls method of the control.
In the Child control, i just create an htmlTable object, add a couple of rows etc., these rows contain some link buttons for which i also add the event handler.
When the code is not inside update panel, it works fine, it posts back, raises events and renders back correctly.
When i put the control inside a updatepanel, it posts back ( in the background), i can debug and see that events are being fired, but its doesnt refershes the screen. I have my update panel's mode property set to always, and iam using april ctp.
Also if i add update panel in the control itself , it complains that update panel should be there before page_init is done, now i need to rerender the control because of the events on it
Do i need to implement some other interface or register my control somewhere for it to work ?
this has become a major bottleneck in my project, where we are trying to use atlas for our future product versions, any help would be greatlty appreciated.
thanks
You said it does postback, did you use Fiddler to check if it returns right data? some xml wrapped in delta tag.Well i dont know if its posting right data or not, but i can confirm that the server side event gets raised, by debugging ( i can check with fiddler later today)
i also tried registering the controls with script manager's RegisterControl, and RegistercontrolAsync methods, but they dont result in ajax behavior.
Iam wondering as to what is the recommended way of developing components with Atlas, and if there are any examples posts out there ..
thanks
This doesn't seem like an Atlas Control Toolkit question - perhaps you'll have better luck in one of the Atlas forums.
No comments:
Post a Comment