473,569 Members | 2,872 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.Net form not posting!

I am have been researching this issue to no end, so any help would be
very much appreciated.

I have a page with form tags. Inside of the form tags is a panel that
contains a user control. The form tags are NOT inside of the user
control. Inside that user control are a few panels that contains
different steps of an application (for applying to something). When I
go to step 1 and submit, the asp:validators catch the errors and the
form doesn't post. So far this is what I would expect. Once I correct
the errors, the validation messages go away, but the form will still
not post.

Here is what is weird. This was developed on Windows XP Pro, and works
flawlessly there. I have also tested the exact same code on a Windows
2000 server and it works perfectly there as well. As soon as I upload
this to my production Windows 2003 server it produces the behavior that
I described above. I thought to myself that this may be validation
file issues, but I am using the aspnet_client\s ystem_web\1_1_4 322 files
placed in the root of my application.

This is at a web host, not my own windows 2003 server, so I am somewhat
limited as to what I can see or do on that server.

Does anyone have ANY ideas at this point? Any help would be great!
Thanks,
Ian Suttle

Nov 18 '05 #1
13 2727
Ian:

Are you hitting the application from a browser on the Win2003 machine?
The hardened security mode in Win2003 prevents javascript execution by
default. I wasn't sure if you were actually on the server or not since
it is hosted.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 9 Nov 2004 12:21:53 -0800, Ia********@gmai l.com wrote:
I am have been researching this issue to no end, so any help would be
very much appreciated.

I have a page with form tags. Inside of the form tags is a panel that
contains a user control. The form tags are NOT inside of the user
control. Inside that user control are a few panels that contains
different steps of an application (for applying to something). When I
go to step 1 and submit, the asp:validators catch the errors and the
form doesn't post. So far this is what I would expect. Once I correct
the errors, the validation messages go away, but the form will still
not post.

Here is what is weird. This was developed on Windows XP Pro, and works
flawlessly there. I have also tested the exact same code on a Windows
2000 server and it works perfectly there as well. As soon as I upload
this to my production Windows 2003 server it produces the behavior that
I described above. I thought to myself that this may be validation
file issues, but I am using the aspnet_client\s ystem_web\1_1_4 322 files
placed in the root of my application.

This is at a web host, not my own windows 2003 server, so I am somewhat
limited as to what I can see or do on that server.

Does anyone have ANY ideas at this point? Any help would be great!
Thanks,
Ian Suttle


Nov 18 '05 #2
Scott,

Thanks for the reply. I am not on the server when browsing. I am
browsing from a local machine at home or at work.
Thanks,
Ian
http://www.IanSuttle.com

Nov 18 '05 #3
Are you sure that the form is not posting? What makes you think so?

You say that you have "a page with form tags." This sounds suspiciously like
you have a nested form in your page, as an ASP.Net Page is almost always a
WebForm. If you have inserted form tags into a WebForm, you most likely have
a nested form. Nested forms are not a good idea, and generally (depending
upon the browser) misbehave in any number of ways.

A form not posting is not a server-side issue, as the form is an HTML
document that resides on the client machine, in the client browser. Only
once the form has posted (sent a Request to the server) does the server come
into play. Therefore, if the form is not posting, you most likely have a
problem with your client-side HTML (such as nested form tags).

If you post a URL, we can look at the client-side HTML.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

<Ia********@gma il.com> wrote in message
news:11******** **************@ c13g2000cwb.goo glegroups.com.. .
I am have been researching this issue to no end, so any help would be
very much appreciated.

I have a page with form tags. Inside of the form tags is a panel that
contains a user control. The form tags are NOT inside of the user
control. Inside that user control are a few panels that contains
different steps of an application (for applying to something). When I
go to step 1 and submit, the asp:validators catch the errors and the
form doesn't post. So far this is what I would expect. Once I correct
the errors, the validation messages go away, but the form will still
not post.

