c# - Set height and Width of Pop Window on button click which button is reside in that window -


i have open aspx page pop window.

in aspx page have 2 div 1 data , 1 no data.

when there no data visible no data div. in have images , simple message in it.

i have set pop window height : 730px , width : 1050px

and have set no data div height :600px , width : 850px.

now when there no data div visible want set pop window height , width same no data div.

so how can set height , width of pop window @ runtime.

i have use below code visible no data div.

 dvdata.visible = false;  dvnodata.visible = false;  lblmessage.text = ""; 

thanks, hitesh

you can put following javascript function on designer of popup page , call when set visibility of no data div true:

function resize_now(){     window.moveto(new_posx,new_posxy);     window.resizeto(newsizex, newsizey); } 

hope helps.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -