[Mono-dev] Postback on Custom Controls

APS subscription.sapi at apsystems.it
Tue Jun 20 07:11:48 EDT 2006

I changed the mail subject according to the problem.
I've investigated on my problem and I've found that if I make a new 
custom control inheriting, for example, from a LinkButton and I 
completely rewrite the OnRender without calling the base method .Net 
adds the __doPostBack javascript function, mono doesn't.
I think that is because I didn't wrote any postback calls, in fact if 
I call the Page.GetPostBackClientEvent Mono correctly adds the 
__doPostBack function, .Net instead always adds it cause it looks at 
the LinkButton object.

In some ways this can be correct, if not used is unuseful to add it, 
but if I've to manage in a different way the postback funztionality, 
how can I force mono to write the __doPostBack function?

At 20.33 19/06/2006, Juraj Skripsky wrote:
>It's hard to see what's wrong from your description alone. Could you
>provide some code or a test case?
>- Juraj
>On Mon, 2006-06-19 at 19:16 +0200, APS wrote:
> > Going on with tests I was that probably the problem is not due to
> > ascxs but to a custom control I've build.
> > In this control I render manually the output writing a call to
> > __doPostBack.
> > I thought that in this case I should instruct mono to write the
> > __doPostBack function for my control so I used a
> > this .Page.RegisterRequiresPostBack( this ); before the rendering
> > operation but mono still not write the __doPostBack function.
> > Someone knows if I've to do something more?
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list

More information about the Mono-devel-list mailing list