473,549 Members | 2,455 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Store Item Template with Project

CMM
Is there a way to create an "item template" (File | Export Template) where
it is only available to the current project? I mean, a lot of the time (most
of the time I would say) "item templates" only make sense in the project
they were created in... and not have them pollute the generic "Add New Item"
dialog box for projects where they make no sense.

--
-C. Moya
www.cmoya.com
Apr 17 '06 #1
2 2128
AFAIK no. What I do sometimes is to create a small add-in that adds a new
"Add" \ "My ProjectItem" menu, and I could even enable or disable that menu
based on the current project name or kind.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
"CMM" <cm*@nospam.com > escribió en el mensaje
news:ui******** ******@TK2MSFTN GP04.phx.gbl...
Is there a way to create an "item template" (File | Export Template) where
it is only available to the current project? I mean, a lot of the time
(most of the time I would say) "item templates" only make sense in the
project they were created in... and not have them pollute the generic "Add
New Item" dialog box for projects where they make no sense.

--
-C. Moya
www.cmoya.com

Apr 18 '06 #2
CMM
What I've been doing is simply keeping a "template" page in my asp.net
project and copying and pasting it and then renaming it.... but, the painful
thing is that refactoring in asp.net is totally broken. Renaming a an aspx
file doesn't rename anything else.... and right-click/rename the code-behind
class, doesn't rename the the "inherits" value in the aspx file.

You can get everything to work in a just a few seconds.... but, it's not as
nice and clean as just doing "Add New Item"

--
-C. Moya
www.cmoya.com
"Carlos J. Quintero [VB MVP]" <ca*****@NOSPAM sogecable.com> wrote in message
news:Ou******** ********@TK2MSF TNGP04.phx.gbl. ..
AFAIK no. What I do sometimes is to create a small add-in that adds a new
"Add" \ "My ProjectItem" menu, and I could even enable or disable that
menu based on the current project name or kind.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
"CMM" <cm*@nospam.com > escribió en el mensaje
news:ui******** ******@TK2MSFTN GP04.phx.gbl...
Is there a way to create an "item template" (File | Export Template)
where it is only available to the current project? I mean, a lot of the
time (most of the time I would say) "item templates" only make sense in
the project they were created in... and not have them pollute the generic
"Add New Item" dialog box for projects where they make no sense.

--
-C. Moya
www.cmoya.com


Apr 18 '06 #3

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

Similar topics

0
1210
by: trevor | last post by:
When i load visual basic.net and select File - Add new item to an existing or a new project i receive the above error. I receive this with the windows form template and the data wizard template for example. Does anyone know why this problem occurs. I have only just purchased, registered and installed my copy of visual basic.net 2003 standard I...
0
1110
by: Mark | last post by:
I'm trying to port the asp.net unleashed sample store from SQLServer to Access. I have it all do, execpt when I try and add something to the cart I geet this error: Exception Details: System.InvalidOperationException: OleDbCommand.Prepare method requires all parameters to have an explicitly set type. Source Error: Line 37:
2
1065
by: CMM | last post by:
Is there a way to create an "item template" (File | Export Template) where it is only available to the current project? I mean, a lot of the time (most of the time I would say) "item templates" only make sense in the project they were created in... and not have them pollute the generic "Add New Item" dialog box for projects where they make no...
4
1561
by: Ranginald | last post by:
Hi, I am generally new to OOP and in learning and writing code I have developed many of my own reusable methods. A. What is the best way to store these methods for easy reuse later? I was thinking: 1. Word document (e.g. create a "code reference book") 2. create .DLLs to store related methods
0
981
by: Gabriele | last post by:
For didactical purposes I'm trying to create a C Template Item (an empty *.c file) (the header template file is already included) and a C empty project with all the settings to allow only C programming. Following the instructions of some articles I read, i should be able to export my template item by selecting a c file I previously created...
3
2342
by: Michael Slattery | last post by:
Hello, I see quite a few questions, but no valid responses to the question... How do I store an ArrayList of items in a Properties file via the GUI? I am able to select the System.Collections.ArrayList type, but I'm unable to determine what to type into the Value feild for a default setting so the property will not be null at runtime...
2
16858
by: Jerod Hatley | last post by:
when I try to add two controls to an item template, I cannot figure out how to keep them on a single line. the functionality is just fine but how do I get the controls to render on a single line? No matter the width of the template column width, they alyways render in seperate lines which alters the row height. thank you in advance ...
3
6418
by: Elmo Watson | last post by:
I previously had a project working, in which the Gridview was populated by a DataSet - then, with a DropDownlist in one of the columns, using the OnrowDataBound event, to populate the DDL with the correct item in the returned data, I had : myDDL.SelectedValue = IIf(IsDBNull(MyDataSet.Rows(e.Row.RowIndex).Item("Fieldname")), vbNullString,...
2
1833
by: kanepart2 | last post by:
Hey all , I wanted to create a project or item template in C# such that when I use that template a parameter wizard comes up asking for values. I know how to create the template without implementing the wizard, i.e., work the parameter replacement using the <CustomParameterskeyword in XML. So any hints or suggestions towards the procedure...
0
7467
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7736
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7982
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7500
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5110
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3494
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1961
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1079
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
783
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.