English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

hi
i am using visual studio for my project. I have a webpage with two buttons, one textbox and fileupload control. when i browse the files using the upload control and click the button, the information has to go into the database. when i write something in the textbox and click the 2nd button, it has to get the data from the database. i got it worked individually, the first part works when i have method=post and the 2nd part works when method=get. But both of them wont work together.How can i let both of these parts work together in the samepage without any problems with the Method attribute of the form and using QueryString?
thankx in advance.

2007-03-16 09:13:50 · 1 answers · asked by pakd27 1 in Computers & Internet Programming & Design

1 answers

I am not sure I understand what you are asking, but I will take a stab at it - I think the easiest solution for your problem would be to use the built-in form handling in ASP.NET - don't use

tags, just use Button controls and have them fire an event on the same page. ASP.NET will automatically handle the postback to the same form and you will be able to access the file data and the textbox data.

2007-03-16 09:23:23 · answer #1 · answered by Rex M 6 · 0 1

fedest.com, questions and answers