Click here to Skip to main content
15,885,910 members

Comments by pankaj mishra 1234 (Top 5 by date)

pankaj mishra 1234 9-Oct-13 7:38am View    
i think u can easily call a java-script function from server side
pankaj mishra 1234 9-Oct-13 7:36am View    
hi D-Kishore call convert function from server side on button click
pankaj mishra 1234 9-Oct-13 7:03am View    
hi D-Kisor i mail u sample please check it and reply me if u have any issue
pankaj mishra 1234 8-Oct-13 7:58am View    
ya it will show pop up, u can try it if u have any issue replay me for the same
pankaj mishra 1234 8-Oct-13 7:48am View    
//ASPX PAGE
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="dialog.aspx.cs" Inherits="dialog" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>
<link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css"
rel="stylesheet" type="text/css" />
<script type="text/javascript">
function ShowPopup() {
$(function () {
// $("#dialog").html(message);
$("#dialog").dialog({
title: "login",
modal: true
});
});
};
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="dialog" style="display: none; width:40%">
your login design
</div>
<asp:Button ID="btnShowPopup" runat="server" Text="download" OnClick="btnShowPopup_Click" />
</form>
</body>
</html>


//ON BUTTON CLICK


protected void btnShowPopup_Click(object sender, EventArgs e)
{
string text1 = "";
if (text1 == "" || text1 == string.Empty)
{

ClientScript.RegisterStartupScript(this.GetType(), "Popup", "ShowPopup();", true);
}
}