How to make an ASHX template?

C

Carol

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?
 
C

Carol

I found the answer myself.

I guess it is a bug of VS2005, it works all fine in VS2008
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top