Hi
I am trying this simple custom control. from here:
http://samples.gotdotnet.com/quickst...x#innercontent
when i browse the page it gives me an error:
Could not load file or assembly SimpleControlSa mples or one of its
dependencies. The system cannot find the file specified.
Can anyone help please.
thanks
<%@ Register TagPrefix="Simp leControlSample s"
Namespace="Simp leControlSample s" Assembly="Simpl eControlSamples VB" %>
<html>
<body>
<form method="POST" runat="server">
<SimpleControlS amples:SimpleIn nerContentVB id="MyControl"
runat=server>
My Message Is Inside the Control Tag!!!!
</SimpleControlSa mples:SimpleInn erContentVB>
</form>
</body>
</html>
using System;
using System.Web;
using System.Web.UI;
namespace SimpleControlSa mples {
public class SimpleInnerCont ent : Control {
protected override void Render(HtmlText Writer output) {
if ( (HasControls()) && (Controls[0] is LiteralControl) ) {
output.Write("< H2>Your Message: " + ((LiteralContro l)
Controls[0]).Text + "</H2>");
}
}
}
}