HtmlForm Help...Again

  • Thread starter Thread starter Roshawn
  • Start date Start date
R

Roshawn

Hi,

I have a control that derives from the HtmlForm control. The difference is that I can set the action attribute to whatever I
desire. This works fine. :-)

What I can't seem to do is prevent the form from mangling the ID and Name attributes of the controls I'm using. I see them
in the url and it makes me sick. Also, I notice that the _VIEWSTATE and _EVENTVALIDATION hidden controls are sent in the url
as well. The changing of attributes and the unwanted controls are only in the url when I set the method attribute to "GET."
Is there any way to prevent these things from happening? (I don't need the viewstate stuff, in case you're wondering)

Thanks,
Roshawn
 
an action of get tells the browser to send all form element pairs on the
url instead of after the headers (postdata), this includes all hidden
fields. if you don't need any form data then use link instead.

-- bruce (sqlwork.com)
 
I do need the form data; I just don't need the __VIEWSTATE or __EVENTVALIDATION functionality. I can maintain the state of
the web control without these things.
 
Back
Top