BTW I have check if I don't mess up with control ID, but the Control's id is the same at each query or postback....
"Lloyd Dupont" <net.galador@ld> wrote in message news:...
I have a Control like that
===
public class BlogMonthList : Control, IPostBackEventHandler
{
protected override void Render(HtmlTextWriter writer)
{
writer.WriteLine(" <a href=\"{0}\">{1}</a><br/>",
Page.ClientScript.GetPostBackClientHyperlink(this, "addblog"),
strings.AddBlog);
}
public void RaisePostBackEvent(string eventArgument)
{
switch (eventArgument)
{
case "addblog":
// do something
break;
}
}
}
===
Now I have a breakpoint in RaisePostBack(), when I click the link, RaisePostBack is never called.
How could that be?
Is there some extra steps I have been missing?
--
I have taken a vow of poverty. If you want to really **** me off, send me money.
|