1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Can i remove 'viewstat' from a ecommerce site

Discussion in 'C#' started by TechMaster, Jan 12, 2012.

  1. #1
    Hi there to all,
    SEMrush
    I have a site which is built in .aspx.
    Site is shopping cart i.e. an ecommerce site.
    it has huge 'VIEWSTATE' code in page source.
    Can i remove that code without meddling with functionality of site??
    if yes, then how??
    I only have control-panel and ftp access.
    I am not .net developer.


    Thanks
     
    TechMaster, Jan 12, 2012 IP
    SEMrush
  2. agitetech

    agitetech Peon

    Messages:
    122
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
  3. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #3
    If you're not a developer, it's not advisable for you to modify code. It's too easy to remove what looks like something unimportant and cause the whole site to crash.
     
    Rukbat, Dec 30, 2012 IP
  4. annaharris

    annaharris Active Member

    Messages:
    119
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    51
    #4
    "agitetech" thanks a lot for sharing such a great source of a view state. Really, i have learned a lot of things form there.
     
    annaharris, Apr 23, 2013 IP
  5. topcoder

    topcoder Active Member

    Messages:
    122
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    88
    #5
    If you're not a coder, I wouldn't try to turn ViewState off, you really need to understand what's going on in each page of the shopping cart to understand if you can turn it off without having any side effects.

    But to turn it off is really easy, in the page directives you can just state "enableviewstate=false". You might find some objects need it to function properly and some don't and you can just turn it off for the controls that don't need it. That will reduce the amount of ViewState on each page and improve the customer experience.
     
    topcoder, May 9, 2013 IP
  6. designpack

    designpack Banned

    Messages:
    7
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    8
    #6
    Viewstate is used to store variables to remember for the page life cycle you should not remove the code if you dont know how to code it. Programmer have done it for storing variables and it might be used somewhere else
     
    designpack, May 12, 2013 IP
    iitstudent likes this.