Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
hi, i need to change the popup size to the GridView size (or say popup content size).

like when i add any row to the GridView the popup size should be automatically increased, similarly after deletion of row the size of the popup should be shrink.

pls help.
Posted
Updated 5-Dec-15 23:19pm
v2
Comments
Kornfeld Eliyahu Peter 6-Dec-15 6:01am    
There is no such thing 'popup' as is in any of the mentioned tags here...What do you use to open your popup?
Merajuddin Ansari 6-Dec-15 6:31am    
in the popup i am showing gridview so want the size of popup should automatically increase and decrease when there is row addition and deletion in the gridview.
Kornfeld Eliyahu Peter 6-Dec-15 6:42am    
Try to understand my question, before response...
Which popup? How do you open it?
Merajuddin Ansari 6-Dec-15 8:06am    
<script type="text/javascript">
function popup(url, width, height)
{
window.open(url, "_blank", "toolbar=no, dialog=yes, scrollbars=no, resizable=no, width=" + width + ", height=" + height + "");
}
</script>

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