• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 768
  • Last Modified:

Call Javascript function in datagrid's hyperlink column

I want to use Javascript to open a page in a new, sized, window. I have a hyperlink column in my datagrid to do this, and basically want to call a Javascript function EditPage with the ID column as the parameter:

    EditPage({0})

How do I set this up in the Property Builder of Visual Studio .Net?
0
crescendo
Asked:
crescendo
1 Solution
 
marko020397Commented:
I think you will have to use TemplateColumn. For hyperlink in column use <%# DataBinder.Eval (container.DataItem, "ID") %> or something like this.
0
 
crescendoAuthor Commented:
I solved it. I can use Javascript, but my error was to put a space after "Javascript:". The correct URL is:

   Javascript:EditPage({0})

0
 
RomModCommented:
The question has been PAQ'd and the 250 points have been refunded.
RomMod
Community Support Moderator
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now