Click here to Skip to main content
16,020,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
can we give autopostback=true for a dropdowncontrol in .ascx. I've provided it and when the page loads it shows the page but not control. Can anyone help me out?
Thanks...
Posted
Updated 22-Apr-12 20:27pm
v2
Comments
Mohamed Mitwalli 23-Apr-12 2:33am    
Share your code .
Sandeep Mewara 23-Apr-12 2:49am    
This is not a well framed question! We cannot work out what you are trying to do/ask from the post. Please elaborate and be specific.
Use the "Improve question" link to edit your question and provide better information.

Hi,

try visiting this[^] link..
It may help you..
 
Share this answer
 
XML
<div style="display: table-cell; vertical-align: top">
          <asp:UpdatePanel runat="server">
              <ContentTemplate>
                  <asp:DropDownList ID="ddlItemType" runat="server" DataTextField="ItemTypeName" DataValueField="ItemTypeId"
                      ValidationGroup="vgLibItem" OnSelectedIndexChanged="ddlItemType_SelectedIndexChanged">
                  </asp:DropDownList>
              </ContentTemplate>
              <Triggers>
                  <asp:AsyncPostBackTrigger ControlID="ddlItemType" EventName="SelectedIndexChanged" />
              </Triggers>
          </asp:UpdatePanel>
      </div>
 
Share this answer
 
Hi,
check this link.

User controls in ASP .NET[^]

I think you have not registered the user control with the page. If you have added, try by adding the below line in Control directive of the user control.

HTML
<![CDATA[<%@ OutputCache Duration="1" Location="None" %>]]>


hope it works.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900