Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



Closed Thread
ASP ContentPlaceHolder Tags
Old 10-18-2010, 05:57 PM ASP ContentPlaceHolder Tags
Jasonpv's Avatar
Super Talker

Posts: 102
Trades: 0
Hi all, I've just taken over my first ASP.net based site and have a good feel for how the code functions and have already addressed many issues the client was having with he site. I have a couple of fundamental questions about how/where certain data comes from. For example, contentplaceholder tags.

In the head of the .master file there is a tag:
Code:
<asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
My question is, where does the "content" that populates this area come from? Can I edit it?

Thank you very much in advance for any information!!
Jasonpv is offline
View Public Profile
 
 
Register now for full access!
Old 10-21-2010, 08:53 AM Re: ASP ContentPlaceHolder Tags
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://msdn.microsoft.com/en-us/libr...aceholder.aspx
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 10-21-2010, 07:45 PM Re: ASP ContentPlaceHolder Tags
Jasonpv's Avatar
Super Talker

Posts: 102
Trades: 0
Thanks Chris! Yeah, I've figured that out and come a looong way with .net since this post. Thanks for the reply though...

Since I have you here though I do have one issue that I know I will have to deal with down the road at some point. Is there a straight forward way to trigger an UpdateProgress panel in which the trigger button exists outside of the update panel are it should trigger?

Ex:
Code:
<span class="item-page-thumb-bg"><span class="thumb-area">                   
   <asp:ImageButton ID="altImage1" runat="server" BackColor="White" CssClass="img_thumb" BorderWidth="0" width="74" Height="74" CausesValidation="false" onclick="altImage1_Click"  />
                         
   <asp:ImageButton ID="altImage2" runat="server" BackColor="White" CssClass="img_thumb" BorderWidth="0" width="74" Height="74" CausesValidation="false" onclick="altImage2_Click"  />
                         
   <asp:ImageButton ID="altImage3" runat="server" BackColor="White" CssClass="img_thumb" BorderWidth="0" width="74" Height="74" CausesValidation="false" onclick="altImage3_Click"  />
</span></span>
<asp:UpdatePanel ID="productImage" runat="server" UpdateMode=Conditional>
   <ContentTemplate>
   <span class="big-watch-packets-display-area">
      <div class="productImageProgress">
         <asp:UpdateProgress ID="productImageProgress" runat="server" AssociatedUpdatePanelID="productImage" DisplayAfter="10" Visible=true DynamicLayout="true">
         <ProgressTemplate>
            <span class="big-watch-packets-display-area-load">
               <img border="0" src="http://www.webmaster-talk.com/images/loading.gif" />
            </span>
         </ProgressTemplate>
         </asp:UpdateProgress>
      </div>
      <img id="imgMain" runat="server" alt="" border="0" usemap="" />
   </span> 
   </ContentTemplate>
   <Triggers>
      <asp:AsyncPostBackTrigger ControlID="altImage1" /> 
      <asp:AsyncPostBackTrigger ControlID="altImage2" />
      <asp:AsyncPostBackTrigger ControlID="altImage3" />
   </Triggers> 
</asp:UpdatePanel>
I found a site that discussed how to do it using javascript but I failed at my attempt to pull it off. Have you had to deal with anything like this before? My solution for now was to just move the ImgButtons inside of the updatepanel which worked just fine. I know I will need this functionality for other portions of the site in the future though...Thanks for any help!

Last edited by Jasonpv; 10-21-2010 at 07:47 PM..
Jasonpv is offline
View Public Profile
 
Old 10-26-2010, 07:49 AM Re: ASP ContentPlaceHolder Tags
Extreme Talker

Posts: 246
Trades: 0
http://www.ajaxtutorials.com/ajax-tu...n-asp-net-3-5/
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
stbuchok is offline
View Public Profile
 
Closed Thread     « Reply to ASP ContentPlaceHolder Tags
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.85935 seconds with 12 queries