all groups > asp.net webcontrols > february 2008 >
You're in the

asp.net webcontrols

group:

WebControl adding files to project


Re: WebControl adding files to project Phil H
2/29/2008 11:37:19 AM
asp.net webcontrols:
[quoted text, click to view]

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.

WebControl adding files to project Tim Parker-Nance
2/29/2008 5:01:14 PM
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

Re: WebControl adding files to project Tim Parker-Nance
3/3/2008 9:09:03 AM
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?

[quoted text, click to view]

AddThis Social Bookmark Button