[RESOLVED]Panel not appear in Web Developer 2008 Express

Hi,

I added a panel with ModalPopupExtender in a web form. Opening this form at Visual Web Developer 2008 Express, only seen ModalPopupExtender, not seen the panel. At Soure, all panel code exists. Why not shown?

<input id="gwProxy" type="hidden"><input onclick="jsCall();" id="jsProxy" type="hidden">

<div id="refHTML"></div>

Please post your markup. 

I created this web project firstly as a web site project in VS 2005. And then I want to make this project as a asp web application. So I created new asp web application, added some web forms and converted all these forms to web application by using ‘convert
to web application’. Here I added httphandler at web.config because ajax control is not apeared at run time.

Now I use this web application with VS 2008. In VS 2008, panel are not appeared.

So I make a new VS 2008 asp web application project and add ajax control to web content form. This error message is appeared ‘The operation could not be completed‘. Help me!Undecided

soclose

Here I added httphandler at web.config because ajax control is not apeared at run time.

 

There is no reason to add an HttpHandler to your web.config file, because of AJAX. If you have installed the AJAX Control Toolkit, or the new AJAX Library on your machine, you’ll be fine. You need to register the controls, which can be done in the page or
in the web.config file, with the simplest being that you drag a control from the Toolbox onto a Web Form.

Please show us the markup for the Web Form, on which you have the AJAX control, if possible.

This is my testing web form code in my web project. Source code is below

<%@ Page Language="C#" MasterPageFile="~/SFAMasterPage.master" AutoEventWireup="true" Inherits="Default2" Title="Untitled Page" Codebehind="Default2.aspx.cs" %>


<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>


<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    

    <asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton> 
    <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1">
    </cc1:CalendarExtender>
     
    <asp:Panel ID="Panel1" runat="server" CssClass="modalBox" style =" display :none;">
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></asp:Panel>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="sptname" HeaderText="sptname" SortExpression="sptname" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MSFAConnectionString %>"
        SelectCommand="SELECT * FROM testspt;" ProviderName="<%$ ConnectionStrings:MSFAConnectionString.ProviderName %>">
    </asp:SqlDataSource>
    <cc1:modalpopupextender id="ModalPopupExtender1" runat="server" targetcontrolid="LinkButton1" PopupControlID="Panel1" BackgroundCssClass = "modalBackground"></cc1:modalpopupextender>
     
    <asp:CheckBoxList ID="CheckBoxList1" runat="server" Height="1px" Width="234px">
        <asp:ListItem>CCTV - S$988 Packages</asp:ListItem>
        <asp:ListItem>Intrusion Alarm - S$588 Package</asp:ListItem>
        <asp:ListItem>Multiple Security Solution</asp:ListItem>
        <asp:ListItem>CCTV - Wireless Solutions</asp:ListItem>
    </asp:CheckBoxList>
    <asp:DropDownList ID="DropDownList1" runat="server">
    </asp:DropDownList> 
    <asp:ListBox ID="ListBox1" runat="server" Height="53px" SelectionMode="Multiple">
        <asp:ListItem>CCTV - S$988 Packages</asp:ListItem>
        <asp:ListItem>CCTV - S$988 Upsell Packages</asp:ListItem>
        <asp:ListItem>Intrusion Alarm - S$588 Package</asp:ListItem>
        <asp:ListItem>Multiple Security Solution</asp:ListItem>
    </asp:ListBox>
    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
    <asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine"></asp:TextBox>
</asp:Content>

I have already installed ASPAJAXExtSetup.msi on window Vista. Should I need to install this
ASP.NET Ajax Library 0911 Beta -
http://ajax.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35895#ReleaseFiles – for VWD 2008 Express?

The style for your Panel control is set like this: style =" display :none;", which means it is not displayed. 

integrasol

The style for your Panel control is set like this: style =" display :none;", which means it is not displayed. 

Surprised this is at design time, not at run time. So the panel should display, is it?

<input id="gwProxy" type="hidden"><input onclick="jsCall();" id="jsProxy" type="hidden">

<div id="refHTML"></div>

Well, try and remove it. ;-)

Now It works. Thanks.Smile

I have two more errors -

  1. I can’t drop any ajax control to this VWD 2008 Express
  2. For script manager, I get this error message "Error Creating Control – ScriptManager1 The server tag ‘asp:ScriptManager’ is ambiguous. Please modify the associated registration that is causing ambiguity and pick a new tag prefix." 

For the 2nd error, I also add scriptManager at MasterPage. That’s why? I add script manager in this test web form before. I just only removed this control. I not know how to modify the associated registration.

<input id="gwProxy" type="hidden"><input onclick="jsCall();" id="jsProxy" type="hidden">

<div id="refHTML"></div>

If you have a ScriptManager control in your master page, you need to a
ScriptManagerProxy control to your content pages. Try adding the
ScriptManagerProxy control to your content page first, and then do a drag and drop.

I add ScriptManagerProxy in web content form but can’t drag and drop Ajax Control to this form.

integrasol

I have already installed ASPAJAXExtSetup.msi on window Vista. Should I need to install this
ASP.NET Ajax Library 0911 Beta -
http://ajax.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35895#ReleaseFiles – for VWD 2008 Express?

Do I need to install this Ajax Library 0911 Beta?

See http://forums.asp.net/t/1139967.aspx?PageIndex=1

To install new version, you need remove old one http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-47-cs.aspx

Thanks Sun Light. Your links are so useful for me.

In my VWD 2008 project, I remove old Ajax dll reference and add new ajax reference – AspNetAjaxLibraryBeta0911. And then at my toolbox, I remove old ajax controls and add new ajax ones. Now I could drag and drop any ajax control to my web form but only in
source code.

Leave a Reply