voici un prototype (je n'ai testé que sous IE)
Public
Class WebForm1Inherits System.Web.UI.Page#
Region " Web Form Designer Generated Code "'This call is required by the Web Form Designer.<System.Diagnostics.DebuggerStepThrough()>
PrivateSub InitializeComponent()EndSub'NOTE: The following placeholder declaration is required by the Web Form Designer.'Do not delete or move it.Private designerPlaceholderDeclaration As System.ObjectPrivateSub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Init'CODEGEN: This method call is required by the Web Form Designer'Do not modify it using the code editor.InitializeComponent()
EndSub#
EndRegionPrivateSub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load'Put user code to initialize the page here
'Code pour récupérer la largeur et la hauter ici
'....................
'Appel de génération du script pour le resize
Me.DoResize(100, 400)
EndSubPrivateSub DoResize(
ByVal iWidth
AsInteger,
ByVal iHeight
AsInteger)
Dim sbJSScript AsNew System.text.StringBuilder
sbJSScript.Append("<script language='javascript'>")
sbJSScript.Append("self.resizeTo(" & iWidth & "," & iHeight & ");")
sbJSScript.Append("</script>")
IfNotMe.IsStartupScriptRegistered("ResizePage") Then
Me.RegisterStartupScript("ResizePage", sbJSScript.ToString())
EndIf
EndSubEnd
ClassJ'espère que cela corresponds à tes besoin.
La page se resize une fois chargée.
Si tu veux que ta popup soit resizée
avant l'ouverture, il suffit de passer par windows.open (IE) et de passer les paramètres correspondants.
yopyop