I found the answer myself. I guess it is a bug of VS2005, it works all fine in VS2008
On Apr 7, 4:36 pm, Carol <[email protected]> wrote: > Hi, > > I just discovered that I could make C# file as a template, then I > don't need to paste those copyright info/History/Create Date again > when I create a new class. > > But I tried to create a ASHX with .ashx.cs as code behind file. I put > some template parameters in the ASHX file > <%@ WebHandler Language="C#" CodeBehind="$safeitemname$.ashx.cs" > Class="$rootnamespace$.$safeitemname$" %> > > And export this ASHX as a template. But when I use this template to > create a new item, I just found the template paramenters are lefted in > the newly created ASHX file without being replaced, while the > parameters in the .ashx.cs file are replaced correctly. > > Could anyone tell me how to solve this problem?
