Hi,
In my web forms app. I would like to call a dll function. But in this dll function I would like to pop up a modal dialog (customized) according to a specific condition. How can I make a such dll and use it in my web forms app?
Here is my sample class library;
Imports System.Web.UI
Imports System.Web
Public Class Utility
Public Sub ManageExpenseCulture(message As String)
Dim page As Page = DirectCast(HttpContext.Current.Handler, Page)
ScriptManager.RegisterStartupScript(page, page.[GetType](), "script", "alert('" + message + "')", True)
End Sub
End Class
Here is how I want my custom pop up;
isIE = false;
$(function() {
$( ".pen1" ).draggable({ handle: ".handle" });
if ( isIE ){
$( ".IEdeYok" ).remove();
}
$( ".pen1 .iptal" ).on("click", function(){
alert("iptal ediyoruz \nkullanici : " + $( "#kullanici" ).val() + " \nparola : " + $( "#parola" ).val() );
});
$( ".pen1 .girisyap" ).on("click", function(){
alert("giris yapiyoruz \nkullanici : " + $( "#kullanici" ).val() + " \nparola : " + $( "#parola" ).val() );
});
});
.pen1{
position:relative;
top:200px;
left:300px;
background-image: url(butun-kutucuk.png);
width: 354px;
height: 220px;
border: solid 1px #000;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
.pen1 input{
width: 183px;
height: 21px;
position: absolute;
top:95px;
left: 123px;
}
.pen1 .carpi{
position: absolute;
top: -7px;
right: -5px;
}
.pen1 .iptal{
position: absolute;
bottom: 14px;
right: 18px;
}
.pen1 .girisyap{
position: absolute;
bottom: 14px;
right: 111px;
}
.pen1 .handle{
position: absolute;
top: 0px;
left: 0px;
height: 20px;
width:100%
}



Replies
Know the answer? Post it — somebody with the same question will find it here.