1

I am building dynamic html with contents coming from sharepoint list

   innerHtml += " <a href='Mypage.aspx?AgeOfPerson='" + Age + "'" + ">";

But i dont get parameter i passed of Age. I get blank. While i debug i can see i get value in Age variable but after rendering i blank parameter. So i just get this

http://mysite/Mypage.aspx?AgeOfPerson=
2

Try

innerHtml += " <a href='Mypage.aspx?AgeOfPerson=" + Age + "'>";

Remove ' from after the = sign. If it doesn't work then paste your full code.

| improve this answer | |
  • Happy to hear from you that it helped..!! :-) – users1100 Jun 12 '15 at 10:23
  • Please don't forget to mark as answer if it helped you... @Happy – users1100 Jun 12 '15 at 10:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.