yaniv Posted November 17, 2003 Posted November 17, 2003 I moving my working web from asp to asp.NET, but i can't do it at ones. can i include template files in my .NET project? how do i add the folder? (i just can't find the way to copy exist folder to the solution!). What the regular way to make templates in .NET? with thanks. Quote
*Experts* mutant Posted November 17, 2003 *Experts* Posted November 17, 2003 This thread might help you with templates. http://www.xtremedotnettalk.com/showthread.php?s=&threadid=78721 Quote
Moderators Robby Posted November 18, 2003 Moderators Posted November 18, 2003 To add an existing folder you can copy it into the root of your project then in the solution explorer click on "Show All", you will now see your folder (a bit faded), right-click and "Include in Solution". Quote Visit...Bassic Software
yaniv Posted November 18, 2003 Author Posted November 18, 2003 I"m sorry to admit i could't understand the exmple. where do i find the templates there? Quote
Moderators Robby Posted November 18, 2003 Moderators Posted November 18, 2003 In my sample project, the template is the Base class, and any page that inherits it will derive all of its' methods and properties. Perhaps you would feel more comfortable creating a User Control (Composite), it is easier to start with. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcompositecontrolsample.asp Quote Visit...Bassic Software
yaniv Posted November 18, 2003 Author Posted November 18, 2003 May be i didn't made my self clear. i do know to create user control, but what I meant is so: My asp web has upper and right menus (you can see it in http://www.shoresh.org.il, although it is in Hebrew, so I don't think you will understand a lot �º ). I want to move it to .NET piece by piece, begging from the search engine (because I think dataset's will be more powerful tool for it). I am looking for way to include these upper and right menus in the .aspx pages. Can I do it? Yaniv Quote
Moderators Robby Posted November 18, 2003 Moderators Posted November 18, 2003 Believe me Templates is what you need, that's actualy part of what my sample demonstrates. I removed menus from the sample in order to simplify it. All you need to do is create an html table for your layout, I'm sure you already have that in place now. Take that layout and stratigicaly place it in the base class. Quote Visit...Bassic Software
yaniv Posted November 20, 2003 Author Posted November 20, 2003 When i try to open the sample, i allways gets a lot of error masseges like "can't find "init" class" and so. can it be the sample doesn't have the baseclass? i can't run it and see what it mean. some thing missing for me. Quote
Moderators Robby Posted November 21, 2003 Moderators Posted November 21, 2003 Did you copy the unzipped folder into your wwwRoot directory and create a virtual directory for "bassicdemotemplatingasppages" ? Quote Visit...Bassic Software
yaniv Posted November 22, 2003 Author Posted November 22, 2003 yes, when it didn't worked, i opened new project via the visual studio, and then copiyed all the files from the sample to that folder (clicking "yes to all" to the override question.) Quote
yaniv Posted December 14, 2003 Author Posted December 14, 2003 o.k. now i have it running well, it is running without any error massege. i tryed to add my own webform and to inherite it. it is running with errors (which took me a long time), but i can't see nothing in it!! the text dosen't appear in there. it is a problem! yaniv Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.