B
belgie
Whereas in Asp I could submit my form contents to any other Asp page, it
appears that in Asp.NET the primary Asp form will only submit to itself.
I have tried changing the Action attribute in the Form tag, but it changes
itself back when compiled.
I have also tried changing the form Action attribute in client-side
javascript prior to submitting the form, but I get this error:
The View State is invalid for this page and might be corrupted.
I can pass the form collection to a different Asp page by creating
properties in the page module and using Server.Transfer. I can also do it
using client-side logic, by creating a second form on the page with whatever
Action attribute I desire, and copy the data from the primary form to hidden
controls on the secondary form before submitting it.
Am I correct that there is no simpler way of accomplishing what was a common
task in old Asp?
I am otherwise happy with ASP.NET so far. I can manage my interface in a
single page, but it is a lot of panel moving and hiding. (I have found the
best way to do this is with an HTML Grid Layout panel, with the RunAt
property set to Server.)
Please let me know if it seems I have overlooked something.
Thanks!
Bill
appears that in Asp.NET the primary Asp form will only submit to itself.
I have tried changing the Action attribute in the Form tag, but it changes
itself back when compiled.
I have also tried changing the form Action attribute in client-side
javascript prior to submitting the form, but I get this error:
The View State is invalid for this page and might be corrupted.
I can pass the form collection to a different Asp page by creating
properties in the page module and using Server.Transfer. I can also do it
using client-side logic, by creating a second form on the page with whatever
Action attribute I desire, and copy the data from the primary form to hidden
controls on the secondary form before submitting it.
Am I correct that there is no simpler way of accomplishing what was a common
task in old Asp?
I am otherwise happy with ASP.NET so far. I can manage my interface in a
single page, but it is a lot of panel moving and hiding. (I have found the
best way to do this is with an HTML Grid Layout panel, with the RunAt
property set to Server.)
Please let me know if it seems I have overlooked something.
Thanks!
Bill