Solved

Problem with Panel

Posted on 2014-03-04
1
197 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
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now