web matrix namespace

Last post 11-28-2005 3:00 PM by Freakyuno. 6 replies.

Sort Posts:

  • web matrix namespace

    11-26-2005, 6:50 PM
    • Member
      495 point Member
    • tim99
    • Member since 10-01-2002, 6:47 AM
    • Posts 99
    Hi i have created a really simple access database page as a test - it works locally but when i upload to my host it gives an error on this line
    Line 2:  <%@ Register TagPrefix="wmx" Namespace="Microsoft.Matrix.Framework.Web.UI" Assembly="Microsoft.Matrix.Framework, Version=0.6.0.0, Culture=neutral, PublicKeyToken=6f763c9966660626" %>
    which seems to suggest that the
    Namespace - Microsoft.Matrix.Framework.Web.UI is not on that webserver - does this mean that any page created with web matrix needs to be hosted on a server supporting webmatrix 
    this is the code complete - how would i modify it to work on a standard install of .net ?

    <%@ Page Language="VB" %>
    <%@ Register TagPrefix="wmx" Namespace="Microsoft.Matrix.Framework.Web.UI" Assembly="Microsoft.Matrix.Framework, Version=0.6.0.0, Culture=neutral, PublicKeyToken=6f763c9966660626" %>
    <script runat="server">

    ' Insert page code here
    '

    </script>
    <html>
    <head>
    </head>
    <body>
    <form runat="server">
    <wmx:AccessDataSourceControl id="AccessDataSourceControl1" runat="server" SelectCommand="SELECT * FROM [contacts]" ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0; Ole DB Services=-4; Data Source=c:\hosting\webhost4life\member\tcoles\dotnetdemo\n1\db\contactDemo.mdb"></wmx:AccessDataSourceControl>
    <wmx:MxDataGrid id="MxDataGrid1" runat="server" DataSourceControlID="AccessDataSourceControl1" BorderColor="#CCCCCC" AllowSorting="True" DataMember="contacts" AllowPaging="True" BackColor="White" CellPadding="3" DataKeyField="contactId" BorderWidth="1px" BorderStyle="None">
    <PagerStyle horizontalalign="Center" forecolor="#000066" backcolor="White" mode="NumericPages"></PagerStyle>
    <FooterStyle forecolor="#000066" backcolor="White"></FooterStyle>
    <SelectedItemStyle font-bold="True" forecolor="White" backcolor="#669999"></SelectedItemStyle>
    <ItemStyle forecolor="#000066"></ItemStyle>
    <HeaderStyle font-bold="True" forecolor="White" backcolor="#006699"></HeaderStyle>
    </wmx:MxDataGrid>
    <!-- Insert content here -->
    </form>
    </body>
    </html>

    thanks


  • Re: web matrix namespace

    11-26-2005, 7:30 PM
    • Star
      12,508 point Star
    • Freakyuno
    • Member since 01-20-2005, 11:57 AM
    • Midwest - United States
    • Posts 1,952
    • TrustedFriends-MVPs
    Use the build option to create the dll's required for your project, and make sure they exist in the /bin directory on the webserver after your build.
  • Re: web matrix namespace

    11-26-2005, 8:04 PM
    • Member
      495 point Member
    • tim99
    • Member since 10-01-2002, 6:47 AM
    • Posts 99
    ok
    what if i want to run script only - ie no dll's is this possible or do you have to do a build in this situation


  • Re: web matrix namespace

    11-28-2005, 9:52 AM
    • Star
      12,508 point Star
    • Freakyuno
    • Member since 01-20-2005, 11:57 AM
    • Midwest - United States
    • Posts 1,952
    • TrustedFriends-MVPs
    If you want to run it as script only, dont place any code in your codebehind, or any seperate classes or modules, it all has to be included directly in the document enclosed in <% %> tags.
  • Re: web matrix namespace

    11-28-2005, 1:40 PM
    • Member
      495 point Member
    • tim99
    • Member since 10-01-2002, 6:47 AM
    • Posts 99
    thanks
    but it appears that
    AccessDataSourceControl is a part of the webmatrix namespace which means you must upload the webmatrix dll to your bin folder.

    is this correct ?

    I was wondering if there is a way of running such script ie with the
    AccessDataSourceControl *without* uploading dlls to the bin folder. 


  • Re: web matrix namespace

    11-28-2005, 2:40 PM
    • All-Star
      49,276 point All-Star
    • Curt_C
    • Member since 07-23-2003, 8:27 PM
    • Plover, WI - USA
    • Posts 5,356
    • Moderator
      TrustedFriends-MVPs

    Could I ask what the issue is with having the /bin folder with the dll's in it?

    Blatant Self-Promotion: Book Released - ASP.Net CMS Development
  • Re: web matrix namespace

    11-28-2005, 3:00 PM
    • Star
      12,508 point Star
    • Freakyuno
    • Member since 01-20-2005, 11:57 AM
    • Midwest - United States
    • Posts 1,952
    • TrustedFriends-MVPs

    You absolutly can, you can design asp pages in notepad if you wish. 

    The webmatrix dll is required to use any of the webmatrix specific controls.
    Remove these from your project, and you'll be fine.

Page 1 of 1 (7 items)