Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

onclient click of that link button you can use this..
C#
onclientclick="window.open(URL,name,specs,replace);"

like..
C#
window.open ("newwindow.aspx","mywindow","width=350,height=250");
 
Share this answer
 
v2
C#
Response.Write("<script>javascript:window.open('EDITDETAILS.aspx?EmpID=" + lblempid.Text + "'););
 
Share this answer
 
v2
Here a solved thread

Open PDF from GridView Link[^]
 
Share this answer
 
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
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900