Solved

Problem with Panel

Posted on 2014-03-04
1
203 Views
Last Modified: 2014-03-21
Hi,
Having these on Markup
    <link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
    <script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
    <script type="text/javascript">
        ...
        $(function () {
            $("#Panel3").dialog({
                autoOpen: false,
                autoResize: true,
                resizable: false,
                title: "Confirmation",
                open: function (event, ui) {
                    $(this).parent().appendTo("form");		//allow .Net buttons to post back
                }
            });

        });
        function closePopup3() {
            $("#Panel3").dialog("close");
        }

        function openPopup3() {
            $("#Panel3").dialog("open");
        }
        ...
    </script>
	<script language="C#" runat="server">
        ...
        private void clickMe3(object sender, EventArgs e)
        {
            ...
        }
        private void clickNo3(object sender, EventArgs e)
        {
            ...
        }
	</script>
	...
	<div id="Panel3" runat="server">
		Testing message
		<br /><br />
		<asp:Button id="Button3" OnClick="clickMe3" runat="server" Text="Yes"/>
		&nbsp;&nbsp;
		<asp:Button id="Button4" OnClick="clickNo3" runat="server" Text="No"/>
	</div>
	...

Open in new window

no Panel has been shown by these codes. why?

        protected void Page_Load(object sender, EventArgs e)
        {
            ...
            if (!IsPostBack)
            {
                    ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "CallEvent", "openPopup3();return false;", true);
                    ...
                    

Open in new window

0
Comment
Question by:HuaMinChen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 16

Accepted Solution

by:
SriVaddadi earned 205 total points
ID: 39906917
Is your panel inside a UpdatePanel? If not use ClientScriptManager.RegisterClientScriptBlock
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question