.net - ASP.NET Register WebControl to use in ASPX Page -
.net - ASP.NET Register WebControl to use in ASPX Page -
i have created webcontrol videostreaming video streaming using next link:
video streaming aspnet signalr , html5
videostreaming.vb
<assembly: owinstartup(gettype(videostreaming))> namespace lantern.demo.client.customcontrol public class videostreaming inherits webcontrol '.... code here end class end namespace
after writing code, declared/added/registered command in web.config file as:
<pages> <controls> <add assembly="videostreaming" tagprefix="web" namespace="lantern.demo.client.customcontrol"/> </controls> </pages>
but not able add together in aspx page regular control. trying:
<web:videostreaming runat="server" id="video" clientidmode="static" width="300px" height="300px" interval="100" source="true" scalingmode="targetsize" streamingmode="target" targetclientid="received" onstreamed="onstreamed" style="border: solid 1px black" />
this highlights next error:
element 'videostreaming' not known element. can occur if there compilation error in website, or web.config file missing.
i have tried registering command using <%register%> directory.
<%@ register namespace="lantern.demo.client.customcontrol" tagprefix="web" assembly="videostreaming"%>
but not working. missing or have do?
i have seen next links:
how register user command , custom control registering custom controls failplease allow me know if more info required. thanks
edit: allow know not .ascx control. webcontrol has no ui.
i using visual studio 2012.
asp.net .net vb.net webforms web-controls
Comments
Post a Comment