 |
|
ช่วยแก้ไข Code Popup ไม่ให้ถูกบล็อค จากบราวเซอร์ หน่อยค่ะ |
|
 |
|
|
 |
 |
|
เขียนโค้ดไว้ได้แล้ว แต่พอไปรันเครื่องอื่นมันต้องกดไม่ให้บล็อคตลอด เลยอยากให้ช่วยแก้โค้ดนี้หน่อยค่ะ ว่าต้องเพิ่มตรงไหนถึงให้พอคลิกในกริด แล้วเด้ง pop up เลย ไม่ต้องบล็อค
Code (VBScript)
Private Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged
iddetailCore = GridView1.SelectedRow.Cells(13).Text.ToString
Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "JavaScript:OpenPopup('FormDictionary Core.aspx?id_core=" & iddetailCore & "');", True)
End Sub
Code (ASP)
<script type="text/javascript">
function OpenPopup(url) {
popup = window.open(url, "mypopup", "location=1,status=1,scrollbars=1,width=1000,height=700");
popup.moveTo(0, 0);
}
</script>
Tag : .NET, Ms SQL Server 2008, JavaScript, Web (ASP.NET)
|
|
 |
 |
 |
 |
Date :
2014-02-18 08:36:45 |
By :
nan |
View :
1493 |
Reply :
2 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Popup ก็ Block อย่างนี้แหละครับทำอะไรไม่ได้ ให้ไปใช้พวก Lightbox ของ jQuery แทนครับ

ASP.NET GridView Popup and jQuery Lightbox สร้าง Popup บน GridView
|
 |
 |
 |
 |
Date :
2014-02-18 09:38:32 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|