Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
Hi friends.
 
i want open the new window on click of link button in grid view , so that i can display pdf file.
 
i added button in gridview and if i click i want open new window for displaying the particular pdf file.
 
looking forward.
Posted 3-Jun-12 22:00pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

onclient click of that link button you can use this..
onclientclick="window.open(URL,name,specs,replace);"
like..
window.open ("newwindow.aspx","mywindow","width=350,height=250");
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Response.Write("<script>javascript:window.open('EDITDETAILS.aspx?EmpID=" + lblempid.Text + "'););
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Here a solved thread
 
Open PDF from GridView Link[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

when i am trying to this issue
 
I have a grid view in Master Page's Child Page
 
when i am clicking link button in grid view new window opened
 
at that time this problem occurred
 

in new open window the sessions are closing and in that place Login page is occuring ,please provide the solution as Early as Possible
 

 

Vinay
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 /\jmot 230
1 Richard MacCutchan 185
2 Zoltán Zörgő 150
3 Peter Leow 145
4 Sergey Alexandrovich Kryukov 145
0 Sergey Alexandrovich Kryukov 9,353
1 OriginalGriff 6,881
2 Peter Leow 4,537
3 Zoltán Zörgő 4,009
4 Richard MacCutchan 2,882


Advertise | Privacy | Mobile
Web04 | 2.8.150129.1 | Last Updated 9 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100