Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Mobile > RegisterHiddenField Problem

Reply
Thread Tools

RegisterHiddenField Problem

 
 
Dan Avni
Guest
Posts: n/a
 
      03-11-2007
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
 
Reply With Quote
 
 
 
 
Dan Avni
Guest
Posts: n/a
 
      03-13-2007
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re-RegisterHiddenField Cliff Harris ASP .Net 0 11-05-2003 04:33 PM
RegisterHiddenField does not work inside .ascx components Francis ASP .Net 0 11-03-2003 01:01 PM
RegisterHiddenField and trace Kevin Spencer ASP .Net 2 10-22-2003 01:39 PM
EVENTTARGET EVENTARGUMENT RegisterHiddenField MeDhanush ASP .Net 1 08-28-2003 05:23 AM
RegisterHiddenField to Capture Enter Resetting Application Matthew Wieder ASP .Net 1 07-22-2003 06:04 AM



Advertisments