>
>c:\inetpub\wwwroot\ostermeyer\Templates\template.ascx
>Description: An unhandled exception occurred during the execution of the
>current web request. Please review the stack trace for more information
>about the error and where it originated in the code.
>
>Exception Details: System.IO.FileNotFoundException:
>c:\inetpub\wwwroot\ostermeyer\Templates\template.ascx
>
>Source Error:
>
>
>Line 36:                       // In /Templates liegt die Hauptseite
>Line 37:                       try {
>Line 38:
>plcContent.Controls.Add(Page.LoadControl("Templates/template.ascx"));
>Line 39:                       } catch (Exception ex) {
>Line 40:                               Label myLabel = new Label();
>

wenn ich das richtig verstanden habe, liegt die Seite im
gleichen Verzeichnis wie das Template. Dann mußt Du
entweder .LoadControl("/Templates/template.ascx"))
oder .LoadControl("template.ascx")) verwenden.

Oder ich habs falsch verstanden.

Gruss

Alex

_______________________________________________
Asp.net mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/asp.net

Antwort per Email an