__EVENTTARGET not populating after button click + C#/ASP.NET

lafAlelve

New Member
I have an asp button that produces this html: \[code\]<input type="submit" name="ctl00$m$g_a2ba5666_c8e9_4bd7_a44a_f9407dbe2199$ctl00$btnAddWebPart" value="http://stackoverflow.com/questions/3375438/Add Report" id="ctl00_m_g_a2ba5666_c8e9_4bd7_a44a_f9407dbe2199_ctl00_btnAddWebPart" />\[/code\]When the button is submitted and the page_load method is hit, I am trying to do this: \[code\]String target = Page.Request.Params.Get("__EVENTTARGET");\[/code\]but, for some reason 'target' is empty. I checked to see if __EVENTTARGET is getting populated and it is an empty string. Any ideas as to why this is happening? It is something really silly.Thanks.
 
Top