Solved

Problem with Panel

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with error when uploading excel file 3 27
Problem!!! 8 33
How to parse the string and split the sub directory names in asp.net 7 41
Help with exporting to excel 4 27
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

770 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