ViewState, more trouble then is worth

Discussion in 'ASP .Net Mobile' started by Mike, Mar 6, 2004.

  1. Mike

    Mike Guest

    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
    Mike, Mar 6, 2004
    #1
    1. Advertising

  2. Mike

    Mike Guest

    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 !!!!!!!!!!!!!!!!!!!!!!!!!!
    Mike, Mar 6, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?TWlrZQ==?=

    greater then / less then

    =?Utf-8?B?TWlrZQ==?=, Nov 4, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,576
    Kevin Spencer
    Nov 4, 2004
  2. Michael
    Replies:
    4
    Views:
    400
    Matt Hammond
    Jun 26, 2006
  3. Replies:
    0
    Views:
    261
  4. Robert Klemme

    With a Ruby Yell: more, more more!

    Robert Klemme, Sep 28, 2005, in forum: Ruby
    Replies:
    5
    Views:
    206
    Jeff Wood
    Sep 29, 2005
  5. Replies:
    15
    Views:
    209
Loading...

Share This Page