Ağustos 29, 2010

Asp.Net response.write ile pop up açtırmak

response.redirect("Yönlendirilecek sayfa") ile istenilen sayfaya yönlendirme  yapabiliyoruz.Peki yönlendirme yapacağımız sayfanın farklı bir sayfada açılmasını istiyorsak ne yapmalıyız?
Bunun için aşağıdaki kodu yazmanız yeterli olacaktır.

Response.Write("< script language=" javascript">
function
PopUp(PopUpURL){window.open(PopUpURL, '_blank');}
PopUp("Açılacak Sayfa Adresi')
"
)

Hiç yorum yok:

Yorum Gönder

System.Text.Json.JsonException hatası - cycle or if the object depth is larger than the maximum allowed depth of 32.

 Eğer .net'te aşağıdaki hatayı alıyorsanız; " A possible object cycle was detected which is not supported. This can either be due t...