Hi,
i open the radwindow into page without navigaturl. This my code is:
Now into vb net code i've this code:
i would that when i pon the radwindow, start the vb code...How do it?
thanks bye
i open the radwindow into page without navigaturl. This my code is:
<
telerik:RadWindow
ID
=
"RadWindowAnteprimaProfile"
runat
=
"server"
ShowContentDuringLoad
=
"false"
Title
=
"Anteprima immagine"
Behaviors
=
"None"
Modal
=
"True"
Behavior
=
"None"
Font-Names
=
"Verdana"
Font-Size
=
"Small"
IconUrl
=
"/image/iconlogo.png"
Width
=
"350px"
Height
=
"280px"
MaxHeight
=
"300px"
MaxWidth
=
"400px"
ToolTip
=
"Anteprima immagine"
VisibleStatusbar
=
"False"
Skin
=
"Simple"
ReloadOnShow
=
"True"
>
<
ContentTemplate
>
<
div
class
=
"Divviewimgprifile"
>
<
div
class
=
"Divviewimgprifile1"
>
<
table
style
=
"width:100%; margin:0px; padding:0px; border:0px"
>
<
tr
>
<
td
style
=
"text-align:center"
>
<
div
runat
=
"server"
id
=
"imgprofile"
class
=
"AnteprimaImgProfile"
>
</
div
>
</
td
>
</
tr
>
<
tr
>
<
td
>
</
td
>
</
tr
>
<
tr
>
<
td
style
=
"text-align:center; padding-top:10px"
>
<
asp:ImageButton
ID
=
"Imgbtnesci_1"
runat
=
"server"
ImageUrl
=
"~/Image/esci1.png"
/>
</
td
>
</
tr
>
</
table
>
</
div
>
</
div
>
</
ContentTemplate
>
</
telerik:RadWindow
>
Now into vb net code i've this code:
Try
Dim
conString = ConfigurationManager.ConnectionStrings(
"TrycontactString"
)
Dim
strConnString
As
String
= conString.ConnectionString
Using db
As
New
SqlConnection(strConnString)
db.Open()
Using sqlcmd
As
New
SqlCommand(
"Sp_get_imageprofile"
, db)
sqlcmd.CommandType = CommandType.StoredProcedure
sqlcmd.Parameters.AddWithValue(
"@id"
, SqlDbType.Int).Value = Session.Item(
"Idutente"
)
Dim
_img
As
String
= Replace(sqlcmd.ExecuteScalar,
"~"
,
""
)
imgprofile.Attributes(
"style"
) =
"background-image: url('"
+ _img +
"');"
End
Using
End
Using
Catch
ex
As
SqlException
Exit
Sub
Catch
ex
As
Exception
Exit
Sub
End
Try
End
If
i would that when i pon the radwindow, start the vb code...How do it?
thanks bye