Does anyone know how to add a commandName to an asp hyperlink in a gridview.
Or is there any other way of doing this. I know you can use a linkbutton but i need the user to be navigated to a new tab. The hyperlink can do this with the target attribute.
Any help is greatly appreciated
Unfortunately you can’t have the best of both worlds built right in here (postback handing, allowing for
CommandNameandTarget); you will need to A) use a link and disregard commands, or B) use aLinkButtonto handle the command in the postback then redirect manually.In the latter case B, you could perhaps register a script to execute the redirection and maintain specifying the target in that manner. For example: