WebUserControl problem, pls help!!

C

CM

Hi, there:
I have created a user control in an ASP.Net web application (.Net 2003).
I put the user control on a web page, and found those buttons put above the
user control will function normally, but those buttons put below the user
control will not response to click event. What could be the reason?
Thanks in advance!
CM
 
C

CM

Hi there:
Following is the simplified code for the trouble web control. If I delete
line2, the Button1 can response to click event, but if line2 is there,
Button1 won't response to click event. Why? Thanks for any explaination.

Line1: <%@ Control Language="vb" AutoEventWireup="false"
Codebehind="Header.ascx.vb" Inherits="Market.Header"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
Line2: <%@ OutputCache Duration="43200" VaryByParam="none" %
VaryByCustom="UserID">
Line3: <asp:Button id="Button1" runat="server" Text="Button"></asp:Button>
Line4: <asp:TextBox id="TextBox1" runat="server"></asp:TextBox>

CM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,573
Members
47,205
Latest member
ElwoodDurh

Latest Threads

Top