VB.net中的PopupExtender AJAX [英] PopupExtender AJAX in VB.net
本文介绍了VB.net中的PopupExtender AJAX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经完成msgbox任务,但是我想将其更改为合适的AJAX PopupExtender,因为当系统上载到服务器时,msgbox会出现一些问题.这是msgbox的代码.所以我想用另一个弹出窗口替换它,以便可以完成相同的消息.
i have done for msgbox task but i want to change it to a suitable AJAX PopupExtender because some problem appear for the msgbox when the system uploaded to the server. here the code for msgbox. so i want to replace it with another popup so that this same message can be done.
If MsgBox("Adakah anda pasti ingin mengemaskini status bilik?", MsgBoxStyle.YesNo, "Pengesahan") = MsgBoxResult.Yes Then
Dim con As New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\DatabaseKTF.mdf;Integrated Security=True;User Instance=True")
Dim strupdate As String
Dim cmd As SqlCommand
strupdate = "UPDATE Bilik set StatusBilik= @StatusBilik, StudIcNo=NULL where Blok='" & ddlBlok.SelectedValue & "' AND Aras= '" & ddlAras.SelectedValue & "' AND Jenis= '" & ddlJenis.SelectedValue & "'"
cmd = New SqlCommand(strupdate, con)
con.Open()
cmd.Parameters.AddWithValue("@StatusBilik", lblAvailable.Text)
cmd.ExecuteNonQuery()
cmd.Parameters.Clear()
con.Close()
ElseIf MsgBoxResult.No Then
Response.Redirect("~/Admin/KemaskiniBilik.aspx")
End If
推荐答案
Ajax Popup Extender教程 [ ^ ]
我是通过谷歌搜索获得的:"Ajax Popup扩展程序教程"
Ajax Popup Extender tutorial[^]
I got this from googling : "Ajax Popup extender tutorial"
这篇关于VB.net中的PopupExtender AJAX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文