Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
C#
    Reply Modify the comment.  Delete the comment.
Hello everyone i am showing a webpage using Iframe i am also passing ID and Article from my gridview but now i want to show this webpage using POPUP window.How to do that. Please Help. Here is my code

Iframe1.Attributes.Add("src", "Drawing2.aspx?ID=" + grdrow.Cells[1].Text + "&Article=" + grdrow.Cells[2].Text + "&testdrawing= kkk");


What I have tried:

Please help. I am using javascript code to show Popup window
Posted
Updated 1-Dec-16 5:04am
Comments
Ehsan Sajjad 30-Nov-16 15:41pm    
your question is not understandable.
Member 12857358 2-Dec-16 10:47am    
I am able to show pop up window using javascript but i don't know how to pass the value of ID and Article from my gridview that's the real problem as i mentioned above.

1 solution

You can use window.open(url) in JavaScript to open the window separately. Or, you can use a jquery dialog plugin to display it as a popup. Depends on what you mean by popup and what you want it to do.
 
Share this answer
 
Comments
ridoy 1-Dec-16 14:23pm    
+5
Member 12857358 2-Dec-16 10:47am    
I am able to show pop up window using javascript but i don't know how to pass the value of ID and Article from my gridview that's the real problem as i mentioned above.
ZurdoDev 2-Dec-16 10:50am    
It depends on you. You should set some sort of id on each row. Then in JavaScript get that id and find the other values you need by ID and then you can open the window.
Member 12857358 2-Dec-16 11:50am    
can you pleade describe the method i am new in programming.
ZurdoDev 2-Dec-16 12:05pm    
I can't fully because I don't know what you are doing. Do you have a single button on the page? Or does each row have a button? Regardless, you need to determine which row you are wanting to open but we can't help much without being able to see what you have.

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