durga mavu

durga mavu

  • NA
  • 10
  • 14.1k

passing cell's value of gridview in hyperlink navigate url...

Mar 24 2011 2:51 PM

hi,,,the scenario is like: had a gridview that consists of template field in which hyperlink is present...now one of the gridview's column is id ...whn i clk on the hyperlink a pop-window has to open along by passing the id value of each corresponding row..

now wat i have done is ...inside a foreach loop,i looped for each gridview item and i created a hyperlink and assigned that via findcontrol....now in the navigateurl of hyperlink i had given as...

hyperlink.navigateurl="javascript:void(window.open(sample.aspx.....

in the above line how to pass the parrameter as query string ,,,had found several threads where the querystring is passed as normal parameter,,,but not inside a javascript..

so ..any links or code wud be of gr8 help ..thanks in advance...


Answers (1)