You haven't shown us the troublesome code so its hard to know what you're
trying to do. Here's a linkbutton in a master page that does something... it
puts the date on the label.
Let us know more about your problem and show the code?
Ken
Microsoft MVP [ASP.NET]
<%@ Master Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Protected Sub LinkButton1_Click _
(ByVal sender As Object, ByVal e As System.EventArgs)
Label1.Text = "Link clicked at " & Now.ToLongTimeString
End Sub
</script>
<html xmlns="
http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Linkbutton master</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:linkbutton id="LinkButton1" runat="server"
onclick="LinkButton1_Click">Click Me!</asp:linkbutton><br />
<br />
<asp:label id="Label1" runat="server"></asp:label><br />
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
</asp:contentplaceholder>
<br />
</div>
</form>
</body>
</html>
MRW said:
I have a simple linkbutton and a function when it's clicked. It works
perfectly in a regular .aspx page. However, when I place it inside the
ContentPlaceHolder, it no longer works. It does *something*, but
certainly not the function, which is also in the ContentPlaceHolder.
This is also true concerning any events in there.
Any ideas?
Thanks for any help!