ViewState, more trouble then is worth

M

Mike

Is there a way to disable generation of... (for Mobile ASP.NET pages

<input type="hidden" name="__EVENTTARGET" value=""><input type="hidden" name="__EVENTARGUMENT" value=""><script language=javascript><!-
function __doPostBack(target, argument)
var theform = document.frmSearc
theform.__EVENTTARGET.value = targe
theform.__EVENTARGUMENT.value = argumen
theform.submit(

// --></script

I disabled ViewState (enableViewState="False") and Session state (enableSessionState="false"), but still I get..

page.aspx?__ufps=##### (**__ufps=####**

.... inserted into the URL of pages

I would like to remove all traces of ViewState from mobile pages as some mobile devices seem to have trouble handling ViewState

Thank you in advanc

Mik
WinInsider.com
 
M

Mike

I figure it out.

To prevent __ufps=#### from being added to <form> post URL, one needs to explicitly specify *Action* attribute of <mobile:Form>, otherwise, even with ViewState disabled Mobile asp.net will generate its own Action URL with __ufps

Mik
WinInsider.co

..NET Rocks !!!!!!!!!!!!!!!!!!!!!!!!!!
 

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,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top