View Single Post
  #1 (permalink)  
Old November 14th, 2006, 04:41 PM
jamara
Guest
 
Posts: n/a
Default Problem with user controls

Hi,
   Following code is generating error "Unrecognized Namespace "UIDUControl"" Can someone please show me what I am doing wrong? I am new to ASP.NET.
   The .ascx files are in the bin/App_code folder of my website.
Thanks!

Here's the code:

Imports System
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.Caching



<% @Register TagPrefix="UIDUControl" TagName="Header" Src="ScanningAppHeader.ascx" %>
<% @Register TagPrefix="UIDUControl" TagName="Footer" Src="ScanningAppFooter.ascx" %>
<% @Register TagPrefix="UIDUControl" TagName="SAFunctions" Src="ScanningAppFunctions.ascx" %>

<% @Page Inherits="SAFunctions.SAFunct" Src="SAFunct.vb" %>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Language" content="en-us"/>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0"/>
<meta name="ProgId" content="FrontPage.Editor.Document"/>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>

<title>Delete Units and All Associated Records</title>
<link rel="stylesheet" type="text/css" />

</head>
<body>
</body>
<script type="text/jscript" language="jscript">
function additional_delete(myform) {
    myform.action = "delete_unit_no.asp"
    myform.submit();
}


</script>

<UIDUControl:SAFunctions id="SAFunctions1" runat="server" >


<body>
<form name="myForm" method="POST" action="delete_unit_no.aspx">
<table width="100%">
    <tr>
        <td colspan="2" align="center">
        <UIDUControl:Header id="Header1" runat="server" />
        </td>
    </tr>
    <tr>
        <td width="10%" height="100%" bgcolor="#003399" valign="top">
                   <td width="90%" align="center">
               <table>
                    <tr align="center">
                        <td align="center">
                            <%

                                If(Len(Err.Description) > 0) Then
                                    Response.Write ("<p>Error. Please Check Input and Try Again.</p>")
                                    Response.Write ("<p>" & Err.Description & "</p>")
                                    Response.Write ("<p><input type=""Button"" onclick=""javascript:history.go(-1);"" value=""Go Back""></p>")
                                Else
                                    Response.Write ("<p><b>Record deleted from database!</b></p>")
                                    Response.Write ("<input type=""submit"" value=""Delete Another"" name=""B1"" tabindex=""3"">")
                                End If
                            %>
                            </td>
                    </tr>

                </table>
       </td>
    </tr>
</table>



<table>
  <tr>
        <td colspan="2" align="center" >
        <UIDUControl:Footer id="Footer1" runat="server" />
        </td>
    </tr>
</table>
 </form>
</body>
</html>


Reply With Quote