ViewState can't handle numeric fields?

Discussion in 'ASP .Net' started by Boban Dragojlovic, Jun 24, 2003.

  1. If I do this

    x = 5
    ViewState("myX") = x


    then after a post-back, ViewState("myX") is Nothing


    but this

    x = 5
    ViewState("myX") = x.toString

    works just fine


    any ideas why this is so? I thought it stored objects, and as such could
    store anything


    (it also doesn't work correctly with date fields)
    Boban Dragojlovic, Jun 24, 2003
    #1
    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. Replies:
    5
    Views:
    909
    X-Centric
    Jun 30, 2005
  2. darrel
    Replies:
    4
    Views:
    786
    darrel
    Jul 19, 2007
  3. jobs

    int to numeric numeric(18,2) ?

    jobs, Jul 21, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    932
    =?ISO-8859-1?Q?G=F6ran_Andersson?=
    Jul 22, 2007
  4. chiku
    Replies:
    4
    Views:
    453
    James Kanze
    Jun 26, 2009
  5. Debajit  Adhikary

    Accessing Numeric Fields in Objects with Dot Notation

    Debajit Adhikary, Oct 8, 2007, in forum: Javascript
    Replies:
    2
    Views:
    85
    Thomas 'PointedEars' Lahn
    Oct 8, 2007
Loading...

Share This Page