Question

I have this .aspx which has a few checkboxes and textboxes and a submit button.

Using a delegatecontrol, I add some external textboxes to that page. Now, what happens when I click the submit button it sends all the information to a list, BUT the values in the textboxes added through the delegatecontrol is not affected by the submit buttons click event, so what I want to know is: Is it possible to catch the .aspx click event in the delegatecontrol?

The reason why I don't just put in the textboxes in the .aspx file is because I don't have access to the .aspx.cs file attached to it, just the .aspx file.

Était-ce utile?

La solution

One thing you can do is check for the ID of the control that caused the postback with Request.Params["__EVENTTARGET"] inside of your delegate control. I'm pretty sure you can actually get the actual event that caused the postback as well.

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top