Using forms in .ASP
- I was developing a simple form on an .html page and it worked great. Then I decided to convert the website to utilize a master page and .aspx files. Now my form doesn't work?!
I went to place a new form, but I can't seem to have that ability on .aspx pages?!
Can someone help me understand what I need to do in order to get a simple information gathering form operating on my site?
Thanks.
すべての返信
- Please read the "Before Posting" instructions.
(Also: ASP is not ASP.NET: two different things. You'll save a lot of back and forth clarification if you don't mix the two terms.) - Okay...
It was an .html file....now it's an .aspx file.
http://thecarepakscompany.com/option_02/opt2_resource_link.aspx
Is there a way to make forms work in an .aspx file?
Thanks. - As general advice: Look in Code View and correct the errors that EW highlights for you. You have a lot of them. Then see my response to your other post, about using layers.
How are you trying to process this form? It looks like a FrontPage html webot form.
Let's back up a step: what are you using asp.net for? Do you need it? - I thought I was using asp.net to utilize master pages?! I wanted to create a site that could easily be modified on a monthly basis (color, theme, etc.). So I basically have one master and all the other .aspx pages with content in them. (I'm not really familiar with styles...but I'm learning along the way and think that could be pretty powerful for me as well...so I'm 'trying' to incorporate some of that was well.)
That's pretty much it.
(I'm not sure if the shopping cart requires asp.net....but that's running through ShopSite.)
Now, if I understand your other post correctly....I agree I'm WAY over-using layers. I noticed that it's all on the .master pages though. The .aspx content pages seem to be all on one layer or <div>
Regarding the 'Code View' on the following page:
http://thecarepakscompany.com/option_02/opt2_resource_link.aspx
...EM doesn't say there is a problem?! I tried to place an example Frontpage .html webot form directly above the form I'm trying to use to see what the difference in programming is. I'm just confused as to why I can't just goto 'Form Properties'?! (It doesn't seem to be available when I'm working in an .aspx content page.
Thanks for your help.
Randall - Randall,
There are excellent video and written tutorials on all things Asp.Net at the MS Learn Asp.Net site: http://www.asp.net/learn/ . I suggest that you study the ones that will be of most use to you; especially master pages and using Asp.Net controls.
"I'm just confused as to why I can't just goto 'Form Properties'?! (It doesn't seem to be available when I'm working in an .aspx content page." An Asp.Net form control is not the same as an html form control. The Asp.Net form and the various Asp.Net controls controls placed within it are evaluated (runat) on the server, rather than by the clients browser. Therefore the 'properties you can assign to an html form are different from those you can assign to an Asp.Net form.
If you are trying to create an e-mail contact form, take a look at the free Asp.Net 2.0 form at http://www.ctrfx.com/form/Default.aspx . I have used it, and it works nicely. Be sure to follow the directions. Also, even if you don't use the form in a production environment, it is a great learning tool.
Regards,
-Preston
Columbia, CA. USA http://www.gildedmoon.com- 編集済みPreston B 2009年7月4日 5:59fix a typo
- If the only reason you are using asp.net is for the master page, you are complicating things. For common content in a html site, use a DWT.
- I agree with KathyW2, unless you are specifically using ASP.NET for your web app, use a DWT and setup your form using the available controls, everything you need is in the Expression Web toolbox.
Cylants Technology LLC - Randall,
Would you please let us know what is the purpose of your site? As you can see, we're making guesses as to what you need. We can give better direction if we know what your needs are.
I do agree with Kathy and Cylants: Unless you need Asp.Net, a DWT will work nicely.
-Preston
Columbia, CA. USA http://www.gildedmoon.com

