I have Folder in Virual Directory and I haven't permissions to put my web application in Main Virual Directory Except in sub folder I haven't permission to Configer it in IIS I can use webform without code-behind... how can use webform with code behind?
When you access a Code-Behind page, ASP.NET will look for a compiled assembly in the "bin" folder under the root of your web. If you have access to the bin subfolder and you can put the assembly that VS.NET compiles there, your site will work. Otherwise, you're
stuck with single-file. Hope this helps, -Scott
This posting is provided "AS IS" with no warranties, and confers no rights.
Thank You For Reply :) I have access to bin subfolder and i can put the assembly that VS.NET compiles there but my web site didn't work and view error in authentication and this Solustion is work 327649 but I don't want Configer my folder to be Virual Directory
I think no way to do that !!!
If you can't make the folder an application in IIS (by changing the configuration), you'll have to use single-file (the code in the same file as the page, in the script tags). In your other post it sounds like you're having trouble importing namespaces in single-file.
(Do you mean that you are referencing another namespace in your code-behind file and you need to figure out how to do that in single-file? If you have something like Imports System.Data (VB) or using System.Data; (C#), you can represent that in an ASPX file
like at the top of the page. Hope this helps. -Scott
This posting is provided "AS IS" with no warranties, and confers no rights.
Ahmed Abu Da...
Participant
1701 Points
295 Posts
Can I use webForms with code behind In Subfolder In Virual Directory?
Sep 04, 2003 04:11 PM|LINK
Scott Louvau
Participant
1347 Points
267 Posts
Microsoft
Re: Can I use webForms with code behind In Subfolder In Virual Directory?
Sep 04, 2003 05:46 PM|LINK
Ahmed Abu Da...
Participant
1701 Points
295 Posts
Re: Can I use webForms with code behind In Subfolder In Virual Directory?
Sep 05, 2003 01:56 PM|LINK
Scott Louvau
Participant
1347 Points
267 Posts
Microsoft
Re: Can I use webForms with code behind In Subfolder In Virual Directory?
Sep 05, 2003 05:57 PM|LINK