Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Ajax problems

$
0
0

I have never managed to get Ajax to work properly but as it gives such a good look to pages I thought I would have another go but have come across yet another problem and was wondering what in general I am doing wrong.

I have downloaded the latest version of Ajax, added it to my references in visual studio and added it to my toolbox as well. I also added the toolkitscriptmanager to my Master page and found I needed to add it to all pages for it to compile. For this version I discovered that I needed to add AjaxMin to the bin folder too which I did.

I have then tried to use the Accordian like this

             <asp:Accordion
                ID="AccHull"
                runat="server"
                SelectedIndex="0"
                HeaderCssClass="accordionHeader"
                ContentCssClass="accordionContent"
                FadeTransitions="true"
                FramesPerSecond="40"
                TransitionDuration="250"
                AutoSize="None"  >
            <Panes>
                <asp:AccordionPane ID="AccPHull" runat="server" Height="200px" >
                <Header>
                <asp:Label runat="server"
                        ID="LblAccHullHeader"
                        cssclass="accordionLink" />
                </Header>
                 <Content>

I then add a text string to LblAccHullHeader from within the code behind. This all compiles perfectly.

However when it runs in IIS and also via the 'View in Browser' Visual Studio mode, I get the error message that LblAccHullHeader does not exist.  Also none of the labels or text boxes within the <content> section exist either during runtime.

I have taken LblAccHullHeader (and the other labels in the content section) out of the Accordian and it runs perfectly, so I surmise that it must have something to do with Ajax.

What have I not done? I can only assume that I have missed something when adding Ajax to Visual Studio.

Can anybody help please?


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>