How to set a href value in GridView
I have two parameters I want to include it in HtmlAnchor with gridview,The first parameter is from database And Other one from Url.
Now I want to set ..../QueryString/DatabaseFiled.aspx in code behind for gridview databound.
I try this
foreach (GridViewRow row in GVGuestBookAll.Rows)
string str=((Label)GVGuestBookAll.FindControl("lbls")).Te xt;
string str2 = Request.QueryString["NodeID"];
((HtmlAnchor)GVGuestBookAll.FindControl("aa")).HRe f = "../../../admin/edit/subject/" + str2 + "/" + str + ".aspx";
but this problem is appear
Object reference not set to an instance of an object.
Pls help me...