WebControl adding files to project

T

Tim Parker-Nance

Hi all

I have a web control that generates some files in the folder of the page
that holds the control when the control is designed. The control uses these
files to render itself. This works fine at design time or run time on the
local machine. As soon as I publish there is a problem because these files
are not part of the project and thus not published. If I manually add these
files to the project the problem disappears.

Is there any way I can programmatically add these files to the project when
the web control designer creates them?

Thanks

Tim Parker-Nance
 
P

Phil H

Hi all

I have a web control that generates some files in the folder of the page
that holds the control when the control is designed. The control uses these
files to render itself. This works fine at design time or run time on the
local machine. As soon as I publish there is a problem because these files
are not part of the project and thus not published. If I manually add these
files to the project the problem disappears.

Is there any way I can programmatically add these files to the project when
the web control designer creates them?

Thanks

Tim Parker-Nance

Hi

When you try to run the application on the target server does it throw
any exceptions?

There may be problems to do with write permissions.

Stan
 
T

Tim Parker-Nance

The problem is that the files are not part of the Visual Studio project and
thus are not published and don't end up on the target server. If I manually
copy them to the target server all works fine. If I manually add them to the
project they do get published and end up on the target server.

So I need to programatically add these files to the VS project at design
time.

Any ideas?
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top