none
Web Expression3 Created New site from Small Business3 Template RRS feed

  • Question

  • I am using Windows 7 and I have a HP Pavillion Entertainment Laptop.  I am using the Small Business3 template I am trying to add an ASPX page to the site where I can bind data to a Access database.  I followed the tutorials carefully and I tried several things all unsuccessful.

    Tried adding an ASPX page to the website and created the form to access data, this works fine when I view it as a separarte page. I can selct data and have it update the page with new selections,  But when I add a hyperlink from one of the existing pages in the template to my new ASPX page and then launch website the hyperlink pulls up the ASPX page in code view.  It will not display the image of the web page

    I also tried saving one of the existing pages as an ASPX page and then added the form to the page.  This worked fine but when I launch the website and try to access the page from the builtin menu it again brings up the page in code view, it will not display the page as an image.

    I must have left some thing out or I am trying to do something that is not permitted.  Can anyone help / advise?


    geocoy Expression Web 3.0
    Saturday, August 14, 2010 6:49 PM

Answers

  • Well, congratulations! Seriously, at least you did read the posting guidelines; thank you!

    Not all questions require a posted link (e.g. questions about publishing, general knowledge questions, questions about using EW or its interface, that kind of thing). Those involving appearance almost always do, as well as those involving behavior. We need to see the actual working (or non-working ;-) site in situ, with all markup, CSS, and images available, to help troubleshoot those.

    In the current instance, I think we can come close to an answer to your issue. When you call an aspx page from a standard HTML page, the development server has not launched (the HTML will render just fine without it in a browser). This means that there is nothing to process the sapx page's code and render out the HTML the browser actually sees, so the code is passed as text to the browser, and that's what you get.

    To address this, go to your Site Settings (You are working in a defined Web site, aren't you? Good.) and, on the Preview tab, set EW to use the Development Server "For all pages." That way the server will be running already when you call your aspx page from the HTML page.

    You may still have issues, but not having a running server won't be one of them. Good luck, and thanks for paying attention. ;-)

    cheers,
    scott


    C'mon, folks. This isn't rocket science, nor neurosurgery. It's "Expression" (singular) "Web" (singular), in that order, followed by a version numeral if you wish to be specific. It is often abbreviated "EW." It is not "Web Expression," "Expressions Web," "Web Expressions," or plain "Expression" or "Expressions." Not using the correct name indicates either ignorance or laziness. Most folks would rather avoid the appearance of either.
    Saturday, August 14, 2010 9:10 PM

All replies

  • Apparently this is a tough question or I didn't provide enough info.  Just wanted to add something, the text below is what I get when I try to launch the page from within the website or if I use the hyperlink to my new aspx page.  Is this more helpful  I hope you can help

    Thanks

    Whoops!   I was just re-reading the instructions for making a post to this forum.  And maybe I don't qualify to post questions here because I don't have a website yet.  I am building one on my pc.  When I am satisfied I understand the process I want to have the website hosted.  I am not there yet

    Also. I have no idea about  .NET Framework.  Do I have to purchase this and install it or does it come with Expression.  Can you advise about any of this?

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
    
    <!-- #BeginTemplate "../master.dwt" -->
    
    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <!-- #BeginEditable "doctitle" -->
    <title>ProductPurchase</title>
    <!-- #EndEditable -->
    <link href="../styles/style3.css" media="screen" rel="stylesheet" title="CSS" type="text/css" />
    </head>
    
    <body>
    
    <!-- Begin Container -->
    <div id="container">
    	<!-- Begin Masthead -->
    	<div id="masthead">
    		<img alt="" height="66" src="../images/logo.gif" width="150" /><p>office (000) 
    		000-0000<br />
    		fax (000) 000-0000<br />
    		toll-free (000) 000-0000</p>
    	</div>
    	<!-- End Masthead -->
    	<!-- Begin Navigation -->
    	<div id="navigation">
    		<ul>
    			<li><a href="../default.html">Home</a></li>
    			<li><a href="../about/default.html">About</a></li>
    			<li><a href="../news/default.html">News</a></li>
    			<li><a href="../products/default.html">Products</a></li>
    			<li><a href="../services/default.html">Services</a></li>
    			<li><a href="../calendar/default.html">Calendar</a></li>
    			<li><a href="../contact/default.html">Contact</a></li>
    		</ul>
    	</div>
    	<!-- End Navigation -->
    	<!-- Begin Page Content -->
    	<div id="page_content">
    		<!-- Begin Left Column -->
    		<div id="column_l">
    			<!-- #BeginEditable "content" -->
    			<h2>Lively Fashions</h2>
    			<p>Summer of Fun in the Fashion World</p>
    			<p>&nbsp;</p>
    			<body>
    
    <form id="form1" runat="server">
    	<p style="width: 358px">
    	<asp:AccessDataSource id="AccessDataSource1" runat="server" DataFile="../AppData/Test Database.mdb" SelectCommand="SELECT [Item], [Date], [Description], [Store], [Type], [SKU], [Price] FROM [Fashions]">
    	</asp:AccessDataSource>
    	<asp:DropDownList id="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="AccessDataSource1" DataTextField="Description" DataValueField="Item">
    	</asp:DropDownList>
    	</p>
    	<asp:DetailsView id="DetailsView1" runat="server" AutoGenerateRows="False" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" CellPadding="2" DataKeyNames="Item" DataSourceID="AccessDataSource2" ForeColor="Black" GridLines="None" Height="50px" Width="125px">
    		<FooterStyle BackColor="Tan" />
    		<PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
    		<Fields>
    			<asp:boundfield DataField="Item" HeaderText="Item" InsertVisible="False" ReadOnly="True" SortExpression="Item">
    			</asp:boundfield>
    			<asp:boundfield DataField="Date" HeaderText="Date" SortExpression="Date">
    			</asp:boundfield>
    			<asp:boundfield DataField="Description" HeaderText="Description" SortExpression="Description">
    			</asp:boundfield>
    			<asp:boundfield DataField="Store" HeaderText="Store" SortExpression="Store">
    			</asp:boundfield>
    			<asp:boundfield DataField="Type" HeaderText="Type" SortExpression="Type">
    			</asp:boundfield>
    			<asp:boundfield DataField="SKU" HeaderText="SKU" SortExpression="SKU">
    			</asp:boundfield>
    			<asp:boundfield DataField="Price" HeaderText="Price" SortExpression="Price">
    			</asp:boundfield>
    		</Fields>
    		<HeaderStyle BackColor="Tan" Font-Bold="True" />
    		<EditRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
    		<AlternatingRowStyle BackColor="PaleGoldenrod" />
    	</asp:DetailsView>
    	<asp:AccessDataSource ID="AccessDataSource2" runat="server" DataFile="../AppData/Test Database.mdb" SelectCommand="SELECT [Item], [Date], [Description], [Store], [Type], [SKU], [Price] FROM [Fashions] WHERE ([Item] = ?)">
    		<SelectParameters>
    			<asp:controlparameter ControlID="DropDownList1" Name="Item" PropertyName="SelectedValue" Type="Int32" />
    		</SelectParameters>
    	</asp:AccessDataSource>
    	<br />
    </form>
    
    </body>
    
    			<!-- #EndEditable --></div>
    		<!-- End Left Column -->
    		<!-- Begin Right Column -->
    		<div id="column_r">
    			<!-- #BeginEditable "sidebar" -->
    			<h3>Headline 3</h3>
    			<p>insert content here</p>
    			<!-- #EndEditable --></div>
    		<!-- End Right Column --></div>
    	<!-- End Page Content -->
    	<!-- Begin Footer -->
    	<div id="footer">
    		<p><a href="../default.html">Home</a> | <a href="../about/default.html">About</a> 
    		| <a href="../calendar/default.html">Calendar</a> |
    		<a href="../contact/default.html">Contact</a> |
    		<a href="../employees/default.html">Employees</a> |
    		<a href="../employment/default.html">Employment</a> |
    		<a href="../faq/default.html">FAQ</a> |
    		<a href="../information_links/default.html">Information Links</a> |
    		<a href="../news/default.html">News</a> |
    		<a href="../photo_gallery/default.html">Photo Gallery</a> |
    		<a href="../press/default.html">Press</a> | 
    		<a href="../products/default.html">
    		Products</a> | <a href="../promotions/default.html">Promotions</a> |
    		<a href="../services/default.html">Services</a> |
    		<a href="../site_map/default.html">Site Map</a></p>
    		<p>Copyright © 0000 Company Name. All Rights Reserved.</p>
    	</div>
    	<!-- End Footer --></div>
    <!-- End Container -->
    
    </body>
    
    <!-- #EndTemplate -->
    
    </html>
    
    

    geocoy Expression Web 3.0
    • Edited by geocoy Saturday, August 14, 2010 8:31 PM Updated
    Saturday, August 14, 2010 8:08 PM
  • Well, congratulations! Seriously, at least you did read the posting guidelines; thank you!

    Not all questions require a posted link (e.g. questions about publishing, general knowledge questions, questions about using EW or its interface, that kind of thing). Those involving appearance almost always do, as well as those involving behavior. We need to see the actual working (or non-working ;-) site in situ, with all markup, CSS, and images available, to help troubleshoot those.

    In the current instance, I think we can come close to an answer to your issue. When you call an aspx page from a standard HTML page, the development server has not launched (the HTML will render just fine without it in a browser). This means that there is nothing to process the sapx page's code and render out the HTML the browser actually sees, so the code is passed as text to the browser, and that's what you get.

    To address this, go to your Site Settings (You are working in a defined Web site, aren't you? Good.) and, on the Preview tab, set EW to use the Development Server "For all pages." That way the server will be running already when you call your aspx page from the HTML page.

    You may still have issues, but not having a running server won't be one of them. Good luck, and thanks for paying attention. ;-)

    cheers,
    scott


    C'mon, folks. This isn't rocket science, nor neurosurgery. It's "Expression" (singular) "Web" (singular), in that order, followed by a version numeral if you wish to be specific. It is often abbreviated "EW." It is not "Web Expression," "Expressions Web," "Web Expressions," or plain "Expression" or "Expressions." Not using the correct name indicates either ignorance or laziness. Most folks would rather avoid the appearance of either.
    Saturday, August 14, 2010 9:10 PM
  • Thanks Scott

    That solved the problem.  I've beem working on this for months, made a lot of progress, digging up most of the answers myself, but that one had me stumped.

    Appreciate the help


    geocoy Expression Web 3.0
    Saturday, August 14, 2010 11:05 PM
  • Just a suggestion, but for the sake of those searching the forum later for the same issue you might want to mark my post as the answer. It will show up as such in the search results, and with a green header/border here in the thread.  ;-)

    cheers,
    scott


    C'mon, folks. This isn't rocket science, nor neurosurgery. It's "Expression" (singular) "Web" (singular), in that order, followed by a version numeral if you wish to be specific. It is often abbreviated "EW." It is not "Web Expression," "Expressions Web," "Web Expressions," or plain "Expression" or "Expressions." Not using the correct name indicates either ignorance or laziness. Most folks would rather avoid the appearance of either.
    Saturday, August 14, 2010 11:26 PM