0

I would like to know how to add another parameter to this querystring.

e.Item.Cells[0].Text = "<a  title=\"Click to see " + 
functions.email.getFullName(e.Item.Cells[0].Text) + 
"'s Pending Requests\" href=\"default.aspx?U=" + e.Item.Cells[0].Text + 
"\">" + functions.email.getFullName(e.Item.Cells[0].Text) + "</a>";
2
  • e.Item.Cells[0].Text = "<a title=\"Click to see " + functions.email.getFullName(e.Item.Cells[0].Text) + "'s Pending Requests\" href=\"default.aspx?U=" + e.Item.Cells[0].Text + "\">" + functions.email.getFullName(e.Item.Cells[0].Text) + "</a>"; Commented Nov 7, 2012 at 20:53
  • Sorry the above one is the statement which i am trying to pass parameters Commented Nov 7, 2012 at 20:54

1 Answer 1

1

I am afraid your question seems a bit unclear. To me, it looks like you are setting the value of e.Item.Cells[0].Text= to a string. Isn't that string itself a parameter? If it is, did you mean that you are wanting to concatenate another value to it?

It would also be helpful to to include the function in which you are setting this as well, for more context.

Sign up to request clarification or add additional context in comments.

3 Comments

Hi Brian, I am adding a hyperlink to a column of a gridview.
'HyperLink hyperLinkCtrl = new HyperLink(); hyperLinkCtrl.Text = e.Row.Cells[2].Text; hyperLinkCtrl.NavigateUrl = "google.com"; e.Row.Cells[2].Controls.Add(hyperLinkCtrl)'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.