Thursday, March 22, 2012

Modal dialog with a page

What is a proper way in .NET to create a modal dialog on the client with the
aspx page ?

ThanksHi Mark,

Is this what you mean?

Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
Dim sb As New System.Text.StringBuilder
sb.Append("javascript:window.showModalDialog")
sb.Append("('http://authors.aspalliance.com/kenc/',")
sb.Append(" '','');return true;")
Button1.Attributes.Add("onclick", sb.ToString)
End Sub

Ken
Microsoft MVP [ASP.NET]

"Mark Goldin" <markgoldin@.comcast.net> wrote in message
news:OITJrz88DHA.2560@.TK2MSFTNGP09.phx.gbl...
> What is a proper way in .NET to create a modal dialog on the client with
> the
> aspx page ?
> Thanks

0 comments:

Post a Comment