Here is what is weird. This was developed on Windows XP Pro, and works
flawlessly there. I have also tested the exact same code on a Windows
2000 server and it works perfectly there as well. As soon as I upload
this to my production Windows 2003 server it produces the behavior that
I described above. I thought to myself that this may be validation
file issues, but I am using the aspnet_client\s ystem_web\1_1_4 322 files
placed in the root of my application.

This is at a web host, not my own windows 2003 server, so I am somewhat
limited as to what I can see or do on that server.

Does anyone have ANY ideas at this point? Any help would be great!
Thanks,
Ian Suttle

Nov 18 '05 #4
Kevin,

Thanks for the response. There is only 1 set of form tags. I was
simply trying to show the hierarchy of everything in my explanation. I
know that it isn't posting because the page doesn't do any sort of
reload.

Your statement of a form posting or not relating to the server is not
quite accurate. Since we are dealing with ASP.Net, the pages are
compiled by the server, which creates its own render of the HTML. I
have found that XP renders differently than W2K, etc. For instance, a
form name will be renamed to "__ASPNETFO RM" or somethign similar on XP,
and not that on W2K.

You can view the page by going to
http://www.PawsitiveConnect.com/Join.aspx?to=1 and then choosing either
of the two applications on the bottom half of that page.
Thanks again!

Ian Suttle
http://www.IanSuttle.com

Nov 18 '05 #5
Hi Ian,

Wish I had good news for you. On a Windows XP Pro box and a Windows Server
2003 box, we loaded your page into IE, and it would not submit. We loaded it
into Netscape on the same (XP Pro) box, and it worked. If you got it to work
on an XP Pro box, you might want to check the version of IE that it is
running. I'm beginning to think it has something to do with IE6.

Unfortunately, the amount and complexity of the JavaScript generated by the
Page validator controls was too large for us to spend the amount of time
debugging it to identify the exact cuase of the problem. It seems odd that
you are not among a large group of people that may be having this same
problem on IE with ASP.Net page validators.

I'm just wondering here, but it could have something to do with Service Pack
2 and IE 6, or just with IE6. But again, I haven't heard anything about
issues with these. On the other hand, we don't use the built-in ASP.Net
validation for our apps.

Another alternative is, what version of ASP.Net are you using? If the
problem lies with IE6, it could be due to using ASP.Net version 1.0, which
came out prior to IE6, rather than using ASP.Net 1.1, which came out after
IE6. Just guessing here.

I hope that someone who has experience with this issue can help you further.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Ian Suttle" <Ia********@gma il.com> wrote in message
news:11******** **************@ c13g2000cwb.goo glegroups.com.. .
Kevin,

Thanks for the response. There is only 1 set of form tags. I was
simply trying to show the hierarchy of everything in my explanation. I
know that it isn't posting because the page doesn't do any sort of
reload.

Your statement of a form posting or not relating to the server is not
quite accurate. Since we are dealing with ASP.Net, the pages are
compiled by the server, which creates its own render of the HTML. I
have found that XP renders differently than W2K, etc. For instance, a
form name will be renamed to "__ASPNETFO RM" or somethign similar on XP,
and not that on W2K.

You can view the page by going to
http://www.PawsitiveConnect.com/Join.aspx?to=1 and then choosing either
of the two applications on the bottom half of that page.
Thanks again!

Ian Suttle
http://www.IanSuttle.com

Nov 18 '05 #6
Kevin,

Well this hole gets deeper and deeper huh? I am using IE 6.0 with SP1.
I do not have SP2 installed.

Check this out. Go to
http://www.iansuttle.com/clients/paw...join.aspx?to=1 and
run the same test as before. This is on a W2K server and is the exact
same code. In fact, I pulled it from he W2K3 box and put it on the W2K
box. This actually works here!

If anyone else has additional information, any help would be great!
Thanks,
Ian Suttle
http://www.IanSuttle.com

Nov 18 '05 #7
Well, Ian, when you're right, you're right. That page works for me too,
regardless of the browser.

I'm wondering what the differences between the .Net platform versions on the
2 server machines might be. They are obviously spitting out slightly
different HTML to the client.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Ian Suttle" <Ia********@gma il.com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
Kevin,

