Submit button in a WebPart
I have added a submit button inside my webpart in create child controls oButtonSubmit = new Button(); oButtonSubmit.Text = "Submit"; oButtonSubmit.CssClass = "ms-ButtonHeightWidth"; this.Controls.Add(oButtonSubmit); oButtonSubmit.Click += new EventHandler(oButtonSubmit_Click); In the click of submit button, i am inserting to a sharepoint list. Every time the page is refreshed, the submit onclick gets called and data gets inserted to the share point list. I want the insert to happen only on the click of the submit button.
May 5th, 2011 12:24pm

Hi, This Exchange forum, try to ask your question on a sharepoint forum! it's better for you to get a quick answer to your question! best regards!Best Regards Don't forget to mark it as answer if it helps
Free Windows Admin Tool Kit Click here and download it now
May 5th, 2011 2:32pm

SharePoint Products and Technologies Forums http://social.technet.microsoft.com/Forums/en-US/category/sharepointPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
May 9th, 2011 2:39am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics