Home > DeveloperSection > Forums > how click on link button of listview get hidden field value in label using c#
Andrew Deniel
Andrew Deniel

Total Post:29

Points:203
Posted on    July-08-2013 8:13 AM

 C# C# 
Ratings:


 1 Reply(s)
 3385  View(s)
Rate this:
Hi Expert!


how click on link button of listview get hidden field value in label using c#

my line of code 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. 


AVADHESH PATEL

Total Post:604

Points:4228
Posted on    July-08-2013 8:26 AM

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.


Don't want to miss updates? Please click the below button!

Follow MindStick