473,320 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Boilerplate template doing its own thing?

Joe
Everything works aok, except the code behind "Dataview.cs" does not contain
the prewritten code that is in the template.
It comes out very slimed down without almost all lines in template. Why
does it wrtie it's own version of the code behind?

This is my configuration...

C:\Program Files\Microsoft Visual Studio
..NET\VC#\VC#Wizards\RRPortalCSharpAddWebUserContr ol>dir /s
Volume in drive C is Local Disk
Volume Serial Number is DCDE-5D94

Directory of C:\Program Files\Microsoft Visual Studio
..NET\VC#\VC#Wizards\RRPortalCSharpAddWebUserContr ol

02/16/2004 02:35p <DIR> .
02/16/2004 02:35p <DIR> ..
02/16/2004 02:35p <DIR> Scripts
02/16/2004 02:35p <DIR> Templates
0 File(s) 0 bytes

Directory of C:\Program Files\Microsoft Visual Studio
..NET\VC#\VC#Wizards\RRPortalCSharpAddWebUserContr ol\Scripts

02/16/2004 02:35p <DIR> .
02/16/2004 02:35p <DIR> ..
02/16/2004 02:35p <DIR> 1033
0 File(s) 0 bytes

Directory of C:\Program Files\Microsoft Visual Studio
..NET\VC#\VC#Wizards\RRPortalCSharpAddWebUserContr ol\Scripts\1033

02/16/2004 02:35p <DIR> .
02/16/2004 02:35p <DIR> ..
07/31/2001 05:37p 1,431 default.js
1 File(s) 1,431 bytes

Directory of C:\Program Files\Microsoft Visual Studio
..NET\VC#\VC#Wizards\RRPortalCSharpAddWebUserContr ol\Templates

02/16/2004 02:35p <DIR> .
02/16/2004 02:35p <DIR> ..
02/26/2004 09:33a <DIR> 1033
0 File(s) 0 bytes

Directory of C:\Program Files\Microsoft Visual Studio
..NET\VC#\VC#Wizards\RRPortalCSharpAddWebUserContr ol\Templates\1033

02/26/2004 09:33a <DIR> .
02/26/2004 09:33a <DIR> ..
02/16/2004 03:01p 1,100 DataView.ascx
02/16/2004 03:14p 6,384 DataView.cs
02/26/2004 09:32a 28 templates.inf
3 File(s) 7,512 bytes

Total Files Listed:
4 File(s) 8,943 bytes
14 Dir(s) 33,296,834,560 bytes free
The template.inf looks like this....
DataView.ascx
DataView.cs

The RRPortalCSharpAddWebUserControl.vsz (in the CSharpProjectItems
directory) looks like this:
VSWIZARD 7.0
Wizard=VsWizard.VsWizardEngine
Param="WIZARD_NAME = RRPortalCSharpAddWebUserControl"
Param="WIZARD_UI = FALSE"
Param="PROJECT_TYPE = CSPROJ"

The RRPortal.vsdir ( in a new folder called RRPortal which is a subdir of
VC#\CSharpProjectItems\WebProjectItems\ ) looks like:
...\..\RRPortalCSharpAddWebUserControl.vsz|{FAE04E C1-301F-11d3-BF4B-00C04F79E
FBC}|RRPortalView|55|Add a new reporting View to
Project|{FAE04EC1-301F-11d3-BF4B-00C04F79EFBC}|4558|0|DataView.ascx

Jul 21 '05 #1
4 1377
Hi Joe,

Thanks for your post. I am checking this issue, and I will update you with
my information.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #2
Hello Joe,

As I understand, the problem you are facing is that the code behind of your
template is not added. Please correct me if there is any misunderstanding.
I'd like to share the following information with you:

Based on my expreience and research, the template for the code behind file
resides on the <Program Files>\Microsoft Visual Studio .NET
2003\VC#\DesignerTemplates\1033\ instead of specifying in the template.inf
file. The following article discusses this issue in details, please check
it on your side.

How to build your own ASP.NET templates for VS.NET
http://www.codeproject.com/aspnet/Bu...tTemplates.asp

I am standing by for your result!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #3
Joe
Yes I agree the code behind for .ascx's resides in
....\DesignerTemplates\1033\ .

What if I have two .ascx templates. How do I put two templates there and
distinguish between the two?

Joe
"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:Q0**************@cpmsftngxa06.phx.gbl...
Hello Joe,

As I understand, the problem you are facing is that the code behind of your template is not added. Please correct me if there is any misunderstanding.
I'd like to share the following information with you:

Based on my expreience and research, the template for the code behind file
resides on the <Program Files>\Microsoft Visual Studio .NET
2003\VC#\DesignerTemplates\1033\ instead of specifying in the template.inf
file. The following article discusses this issue in details, please check
it on your side.

How to build your own ASP.NET templates for VS.NET
http://www.codeproject.com/aspnet/Bu...tTemplates.asp

I am standing by for your result!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #4
Or better...

How do I PRESERVE the default .ascx, and add my own custom ascx's?

Yes I agree the code behind for .ascx's resides in
....\DesignerTemplates\1033\ .

Regards,

Joe

"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:Q0**************@cpmsftngxa06.phx.gbl...
Hello Joe,

As I understand, the problem you are facing is that the code behind of your template is not added. Please correct me if there is any misunderstanding.
I'd like to share the following information with you:

Based on my expreience and research, the template for the code behind file
resides on the <Program Files>\Microsoft Visual Studio .NET
2003\VC#\DesignerTemplates\1033\ instead of specifying in the template.inf
file. The following article discusses this issue in details, please check
it on your side.

How to build your own ASP.NET templates for VS.NET
http://www.codeproject.com/aspnet/Bu...tTemplates.asp

I am standing by for your result!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: redog6 | last post by:
When I save my XML file as data the resulting XML includes the boilerplate text of my template. Is the approach to change my custom schema to allow mixed content or is there a way to exclude the...
2
by: dwok | last post by:
Does anyone know of any "boilerplate" template that can be utilized to add/edit/delete information from a database? I am working on an application that does a whole lot of adds, edits, and updates...
4
by: Joe | last post by:
Everything works aok, except the code behind "Dataview.cs" does not contain the prewritten code that is in the template. It comes out very slimed down without almost all lines in template. Why...
10
by: mast2as | last post by:
Is it possible to limit a template class to certain types only. I found a few things on the net but nothing seems to apply at compile time. template <typename T> class AClass { public:...
3
by: mike.arsenault | last post by:
Hello I need some help from anyone that can provide it. Below is a function inside a template collection class that I'm writing. I have a TYPE * that points to an allocated memory location, and...
3
by: n.torrey.pines | last post by:
Hi I work with a nested tree-like data structure template (that happens to be a tuple of vectors of tuples of trees of something, with different tuple elements having different types) I need...
6
by: Gaijinco | last post by:
I'm trying to do a template class Node. My node.hpp is: #ifndef _NODE_HPP_ #define _NODE_HPP_ namespace com { namespace mnya { namespace carlos { template <typename T>
32
by: Stephen Horne | last post by:
I've been using Visual C++ 2003 for some time, and recently started working on making my code compile in GCC and MinGW. I hit on lots of unexpected problems which boil down to the same template...
12
by: nooneinparticular314159 | last post by:
Hello. If I declare the following: template<int a, int b, int SomeArray> class DoSomething{ public: .. .. ..
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.