Help..
I have a custom new list item ASPX form. The form is working great, but I need to add custom functionality around the List Item name. I want to programmatically name the item upon the user clicking the save button. I have read a few ideas, but nothing fits the bill.
I have read a number of articles about inheriting from SharePoint.WebControls.SaveButton, and inserting code in the the overriden SaveItem function. However since my List Name field is outside the scope of the SaveButton control, I can use this to modify the List Item name.
I tried writting my own Save button. The Click event is saving the ListItem name before calling the SaveButton.SaveItem function. This works, but I have to have the still have to have the Name SharePoint:FormField on the page. If anyone enters a value into the FormField, it overrides my customized name. I also need to research a way to close the New Item form and refresh my List, that SharePoint:SaveButton does so nicely form me.
Ideas, throughs, suggestions?????
This would be so easy if Microsoft hadn't protected the SaveItem call.