I has problem when using RedirectWithId function in my NewForm.aspx.
My code in NewForm.aspx:
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
First of all, why do we use form[name='aspnetForm'] selector in this function? Main form has id equals to "aspnetForm", but not the name. On the line 3911 we use "#aspnetForm" as selector.
Ok, I've changed it myself, all code goes correctly step by step in debugger, set action to new url in code. But I don't see new action attached to form in debugger and after post from data it redirects me to AllItems.aspx list view (original source url).
I reproduced this code and behavior on the simplest list with only one Title field
Help me please, what I'm doing wrong?