HtmlForm Help...Again

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
 
B

bruce barker

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)
 
R

Roshawn

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top