﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum / StrataFrame Application Framework / WebForms (How do I?)  / Where's applicationbasepage and how do I set up a web project? / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Thu, 20 Nov 2008 10:48:26 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Where's applicationbasepage and how do I set up a web project?</title><link>http://forum.strataframe.net/Topic4956-8-1.aspx</link><description>:hehe: Yeah...I've actually been a member of that "club" for quite a while now....I just keep learning what a big club that it is :) .  Anyway, I am glad to help ;)</description><pubDate>Fri, 08 Dec 2006 07:39:22 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Where's applicationbasepage and how do I set up a web project?</title><link>http://forum.strataframe.net/Topic4956-8-1.aspx</link><description>Gracias, Amigo!&lt;P&gt;Burning some midnight oil, I see...  But, hey, might as well be part of the biggest club in the world :crazy:.  Gives a whole new meaning to "clubbing", too... :blink:&lt;P&gt;Thanks again -- this will take me much further on my journey into the new StrataSpeheres...&lt;P&gt;&lt;BR&gt;Pertti</description><pubDate>Thu, 07 Dec 2006 23:54:41 GMT</pubDate><dc:creator>Pertti Karjalainen</dc:creator></item><item><title>RE: Where's applicationbasepage and how do I set up a web project?</title><link>http://forum.strataframe.net/Topic4956-8-1.aspx</link><description>Pertti,&lt;/P&gt;&lt;P&gt;Below is a link to the CSharp web sample that has been converted from the VB.Net web sample.  This should give you more than enough to see how to layout a StrataFrame web site.  I hope this gets you going ;)&lt;/P&gt;&lt;P&gt;&lt;A href="http://forum.strataframe.net/FindPost5109.aspx"&gt;http://forum.strataframe.net/FindPost5109.aspx&lt;/A&gt; </description><pubDate>Thu, 07 Dec 2006 20:34:11 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Where's applicationbasepage and how do I set up a web project?</title><link>http://forum.strataframe.net/Topic4956-8-1.aspx</link><description>Well, maybe it's just me, but I can't get the C# clone of the VB app going.  Doesn't populate the controls on my web page, although it doesn't throw any errors, either.  Nor does the debugger seem to step through the code where population is supposed to happen.  Dunno.&lt;/P&gt;&lt;P&gt;Pertt</description><pubDate>Thu, 07 Dec 2006 16:03:56 GMT</pubDate><dc:creator>Pertti Karjalainen</dc:creator></item><item><title>RE: Where's applicationbasepage and how do I set up a web project?</title><link>http://forum.strataframe.net/Topic4956-8-1.aspx</link><description>The C# sample is the same as the VB, but just in C# code.  So this should give you plenty to look at to get you going.</description><pubDate>Thu, 07 Dec 2006 13:40:42 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Where's applicationbasepage and how do I set up a web project?</title><link>http://forum.strataframe.net/Topic4956-8-1.aspx</link><description>Thanks!  This will be most helpful.  As soon as possible, if there was even a quick and simple example on creating a C# web project from the beginning to the end with setup, databinding and up the the finished application that we could actually run on our computers and study the code &amp;amp; settings, that would be great.&lt;P&gt;Can't wait...  :pinch:&lt;P&gt; &lt;P&gt;Pertti</description><pubDate>Thu, 07 Dec 2006 13:36:40 GMT</pubDate><dc:creator>Pertti Karjalainen</dc:creator></item><item><title>RE: Where's applicationbasepage and how do I set up a web project?</title><link>http://forum.strataframe.net/Topic4956-8-1.aspx</link><description>We are in the process of converting all of our VB samples to C#.  These will all be included in the next update, but we will post them on the forum as they come available.  We will move the website sample up on the list and we will let you know when it is available on the forum.  This should get you going.  Thanks.</description><pubDate>Thu, 07 Dec 2006 13:08:38 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Where's applicationbasepage and how do I set up a web project?</title><link>http://forum.strataframe.net/Topic4956-8-1.aspx</link><description>Ben:&lt;P&gt;Since this is an ASP app I don't have access to events from the property sheet...  I tried all kinds of things with the base page and my default page, but the debugger just won't cooperate, which means the page load code doesn't run for some god-awful reason...&lt;/P&gt;&lt;P&gt;Would it be possible to see a complete C# web app all the way through databinding etc. and to a ready-to-run project.  The step-by-step instructions above stopped short of that kind of completion, and I suppose I am not the only one struggling with the C# web apps using StrataFrame, since there is no walk-throughs for that.  The VB web sample walkthrough is great, but given the differences between the two languages it isn't all &lt;EM&gt;that&lt;/EM&gt; much help when trying to get a sample app up and running in C#.  I feel like I'm spinning my wheels unnecessarily here because of the lack of C# tutorials/walkthroughs.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Pertti&lt;/P&gt;&lt;P&gt;[quote][b]Ben Chase (12/07/2006)[/b][hr]With VB, there is a little "Handles" keyword at the end of an event handler that tells the compiler to add the handler to the event.  However, within C#, there is no such thing... it must be done within the designer file.  Your best be would be to open the page and go to the Design view where you can visually build the page.  View the property sheet for the page and you will see a button at the top of the property sheet that will show you the events.  In the Load event, you need to type the name of your method that is handling the load event.&lt;/P&gt;&lt;P&gt;I think you can also add the code within the page directive within the markup file... but I'm not sure.[/quote]</description><pubDate>Thu, 07 Dec 2006 13:01:36 GMT</pubDate><dc:creator>Pertti Karjalainen</dc:creator></item><item><title>RE: Where's applicationbasepage and how do I set up a web project?</title><link>http://forum.strataframe.net/Topic4956-8-1.aspx</link><description>With VB, there is a little "Handles" keyword at the end of an event handler that tells the compiler to add the handler to the event.  However, within C#, there is no such thing... it must be done within the designer file.  Your best be would be to open the page and go to the Design view where you can visually build the page.  View the property sheet for the page and you will see a button at the top of the property sheet that will show you the events.  In the Load event, you need to type the name of your method that is handling the load event.&lt;/P&gt;&lt;P&gt;I think you can also add the code within the page directive within the markup file... but I'm not sure.</description><pubDate>Thu, 07 Dec 2006 09:25:37 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>RE: Where's applicationbasepage and how do I set up a web project?</title><link>http://forum.strataframe.net/Topic4956-8-1.aspx</link><description>Well, I managed to brake something on my dinky website, and it is probably something very simple and my mistake.  But I can't figure it out.  I followed the step by step above, but when I tried to set a breakpoint at my default page on_load event where I load data.  However, the debugger it never stops there, it acts as if the page load code never even executes.  As a result the data field on the browser window doesn't get populated.  I can set a breakpoint at page_load in your VB Web sample app just fine, of course...&lt;P&gt;Below are pictures of my dev. environment at the breakpoint as well as the browser &amp;#119;indow.  Any help would be appreciated.  By me...&lt;/P&gt;&lt;P&gt;Code:&lt;BR&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/00c5fe47-323d-48d5-9d5c-c766.jpg"&gt;&lt;/P&gt;&lt;P&gt;Solution Explorer:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/da91b050-2e57-4967-b717-4455.jpg"&gt;&lt;/P&gt;&lt;P&gt;web page:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/9e82cf80-1abb-4450-8608-1c7f.jpg"&gt;</description><pubDate>Wed, 06 Dec 2006 15:21:09 GMT</pubDate><dc:creator>Pertti Karjalainen</dc:creator></item><item><title>RE: Where's applicationbasepage and how do I set up a web project?</title><link>http://forum.strataframe.net/Topic4956-8-1.aspx</link><description>That is certainly one way to look at it :)  And, yes, in the IT industry, there is something new to learn every day.</description><pubDate>Wed, 06 Dec 2006 13:32:43 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>RE: Where's applicationbasepage and how do I set up a web project?</title><link>http://forum.strataframe.net/Topic4956-8-1.aspx</link><description>That did the trick!&lt;P&gt;And thanks for the step-by-step, because of which I now have my first dinky Strataframe -based website up and running (against VFP data, nevertheless).  Where did I put that bottle of Dom Perignon now...   Oh, I forgot, I think I drank it last night about 2 am out of frustration...  &lt;/P&gt;&lt;P&gt;How many times does one have to feel like a grunt and a beginner yet again in one's life?  To me this is time number 130,245...  But, hey, maybe it's just one way to keep the old man Alzheimer at bay   :unsure:&lt;/P&gt;&lt;P&gt;Pertti</description><pubDate>Wed, 06 Dec 2006 11:25:08 GMT</pubDate><dc:creator>Pertti Karjalainen</dc:creator></item><item><title>RE: Where's applicationbasepage and how do I set up a web project?</title><link>http://forum.strataframe.net/Topic4956-8-1.aspx</link><description>Well, I have never seen the SF Windows templates in that view.  It appears that the Windows Forms templates are in your web folder.  How this happened I have no idea.  Look in the following location:&lt;/P&gt;&lt;P&gt;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ProjectTemplates\Web\CSharp&lt;/P&gt;&lt;P&gt;You should have a zip file in this folder named SF_WebApplication.zip.&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/2dff4c86-c4c3-4e58-8463-9058.jpg"&gt;&lt;/P&gt;&lt;P&gt;If you do, the close all of your Visual Studio instances and type the following command in the "run" window or at the command prompt:&lt;/P&gt;&lt;P&gt;"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" /setup&lt;/P&gt;&lt;P&gt;Go back into VS2005 and see if the template then exists.  If not we will have to dig a little deeper.</description><pubDate>Tue, 05 Dec 2006 17:50:02 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Where's applicationbasepage and how do I set up a web project?</title><link>http://forum.strataframe.net/Topic4956-8-1.aspx</link><description>Unfortunately I don't see those templates when I open a new website.  I wonder if my Visual Studio 2005 installation is hosed...  This is what I see:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/4ea55ae8-d62c-4185-98e9-a7e6.jpg"&gt;</description><pubDate>Tue, 05 Dec 2006 17:43:23 GMT</pubDate><dc:creator>Pertti Karjalainen</dc:creator></item><item><title>RE: Where's applicationbasepage and how do I set up a web project?</title><link>http://forum.strataframe.net/Topic4956-8-1.aspx</link><description>You are going to want to create a new WebSite instead of a new project and you will see the template.&lt;UL&gt;&lt;LI&gt;Open VS2005&lt;/LI&gt;&lt;LI&gt;Click File -&amp;gt; New -&amp;gt; Website &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This will present the following screen&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/1d4c4a77-56c1-47c9-bd77-2e2a.jpg"&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Make sure that you choose your desired langauge (C# in this case)&lt;/LI&gt;&lt;LI&gt;Name your website and then click OK&lt;/LI&gt;&lt;LI&gt;This will create the basic structure of a website. &lt;/LI&gt;&lt;LI&gt;Next, you are going to want to add another project to your solution (if you do not already have one) which is your Business Object Library.  DO NOT CREATE business objects within the web site, this will just cause you some frustrations as ASP.NET projects treat components differently that a class library project.&lt;/LI&gt;&lt;LI&gt;To add a new class library, right click the solution and then click Add -&amp;gt; New Project.&lt;/LI&gt;&lt;LI&gt;Open the C# -&amp;gt; StrataFrame options on the left and then  choose a BO class library project&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/5c5a58f9-9cf0-40f1-8aae-8d61.jpg"&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Name the project to your liking and then click OK.&lt;/LI&gt;&lt;LI&gt;Delete the existing BO (Businessobject1) and add your first BO to the library (right-click on the BO project and then click Add -&amp;gt; New Item and then select the SF Business Object.&lt;/LI&gt;&lt;LI&gt;Once you have your class library setup, you will need to add a reference to the website so it can see the business objects.  To do this, right-click the website project and then go to Add Reference.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/f0f626d3-cfd0-473f-8bbc-c8b1.jpg"&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You can now reference BOs in your website.&lt;/LI&gt;&lt;LI&gt;To add a website BO, you will open up a base page (at this point you will only have one).  Under the App_Code folder open the ApplicationBasepage.cs file.  You will see a region here called Business Object Declarations.  This is where you will declare your BO.  Any page that inherits this base page will then be able to see and bind to that BO.  Below is a sample BO declaration, it is slightly different in C# than VB.Net and requires that a property be created.  Once this is done you will be able to bind just as though in a WinForm.  Note: You may need to build your solution before this step.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;[codesnippet]private SampleBOLibrary.CustomersBO _Customers;&lt;BR&gt;    public SampleBOLibrary.CustomersBO Customers&lt;BR&gt;    {&lt;BR&gt;        get { return _Customers; }&lt;BR&gt;        set { _Customers = value; }&lt;BR&gt;    }[/codesnippet]&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Open up the Default.aspx page and drop on a StrataFrame text box.&lt;/LI&gt;&lt;LI&gt;Go to the BusinessObjectName property and set it to your BO (Customers in this case)&lt;/LI&gt;&lt;LI&gt;Next, select the binding field on the BindingField property.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Business Objects&lt;BR&gt;&lt;/STRONG&gt;To learn more about the BO Mapper go through the WinForms tutorial, even though the help is for VB, I am confident that you will able to work through the sample in C#.  The BOs are the exact same for web as they are for WinForms.  Additionally, there is a lot of documentation as it relates to the BO Mapper and the business objects.  This should get you going in this department.  Obviously you can post any questions you have in regards to this on the forum.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Attached is the sample I created to write this post.</description><pubDate>Tue, 05 Dec 2006 13:29:00 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Where's applicationbasepage and how do I set up a web project?</title><link>http://forum.strataframe.net/Topic4956-8-1.aspx</link><description>OK, I can't get anywhere with my web application efforts without some help from you guys.  I see no web templates when I try to create a new web site, I have no clue as to how to even begin to go about this.  Could be that I am locked in the MM.NET mindset.  Could be that my installation is not complete.  Could be that some documentation would help.  FYI, I am able to create Windows apps following the videos, but web apps with strataframe are a blank page for me.&lt;P&gt;So, call me clueless...:doze:</description><pubDate>Tue, 05 Dec 2006 12:12:38 GMT</pubDate><dc:creator>Pertti Karjalainen</dc:creator></item><item><title>Where's applicationbasepage and how do I set up a web project?</title><link>http://forum.strataframe.net/Topic4956-8-1.aspx</link><description>I have tried to study and follow the SF VB web sample project, but since I am using C# and am kinda new to Strataframe and there seems to be no actual documentation on how to do this stuff step by step, I would like to know how one goes about setting up a web application, or at least the basic "infrastructure" of it (basepage, CSS, etc.)  Step-by-step instructions would be great.&lt;P&gt;I assume Business Objects and the BO functionality are exactly the same between web and windows apps, no?&lt;/P&gt;&lt;P&gt;Pertti</description><pubDate>Tue, 05 Dec 2006 11:43:57 GMT</pubDate><dc:creator>Pertti Karjalainen</dc:creator></item></channel></rss>