I have a custom webpart page which is used to enter some input data which eventually gets saved as a List item. Now i want to add a control to that page which enables user to upload attachments to the same list item. Currently after the data is saved as list item i am enabling a link on the page which will open the default "/_layouts/AttachFile.aspx" page for that particular item id. But is there any better way in which the user can add attachment and data together, so that user does not have to submit data first , Save and then add attachment.
you can use HTML file upload control to select the document from local system.