---
title: "ViewState in a HttpHandler"  
description: "ViewState in a HttpHandler"  
author: "Anonymous User"  
published: 2014-08-27  
updated: 2014-08-27  
canonical: https://www.mindstick.com/forum/2168/viewstate-in-a-httphandler  
category: "asp.net"  
tags: ["asp.net", ".net", "c#", "viewstate", "httphandlers", "httphandler example", "ViewState in a HttpHandler"]  
reading_time: 1 minute  

---

# ViewState in a HttpHandler

I have an [aspx page](https://www.mindstick.com/forum/218/how-do-i-create-an-aspx-page-that-periodically-refreshes-itself) that I want to [convert](https://www.mindstick.com/forum/2093/configurationmanager-appsettings-convert-n-to-n-why) to an HttpHandler, but I'm struggling with [ViewState](https://www.mindstick.com/blog/326/viewstate-in-asp-dot-net) that's been used in the [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii) behind of the aspx page. How do you solve this?

## Replies

### Reply by Sumit Kesarwani

Hi Ankita,

Viewstate is rendered to the client as a hidden form field. You can emulate Viewstate by rendering an Input Type="Hidden" tag to your html.


---

Original Source: https://www.mindstick.com/forum/2168/viewstate-in-a-httphandler

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
