Click here to Skip to main content
12,698,531 members (23,677 online)
Rate this:
 
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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.170118.1 | Last Updated 9 Oct 2012
Copyright © CodeProject, 1999-2017
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