RegisterHiddenField Problem

Discussion in 'ASP .Net Mobile' started by Dan Avni, Mar 11, 2007.

  1. Dan Avni

    Dan Avni Guest

    i want to persist the view state to a DB on a mobile web application. i save the view state to the
    DB and only want to write to the mobile form the ID of the record in the DB. when i use
    RegisterHiddenField("ViewStateID", "xxxxxxxx") on my SavePageStateToPersistenceMedium override,
    nothing happens and a hidden field is not rendered to the client.

    i also tried creating a small test application and tried using
    RegisterHiddenField("ViewStateID", "xxxxxxxx") and still nothing is rendered to the client.

    why is that? how can i render a hidden field to the mobile client?

    thanks
    Dani avni
     
    Dan Avni, Mar 11, 2007
    #1
    1. Advertising

  2. Dan Avni

    Dan Avni Guest

    Well i found the solution to be a bit different than ASP.NET. in mobile ASP.NET site you need to use
    the MyBase.HiddenVariables collection.
     
    Dan Avni, Mar 13, 2007
    #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. Matthew Wieder
    Replies:
    1
    Views:
    383
    Yan-Hong Huang[MSFT]
    Jul 22, 2003
  2. MeDhanush
    Replies:
    1
    Views:
    923
    Natty Gur
    Aug 28, 2003
  3. Kevin Spencer

    RegisterHiddenField and trace

    Kevin Spencer, Oct 21, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    2,090
    Erik Cruz
    Oct 22, 2003
  4. Francis
    Replies:
    0
    Views:
    679
    Francis
    Nov 3, 2003
  5. Cliff Harris

    Re-RegisterHiddenField

    Cliff Harris, Nov 5, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    404
    Cliff Harris
    Nov 5, 2003
Loading...

Share This Page