---
title: "how click on link button of listview get hidden field value in label using c#"  
description: "how click on link button of listview get hidden field value in label using c#"  
author: "Andrew Deniel"  
published: 2013-07-08  
updated: 2013-07-08  
canonical: https://www.mindstick.com/forum/1256/how-click-on-link-button-of-listview-get-hidden-field-value-in-label-using-c-sharp  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# how click on link button of listview get hidden field value in label using c#

Hi [Expert](https://www.mindstick.com/articles/13120/an-expert-financial-advice-will-improve-your-finances)!how [click](https://www.mindstick.com/articles/12423/social-login-magento-2-one-click-to-register-social) on [link](https://www.mindstick.com/articles/23633/link-builder) [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net) of [listview](https://www.mindstick.com/articles/12744/listview-in-android) get [hidden](https://www.mindstick.com/forum/2303/skip-validating-field-from-hidden-div) [field](https://www.mindstick.com/forum/160867/does-mindstick-provide-training-for-field-marketing) [value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) in [label](https://www.mindstick.com/articles/12835/print-label-tracking-how-do-these-features-make-auspost-woocommerce-plugin-better) using c#my line of [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii) as following\

```
protected void gotopage_Click(object sender, EventArgs e){    HiddenField hiddenblogid = FindControl("hlinkimg") as HiddenField;    Label1.Text = hiddenblogid.Value;    Response.Redirect("~/blogdisplay.aspx");}
```

\
Thanks in advance.

## Replies

### Reply by AVADHESH PATEL

Hi Andrew!\
try this\
**if(request.form['yourhiddenclientsideID']!=null)****{** **string test = request.form['yourhiddenclientsideID'];****}**\
that's work for hiddenfield not runat server if u put attribiute runat server for hidden fields u can user directive name.value to get value of field.\


---

Original Source: https://www.mindstick.com/forum/1256/how-click-on-link-button-of-listview-get-hidden-field-value-in-label-using-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
