"Add" which will be used to add form input name and value."Method" which is Method of our form, default is Post but you can also use Get.public void Add( string name, string value).page which will receive that data and display posted data.web page that will use that component to post data and. component that will create form with required fields and post the form to specified url,.I will try to show you one possible way to accomplish this task, we will create There is good way to post form data using HttpWebResponse & HttpWebRequest class if you want to post data behind the scenes, but if you want to post data using user browser then you are stuck.One possible solution to this problem is to Create your own form control and use it on page this will allow you to change action of form, but again what if you do not want some existing input elements in current page to go to post.Problem which most users faces with server side form in aspx page are, you are not allowed to change action of form and you are allowed to use only one server side form per page. Sometime you need to post a form to an differenturl from asp.net pages, for example you might need to send user to third party payment processing system using post method, asp.net does not provide any straight forward way to accomplish this task.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |