views:

140

answers:

1

In my Javascript I am manually calling

__doPostBack('myUpdatePanelId','mycustomeventarg')

It works fine except the EventArgs in my

protected void Page_Load(object sender, EventArgs e)

is always empty. Do I have to cast it to something else somehow?

+2  A: 

I think that is normal. In my current project on every page call (whether or not postback)...

e == EventArgs.Empty

Tom
So is there no way to pass arguments you formed with JS?
Matt
__EVENTARGUMENT is a hidden field so you can use Request.Params["__EVENTARGUMENT"].
Tom
Or because you are using a server control override the Page.RaisePostBackEvent http://msdn.microsoft.com/en-us/library/system.web.ui.page.raisepostbackevent.aspx
Tom