473,405 Members | 2,141 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Programmatically clear the action method in a form

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.
Nov 19 '05 #1
2 1431
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" <a@b.com> wrote in message
news:e0**************@TK2MSFTNGP14.phx.gbl...
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.

Nov 19 '05 #2
WJ

"John" <a@b.com> wrote in message
news:e0**************@TK2MSFTNGP14.phx.gbl...
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
Nov 19 '05 #3

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

Similar topics

13
by: aundro | last post by:
Hello, I've been looking on the web for a solution to this problem: I create a set of checkboxes, and 2 buttons: - one is labeled "All" - the other is labeled "None" Clicking "All" is...
4
by: deko | last post by:
I can't move a multi-page report to the last record unless I keep the popup form (that defined it's subreports) open. DoCmd.OpenReport "rptStandard", acViewNormal DoCmd.Close acForm,...
4
by: Raterus | last post by:
Howdy, Simple question, but I can't figure out how to do it. I have a a page which is called initially with a querystring. After I get the querystring values, I don't need the querystring to...
15
by: Oleg Subachev | last post by:
I need to programmatically invoke from other class Click event of the Button on my Form. Button.OnClick method is protected, not public. How to perform this ? Oleg Subachev
6
by: David Veeneman | last post by:
I am building a form in code that I need to submit programmatically. How do I do it in ASP.NET? I am building a page that will create an HTML form on the server. The user won't see the page; its...
7
by: IchBin | last post by:
I am trying to programmatically set a radio button in a table of radio buttons. I have two problems with the code below: 1 - I can not prepare the <Formstatement to be printed by php. (syntax...
0
by: Nathan Sokalski | last post by:
I need to programmatically set the action attribute of the form tag. First of all, the ASP.NET form control does not have an action property (it shows the Action attribute in source view, but not...
5
by: masterej | last post by:
Developers, Is there any way to disable all checkboxes on a form? I have a form with 160 checkboxes and I want to be able to disable all of them. Is there a way I can do something like this: ...
3
by: Peter | last post by:
Hi I want to programmatically perform a post. Can some one please give me some pointers to which classes I need to use to achieve this? The form which is normally posted from the website looks...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.