Well this hole gets deeper and deeper huh? I am using IE 6.0 with SP1.
I do not have SP2 installed.

Check this out. Go to
http://www.iansuttle.com/clients/paw...join.aspx?to=1 and
run the same test as before. This is on a W2K server and is the exact
same code. In fact, I pulled it from he W2K3 box and put it on the W2K
box. This actually works here!

If anyone else has additional information, any help would be great!
Thanks,
Ian Suttle
http://www.IanSuttle.com

Nov 18 '05 #8
I was able to narrow it down to the onSubmit logic of the form tag. I
am going to try to work with it some more tonight, but it may be that I
have to remove the standard asp validation and do it all with my own
validation.

Anyways, thank you for your assistance, I do appreciate it.
Regards,
Ian Suttle
http://www.IanSuttle.com

Nov 18 '05 #9
Hi Ian,

Sorry for joining in so late. This question is asked so frequently on
www.asp.net forums that I've posted a FAQ there:
http://www.asp.net/Forums/ShowPost.a...&PostID=739537

Simply put, there is a bug in the scripts of one particular ASP.NET 1.1
release. This thread gives you what some other users did to fix the script
code.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlu m.com
Creator of "Profession al Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Ian Suttle" <Ia********@gma il.com> wrote in message
news:11******** *************@c 13g2000cwb.goog legroups.com...
I was able to narrow it down to the onSubmit logic of the form tag. I
am going to try to work with it some more tonight, but it may be that I
have to remove the standard asp validation and do it all with my own
validation.

Anyways, thank you for your assistance, I do appreciate it.
Regards,
Ian Suttle
http://www.IanSuttle.com

Nov 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
4169
by: DaveFash | last post by:
Posting variables from an HTML FORM, via the Request.Form function on the receiving ASP page is great. But how can you POST a Form variable to an ASP page -- without a human pushing a Submit button? An ASP page that can decide when to POST and send the Form vaiables, but out without a
2
22644
by: David N | last post by:
Hi All, The OnLoad() event is invoked automatically when a form is being loaded. Do we have another event that is invoked automatically after a form has completed loading? Thanks.
5
10123
by: Ron Vecchi | last post by:
I know the math I need to perform on width and height to keep an aspect ratio but where and how would I implement keeping a set aspect ratio on a form when a user resizes it. Override OnResize? couldn't quite figure it out. -- Ron Vecchi
8
4924
by: CJack | last post by:
hy, I have an mdi application, i create a child form and I want to know when a button is pressed while that child form is loaded. I have this code: private void frmTestBaby_KeyUp(object sender, System.EventArgs e) { MessageBox.Show("keyboard button pressed!"); } Following is the code to load the frmTestBaby
2
2465
by: Jeff Baker | last post by:
How does one post to an ASPX page using the WebClient when the form name is required?
4
5316
by: Lee Chapman | last post by:
Hi, Can anyone tell me why in the code below, the call to ClearChildViewState() has no effect? To paraphrase the code: I'm using view state. I have a textbox and a submit button (and a label that can be ignored). When I press the button the first time, the click handler hides the textbox. Pressing the button a second time unhides the...
22
5069
by: Woody Splawn | last post by:
I am somewhat new to VS.net in general. As a result I am prone to make mistakes. When adding some new feature to a a form it would be nice if I could back it up before trying something that might mess things up. Also, there are times when a new form is enough like an old one that the best way to create the new report is to simply make a...
4
13315
by: Alex Maghen | last post by:
I have a master page which contains a general page framework and also contains a <form runat=server> around most of the content of the page. Inside that <form> tag is a ContentPlaceholder. I then create an ASPX which is tied to that MasterPage and in it a put a bunch of form fields and an <asp:Button />. When I try to run the page, I get......
5
20003
by: Alex Maghen | last post by:
In ASPX 2.0 with MasterPages and all that, my entire page only has one actual <FORM>. But there are several different sections of the page that provide what are functionally separate forms with separate Submit buttons. In basic HTML, I can have multiple forms on a page and the browser knows that if any of the fields for Form A have the...
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7930
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6290
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5228
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3662
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.