Automatically Insert Code into each New Webform

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I don't think this is possible, but wanted to check anyways. I have the
following line of code in the Page_Load() event of every webform within as
asp.net project...

Dim GiftPurchase As AccountingLogic.Detroit.GiftPurchase

Is there anyway I can have this automatically appear for each new webform I
create, so I don't have to keep typing it? Thanks.
 
Only be creating a template for the form you are creating, but if this is
the only change you have to repeadedly make then its probably not worth the
effort. Most people just copy and paste a page then rename the classes and
the inherits statement in the HTML page directive and thats it.
 
Back
Top