1. There is no value posted back for a td tag.
2. Rather than just straight submitting the form, you might want to look
into GetPostBackClientEvent method.
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemwebuipageclassgetpostbackclienteventtop ic.asp
protected override void Render( HtmlTextWriter writer )
{
writer.AddAttribute( HtmlTextWriterAttribute.Name, UniqueID );
writer.AddAttribute( HtmlTextWriterAttribute.OnClick,
Page.GetClientPostBackEvent( this, "event args passed to your
RaisePostBackEvent" );
writer.RenderBeginTag( HtmlTextWriterTag.Td );
writer.RenderEndTag();
}
You really should use the "helper" function provided by the page to handle
the postback. By just calling submit, the form is just submitted, it
doesn't know what button ( any other control) triggered the post back.
HTH,
bill
"Lloyd Dupont" <ll***@RemoveIfNotSpamming.galador.net> wrote in message
news:#h**************@TK2MSFTNGP09.phx.gbl...
I am developing a special control, in fact it's a <td> tag
however on click I need to submit somedata.
so I write
protected void Render(HtmlTextWriter htw)
{
// ......
htw.Write("<td name='{0}' onclick='javascript:submit()'", UniqueID);
// ..
}
and implement IPostBackEventHandler.
however the method RaisePostBackEvent is never called (although the page
is reload), any ideas ?