Programmatically clear the action method in a form

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi all,

After one of my user controls does either a server.transfer or
response.redirect, the action method in a my resulting html form is being
set and any request variables changed at the client are not being reflected
upon posting. How can I get rid of this? Can I somehow programmtically clear
the action method so by the time the html reaches the client, it's clear?

Please help - quite urgent.

Regards
John.
 
you question makes no sense. the action attribute in a form specifies the
url to postback to on a form post. with asp.net web forms, action is always
the rendering page.

1) if on a postback or request your control does a redirect, its just
sending a new url to browser to render (it will make a new request). there
is no form is this case, as just a redirect header is set to the browser.

2) if you control does a transfer, a new class instance of the page
specified is created, and control is passed to it. the action will match
whatever the new class renders.

-- bruce (sqlwork.com)
 
John said:
Hi all,
Can I somehow programmtically clear the action method so by the time the
html reaches the client, it's clear?

Donot use FORM then. Just do HTML only. FORM always requires ACTION
(POST/GET...)

John
 
Back
Top