![]() |
| ||
| Simple ASP.NET form I am using an existing .aspx form that will submit a few fields and a comment box. It actually works! Now, I open that form in Dreamweaver and copy...let's say...the NAME field and all its guts in the td section for it, and reinstance it to NAME2 in a few places. When I upload and check it out, sure enough the field is there. But when the form is submitted, there is no mention of the new field NAME2 or of course the data that was placed in it. Why? How can the text box show up in the generated HTML but when filled with data, the date doesn't get sent in the email? I hope the answer lies in the aspx file that we're talking about and not that...oh, you have to go into XXXXXX.aspx and tell that file to expect NAME2 or something crazy like that. If anyone is interested here's the url http://www.airedale911.org/a.aspx and I can email them the aspx code also. Thanks |
| ||
| Re: Simple ASP.NET form why do you use dreamweaver but not visual studio? |
| ||
| Re: Simple ASP.NET form Not sure. So do you have any idea why the field won't send data? Thx |
| ||
| Re: Simple ASP.NET form no, i only used aspx page with dreamweaver once in my life and it sucked. download visual web express 2008 for free from microsoft, then we can discuss.. |
| ||
| Re: Simple ASP.NET form Form-method Post setted instead of Get? |
| ||
| Re: Simple ASP.NET form Not sure I understand what you said. Here is the exact code for the aspx form. The html generated will send an email even though there is no real form statement in the code. Plus the copied fields will not send their data but the non copied ones will send their data. Is the form function hidden somewhere in aspx? In anothre file perhaps? <%@ page language="VB" masterpagefile="~/pages/airedale911.master" autoeventwireup="false" inherits="feedback, App_Web_i5ksdbwd" title="airedale911.org: Feedback" %> |
| ||
| Re: Simple ASP.NET form The FORM is really there but you got to notice that this page is within a Masterpage. The FORM is declared within the Masterpage. The current page you posted will be shown within the masterpage on the ContentPlaceHolder. So actually the form will be posted, does the customer get any response from the page? Besides the response, the page will be posted back to itself (i think) after the button is being clicked. The data in the form will be lost if no viewstate is being set. Viewstate can be switched on and of. Either you can check within the form_load() event if the page is postedback. The actions can be to fill a new viewstate with the current field-values and reload the values from the viewstate after the page.IsPostback. That depends on how the fields are responding on the userinput. Reading your code the fields don't respond after the text has been changed so you can fill a viewstate in the button_click() event. Regards, Richard The Netherlands |
| ||
| Re: Simple ASP.NET form yes the customer does. |
| ||
| Re: Simple ASP.NET form Hi, I just checked the masterpage and found some <form> </form> tags but no real input this or input that stuff. What is the value of separating the <form> tags from the input stuff on aspx file? Anyway I can't be concerned with that. Just trying to figure what I have to do to add a stupid field or two to this overgrown overdone coding which noone but the author can figure out. Can anyone tell me how to add...let's say a new comment box..THAT'S ALL...just a new comment box to this a.asp file listed above? Must I really edit the masterpage and six other pages just so I can add field. What has programming become? This is insane if you ask me. I have wasted two days just trying to figure this out by myself. The idiot who wrote the site refuses to give the customer her backups which would solve every issue I'm trying to fix. Please, help would be so appreciated. |
| ||
| Re: Simple ASP.NET form First, nothing weird about the programmingstyle. Referring to inherits="feedback, App_Web_i5ksdbwd" i assume its being a compiled application. If 'the idiot' which you are referring to, doesn't sent you or the client the uncompiled codepages I think you'll have a problem because the underlying code has been done in a code-behind page which (in design mode) functions besides the aspx page but after compiling it's unreadable..... (for hyjacking code) ;) |
| All times are GMT -4. The time now is 7:49 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC