-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDefault.aspx.vb
38 lines (30 loc) · 1.49 KB
/
Default.aspx.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Public Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
If (Not IsPostBack) Then
CustomizePopupControlAppearance()
End If
End Sub
Private Sub CustomizePopupControlAppearance()
ASPxPopupControl1.Modal = True
'Make the ASPxPopupControl's elements invisible
ASPxPopupControl1.BackColor = System.Drawing.Color.Transparent
ASPxPopupControl1.Border.BorderWidth = 0
ASPxPopupControl1.ContentStyle.Paddings.Padding = 0
ASPxPopupControl1.ShowHeader = False
ASPxPopupControl1.ShowSizeGrip = DevExpress.Web.ShowSizeGrip.False
ASPxPopupControl1.ShowShadow = False
'Specify that the ASPxPopupControl can only be invoked and closed programmatically
ASPxPopupControl1.PopupAction = DevExpress.Web.PopupAction.None
ASPxPopupControl1.CloseAction = DevExpress.Web.CloseAction.None
'Make the ASPxPopupControl displayed centered within the ASPxGridView
ASPxPopupControl1.PopupElementID = "ASPxGridView1"
ASPxPopupControl1.PopupHorizontalAlign = DevExpress.Web.PopupHorizontalAlign.Center
ASPxPopupControl1.PopupVerticalAlign = DevExpress.Web.PopupVerticalAlign.Middle
End Sub
Protected Sub btnReloadDemo_Click(ByVal sender As Object, ByVal e As EventArgs)
'Reset the grid's data source
Session("GridDataSource") = Nothing
Response.Redirect("Default.aspx")
End Sub
End Class