16,015,296 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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);
}
}