472,970 Members | 1,281 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,970 software developers and data experts.

Shift the webform files into a new folder within a particular project

I have sample Asp.Net Web Application project.
Let me know how to keep the files related to this project (like the
webform.aspx, WebForm1.aspx.vb, WebForm1.aspx.resx) in a separate folder
within a project and what all setting will I be required to do So that my
original project works.

Can I keep WebForm1.aspx in root and code behind file in a folder within the
project folder?

Thanks in advance.
Nov 21 '05 #1
8 1994
1.) If you create a simple one form ASP.NET project and put a label on it,
and in the page load event, assign Hello World to the label, ad check it
works OK.

2.) Create a Folder called Code

3.) Drag the WebForm1.aspx.vb and resource files to the new folder, and
rebuild the project, check this works Ok again.

4.) Alter the message to "Ive been moved" and note where the source files is
opened.

5. Recompile and test again.
Thats it. ASP.NET keeps a check of where its source files are in the
structure.

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"vinesh" <vi*****@visitomega.com> wrote in message
news:u8**************@TK2MSFTNGP14.phx.gbl...
I have sample Asp.Net Web Application project.
Let me know how to keep the files related to this project (like the
webform.aspx, WebForm1.aspx.vb, WebForm1.aspx.resx) in a separate folder
within a project and what all setting will I be required to do So that my
original project works.

Can I keep WebForm1.aspx in root and code behind file in a folder within
the
project folder?

Thanks in advance.

Nov 21 '05 #2
I would like to manage my aspx and code behind files separately.
Instead of shifting the aspx along with its code behind file in a folder, I
would like to keep the aspx file on root of the project folder and its code
behind file in separate folder.

Since I could not see the code behind file in the Solution Explorer of the
Dot Net IDE, let me know how can I keep the code behind file in a separate
folder that contains the aspx file.
Regards
Vinesh

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:OS**************@tk2msftngp13.phx.gbl...
1.) If you create a simple one form ASP.NET project and put a label on it,
and in the page load event, assign Hello World to the label, ad check it
works OK.

2.) Create a Folder called Code

3.) Drag the WebForm1.aspx.vb and resource files to the new folder, and
rebuild the project, check this works Ok again.

4.) Alter the message to "Ive been moved" and note where the source files is opened.

5. Recompile and test again.
Thats it. ASP.NET keeps a check of where its source files are in the
structure.

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"vinesh" <vi*****@visitomega.com> wrote in message
news:u8**************@TK2MSFTNGP14.phx.gbl...
I have sample Asp.Net Web Application project.
Let me know how to keep the files related to this project (like the
webform.aspx, WebForm1.aspx.vb, WebForm1.aspx.resx) in a separate folder
within a project and what all setting will I be required to do So that my original project works.

Can I keep WebForm1.aspx in root and code behind file in a folder within
the
project folder?

Thanks in advance.


Nov 21 '05 #3
Well you didnt read my post then. Note I refer to the Webform1.aspx.VB not
Webform1.aspx
3.) Drag the WebForm1.aspx.vb and resource files to the new folder, and
rebuild the project, check this works Ok again.
HTH

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"vinesh" <vi*****@visitomega.com> wrote in message
news:ua**************@TK2MSFTNGP12.phx.gbl...
I would like to manage my aspx and code behind files separately.
Instead of shifting the aspx along with its code behind file in a folder,
I
would like to keep the aspx file on root of the project folder and its
code
behind file in separate folder.

Since I could not see the code behind file in the Solution Explorer of the
Dot Net IDE, let me know how can I keep the code behind file in a separate
folder that contains the aspx file.
Regards
Vinesh

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in
message
news:OS**************@tk2msftngp13.phx.gbl...
1.) If you create a simple one form ASP.NET project and put a label on
it,
and in the page load event, assign Hello World to the label, ad check it
works OK.

2.) Create a Folder called Code

3.) Drag the WebForm1.aspx.vb and resource files to the new folder, and
rebuild the project, check this works Ok again.

4.) Alter the message to "Ive been moved" and note where the source files

is
opened.

5. Recompile and test again.
Thats it. ASP.NET keeps a check of where its source files are in the
structure.

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"vinesh" <vi*****@visitomega.com> wrote in message
news:u8**************@TK2MSFTNGP14.phx.gbl...
>I have sample Asp.Net Web Application project.
> Let me know how to keep the files related to this project (like the
> webform.aspx, WebForm1.aspx.vb, WebForm1.aspx.resx) in a separate
> folder
> within a project and what all setting will I be required to do So that

my > original project works.
>
> Can I keep WebForm1.aspx in root and code behind file in a folder
> within
> the
> project folder?
>
> Thanks in advance.
>
>



Nov 21 '05 #4
Click the 'Show All Files' Icon on the Toolbar in Solution Explorer to
reveal all files in the project.

HTH

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:Og**************@tk2msftngp13.phx.gbl...
Well you didnt read my post then. Note I refer to the Webform1.aspx.VB not
Webform1.aspx
3.) Drag the WebForm1.aspx.vb and resource files to the new folder, and
rebuild the project, check this works Ok again.


HTH

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"vinesh" <vi*****@visitomega.com> wrote in message
news:ua**************@TK2MSFTNGP12.phx.gbl...
I would like to manage my aspx and code behind files separately.
Instead of shifting the aspx along with its code behind file in a folder,
I
would like to keep the aspx file on root of the project folder and its
code
behind file in separate folder.

Since I could not see the code behind file in the Solution Explorer of
the
Dot Net IDE, let me know how can I keep the code behind file in a
separate
folder that contains the aspx file.
Regards
Vinesh

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in
message
news:OS**************@tk2msftngp13.phx.gbl...
1.) If you create a simple one form ASP.NET project and put a label on
it,
and in the page load event, assign Hello World to the label, ad check it
works OK.

2.) Create a Folder called Code

3.) Drag the WebForm1.aspx.vb and resource files to the new folder, and
rebuild the project, check this works Ok again.

4.) Alter the message to "Ive been moved" and note where the source
files

is
opened.

5. Recompile and test again.
Thats it. ASP.NET keeps a check of where its source files are in the
structure.

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"vinesh" <vi*****@visitomega.com> wrote in message
news:u8**************@TK2MSFTNGP14.phx.gbl...
>I have sample Asp.Net Web Application project.
> Let me know how to keep the files related to this project (like the
> webform.aspx, WebForm1.aspx.vb, WebForm1.aspx.resx) in a separate
> folder
> within a project and what all setting will I be required to do So that

my
> original project works.
>
> Can I keep WebForm1.aspx in root and code behind file in a folder
> within
> the
> project folder?
>
> Thanks in advance.
>
>



Nov 21 '05 #5
Thanks it worked.
-Regards
Vinesh

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:ub**************@TK2MSFTNGP09.phx.gbl...
Click the 'Show All Files' Icon on the Toolbar in Solution Explorer to
reveal all files in the project.

HTH

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message news:Og**************@tk2msftngp13.phx.gbl...
Well you didnt read my post then. Note I refer to the Webform1.aspx.VB not Webform1.aspx
3.) Drag the WebForm1.aspx.vb and resource files to the new folder, and rebuild the project, check this works Ok again.


HTH

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"vinesh" <vi*****@visitomega.com> wrote in message
news:ua**************@TK2MSFTNGP12.phx.gbl...
I would like to manage my aspx and code behind files separately.
Instead of shifting the aspx along with its code behind file in a folder, I
would like to keep the aspx file on root of the project folder and its
code
behind file in separate folder.

Since I could not see the code behind file in the Solution Explorer of
the
Dot Net IDE, let me know how can I keep the code behind file in a
separate
folder that contains the aspx file.
Regards
Vinesh

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in
message
news:OS**************@tk2msftngp13.phx.gbl...
1.) If you create a simple one form ASP.NET project and put a label on
it,
and in the page load event, assign Hello World to the label, ad check it works OK.

2.) Create a Folder called Code

3.) Drag the WebForm1.aspx.vb and resource files to the new folder, and rebuild the project, check this works Ok again.

4.) Alter the message to "Ive been moved" and note where the source
files
is
opened.

5. Recompile and test again.
Thats it. ASP.NET keeps a check of where its source files are in the
structure.

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"vinesh" <vi*****@visitomega.com> wrote in message
news:u8**************@TK2MSFTNGP14.phx.gbl...
>I have sample Asp.Net Web Application project.
> Let me know how to keep the files related to this project (like the
> webform.aspx, WebForm1.aspx.vb, WebForm1.aspx.resx) in a separate
> folder
> within a project and what all setting will I be required to do So that my
> original project works.
>
> Can I keep WebForm1.aspx in root and code behind file in a folder
> within
> the
> project folder?
>
> Thanks in advance.
>
>



Nov 21 '05 #6
Glad 2 be of assistance

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"vinesh" <vi*****@visitomega.com> wrote in message
news:u0**************@TK2MSFTNGP12.phx.gbl...
Thanks it worked.
-Regards
Vinesh

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in
message
news:ub**************@TK2MSFTNGP09.phx.gbl...
Click the 'Show All Files' Icon on the Toolbar in Solution Explorer to
reveal all files in the project.

HTH

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in

message
news:Og**************@tk2msftngp13.phx.gbl...
> Well you didnt read my post then. Note I refer to the Webform1.aspx.VB not > Webform1.aspx
>
>>> 3.) Drag the WebForm1.aspx.vb and resource files to the new folder, and >>> rebuild the project, check this works Ok again.
>
> HTH
>
> --
> OHM ( Terry Burns ) * Use the following to email me *
>
> Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
> For i As Int32 = 0 To ch.Length - 1
> ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
> Next
> Process.Start("mailto:" & New String(ch))
> --
>
>
> "vinesh" <vi*****@visitomega.com> wrote in message
> news:ua**************@TK2MSFTNGP12.phx.gbl...
>>I would like to manage my aspx and code behind files separately.
>> Instead of shifting the aspx along with its code behind file in a folder, >> I
>> would like to keep the aspx file on root of the project folder and its
>> code
>> behind file in separate folder.
>>
>> Since I could not see the code behind file in the Solution Explorer of
>> the
>> Dot Net IDE, let me know how can I keep the code behind file in a
>> separate
>> folder that contains the aspx file.
>> Regards
>> Vinesh
>>
>> "One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in
>> message
>> news:OS**************@tk2msftngp13.phx.gbl...
>>> 1.) If you create a simple one form ASP.NET project and put a label
>>> on
>>> it,
>>> and in the page load event, assign Hello World to the label, ad check it >>> works OK.
>>>
>>> 2.) Create a Folder called Code
>>>
>>> 3.) Drag the WebForm1.aspx.vb and resource files to the new folder, and >>> rebuild the project, check this works Ok again.
>>>
>>> 4.) Alter the message to "Ive been moved" and note where the source
>>> files
>> is
>>> opened.
>>>
>>> 5. Recompile and test again.
>>>
>>>
>>> Thats it. ASP.NET keeps a check of where its source files are in the
>>> structure.
>>>
>>> --
>>> OHM ( Terry Burns ) * Use the following to email me *
>>>
>>> Dim ch() As Char =
>>> "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
>>> For i As Int32 = 0 To ch.Length - 1
>>> ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
>>> Next
>>> Process.Start("mailto:" & New String(ch))
>>> --
>>>
>>>
>>> "vinesh" <vi*****@visitomega.com> wrote in message
>>> news:u8**************@TK2MSFTNGP14.phx.gbl...
>>> >I have sample Asp.Net Web Application project.
>>> > Let me know how to keep the files related to this project (like the
>>> > webform.aspx, WebForm1.aspx.vb, WebForm1.aspx.resx) in a separate
>>> > folder
>>> > within a project and what all setting will I be required to do So that >> my
>>> > original project works.
>>> >
>>> > Can I keep WebForm1.aspx in root and code behind file in a folder
>>> > within
>>> > the
>>> > project folder?
>>> >
>>> > Thanks in advance.
>>> >
>>> >
>>>
>>>
>>
>>
>
>



Nov 21 '05 #7
It is working fine.

I have some more points to clarify

1. I created a new project containing a webform and its code behind file. I
dragged the code behind file to a new folder in Solution Explorer. On
running the project, it works fine. I then closed the project and opened it
again. It gives a error
"The class file webform1.aspx.vb specified as the codebehind for the
webform1.aspx file could not be loaded"

I changed the codebehind attribute to set it to the new folder I have
created and saved it.
I closed the project.
Again opened it and clicked on webform1.aspx file to edit it.
This doesn't open the file instead it gives the same error as above.
I also noticed that the codebehind attribute is set to root instead of the
new folder.
At this stage, I again set the codebehind to the new folder.
To my surprise now it doesn't allow me to edit the aspx page and gives the
above error.
Is there any other setting I require to change?
Please let me know.
2. Also in a fresh project, if I shift the code behind file to a new folder
and then clicked the view code button from the solution Explorer then it
creates a new code behind file in the root of the project.
However, if I double click on the webform page, then it opens the code
behind file that we shifted to the new folder.
There seems to be some more settings?
Please let me know what are those?

Thanks in advance

-Regards
Vinesh

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:Ox**************@TK2MSFTNGP12.phx.gbl...
Glad 2 be of assistance

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"vinesh" <vi*****@visitomega.com> wrote in message
news:u0**************@TK2MSFTNGP12.phx.gbl...
Thanks it worked.
-Regards
Vinesh

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in
message
news:ub**************@TK2MSFTNGP09.phx.gbl...
Click the 'Show All Files' Icon on the Toolbar in Solution Explorer to
reveal all files in the project.

HTH

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in

message
news:Og**************@tk2msftngp13.phx.gbl...
> Well you didnt read my post then. Note I refer to the Webform1.aspx.VB
not
> Webform1.aspx
>
>>> 3.) Drag the WebForm1.aspx.vb and resource files to the new folder,

and
>>> rebuild the project, check this works Ok again.
>
> HTH
>
> --
> OHM ( Terry Burns ) * Use the following to email me *
>
> Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
> For i As Int32 = 0 To ch.Length - 1
> ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
> Next
> Process.Start("mailto:" & New String(ch))
> --
>
>
> "vinesh" <vi*****@visitomega.com> wrote in message
> news:ua**************@TK2MSFTNGP12.phx.gbl...
>>I would like to manage my aspx and code behind files separately.
>> Instead of shifting the aspx along with its code behind file in a

folder,
>> I
>> would like to keep the aspx file on root of the project folder and
its >> code
>> behind file in separate folder.
>>
>> Since I could not see the code behind file in the Solution Explorer of >> the
>> Dot Net IDE, let me know how can I keep the code behind file in a
>> separate
>> folder that contains the aspx file.
>> Regards
>> Vinesh
>>
>> "One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in
>> message
>> news:OS**************@tk2msftngp13.phx.gbl...
>>> 1.) If you create a simple one form ASP.NET project and put a label
>>> on
>>> it,
>>> and in the page load event, assign Hello World to the label, ad check it
>>> works OK.
>>>
>>> 2.) Create a Folder called Code
>>>
>>> 3.) Drag the WebForm1.aspx.vb and resource files to the new folder,

and
>>> rebuild the project, check this works Ok again.
>>>
>>> 4.) Alter the message to "Ive been moved" and note where the source
>>> files
>> is
>>> opened.
>>>
>>> 5. Recompile and test again.
>>>
>>>
>>> Thats it. ASP.NET keeps a check of where its source files are in

the >>> structure.
>>>
>>> --
>>> OHM ( Terry Burns ) * Use the following to email me *
>>>
>>> Dim ch() As Char =
>>> "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
>>> For i As Int32 = 0 To ch.Length - 1
>>> ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
>>> Next
>>> Process.Start("mailto:" & New String(ch))
>>> --
>>>
>>>
>>> "vinesh" <vi*****@visitomega.com> wrote in message
>>> news:u8**************@TK2MSFTNGP14.phx.gbl...
>>> >I have sample Asp.Net Web Application project.
>>> > Let me know how to keep the files related to this project (like the >>> > webform.aspx, WebForm1.aspx.vb, WebForm1.aspx.resx) in a separate
>>> > folder
>>> > within a project and what all setting will I be required to do So

that
>> my
>>> > original project works.
>>> >
>>> > Can I keep WebForm1.aspx in root and code behind file in a folder
>>> > within
>>> > the
>>> > project folder?
>>> >
>>> > Thanks in advance.
>>> >
>>> >
>>>
>>>
>>
>>
>
>



Nov 21 '05 #8
I dont think you can do this on reflection. I cant find anyway to make this
happen

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I have 2 leave for the day but will look at this later

Regards

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"vinesh" <vi*****@visitomega.com> wrote in message
news:eW**************@tk2msftngp13.phx.gbl...
It is working fine.

I have some more points to clarify

1. I created a new project containing a webform and its code behind file.
I
dragged the code behind file to a new folder in Solution Explorer. On
running the project, it works fine. I then closed the project and opened
it
again. It gives a error
"The class file webform1.aspx.vb specified as the codebehind for the
webform1.aspx file could not be loaded"

I changed the codebehind attribute to set it to the new folder I have
created and saved it.
I closed the project.
Again opened it and clicked on webform1.aspx file to edit it.
This doesn't open the file instead it gives the same error as above.
I also noticed that the codebehind attribute is set to root instead of
the
new folder.
At this stage, I again set the codebehind to the new folder.
To my surprise now it doesn't allow me to edit the aspx page and gives
the
above error.
Is there any other setting I require to change?
Please let me know.
2. Also in a fresh project, if I shift the code behind file to a new
folder
and then clicked the view code button from the solution Explorer then it
creates a new code behind file in the root of the project.
However, if I double click on the webform page, then it opens the code
behind file that we shifted to the new folder.
There seems to be some more settings?
Please let me know what are those?

Thanks in advance

-Regards
Vinesh

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in
message
news:Ox**************@TK2MSFTNGP12.phx.gbl...
Glad 2 be of assistance

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"vinesh" <vi*****@visitomega.com> wrote in message
news:u0**************@TK2MSFTNGP12.phx.gbl...
> Thanks it worked.
> -Regards
> Vinesh
>
> "One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in
> message
> news:ub**************@TK2MSFTNGP09.phx.gbl...
>> Click the 'Show All Files' Icon on the Toolbar in Solution Explorer
>> to
>> reveal all files in the project.
>>
>> HTH
>>
>> --
>> OHM ( Terry Burns ) * Use the following to email me *
>>
>> Dim ch() As Char =
>> "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
>> For i As Int32 = 0 To ch.Length - 1
>> ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
>> Next
>> Process.Start("mailto:" & New String(ch))
>> --
>>
>>
>> "One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in
> message
>> news:Og**************@tk2msftngp13.phx.gbl...
>> > Well you didnt read my post then. Note I refer to the

Webform1.aspx.VB
> not
>> > Webform1.aspx
>> >
>> >>> 3.) Drag the WebForm1.aspx.vb and resource files to the new
>> >>> folder,
> and
>> >>> rebuild the project, check this works Ok again.
>> >
>> > HTH
>> >
>> > --
>> > OHM ( Terry Burns ) * Use the following to email me *
>> >
>> > Dim ch() As Char =
>> > "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
>> > For i As Int32 = 0 To ch.Length - 1
>> > ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
>> > Next
>> > Process.Start("mailto:" & New String(ch))
>> > --
>> >
>> >
>> > "vinesh" <vi*****@visitomega.com> wrote in message
>> > news:ua**************@TK2MSFTNGP12.phx.gbl...
>> >>I would like to manage my aspx and code behind files separately.
>> >> Instead of shifting the aspx along with its code behind file in a
> folder,
>> >> I
>> >> would like to keep the aspx file on root of the project folder and

its
>> >> code
>> >> behind file in separate folder.
>> >>
>> >> Since I could not see the code behind file in the Solution
>> >> Explorer

of
>> >> the
>> >> Dot Net IDE, let me know how can I keep the code behind file in a
>> >> separate
>> >> folder that contains the aspx file.
>> >> Regards
>> >> Vinesh
>> >>
>> >> "One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote
>> >> in
>> >> message
>> >> news:OS**************@tk2msftngp13.phx.gbl...
>> >>> 1.) If you create a simple one form ASP.NET project and put a
>> >>> label
>> >>> on
>> >>> it,
>> >>> and in the page load event, assign Hello World to the label, ad

check
> it
>> >>> works OK.
>> >>>
>> >>> 2.) Create a Folder called Code
>> >>>
>> >>> 3.) Drag the WebForm1.aspx.vb and resource files to the new
>> >>> folder,
> and
>> >>> rebuild the project, check this works Ok again.
>> >>>
>> >>> 4.) Alter the message to "Ive been moved" and note where the
>> >>> source
>> >>> files
>> >> is
>> >>> opened.
>> >>>
>> >>> 5. Recompile and test again.
>> >>>
>> >>>
>> >>> Thats it. ASP.NET keeps a check of where its source files are in

the
>> >>> structure.
>> >>>
>> >>> --
>> >>> OHM ( Terry Burns ) * Use the following to email me *
>> >>>
>> >>> Dim ch() As Char =
>> >>> "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
>> >>> For i As Int32 = 0 To ch.Length - 1
>> >>> ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
>> >>> Next
>> >>> Process.Start("mailto:" & New String(ch))
>> >>> --
>> >>>
>> >>>
>> >>> "vinesh" <vi*****@visitomega.com> wrote in message
>> >>> news:u8**************@TK2MSFTNGP14.phx.gbl...
>> >>> >I have sample Asp.Net Web Application project.
>> >>> > Let me know how to keep the files related to this project (like

the
>> >>> > webform.aspx, WebForm1.aspx.vb, WebForm1.aspx.resx) in a
>> >>> > separate
>> >>> > folder
>> >>> > within a project and what all setting will I be required to do
>> >>> > So
> that
>> >> my
>> >>> > original project works.
>> >>> >
>> >>> > Can I keep WebForm1.aspx in root and code behind file in a
>> >>> > folder
>> >>> > within
>> >>> > the
>> >>> > project folder?
>> >>> >
>> >>> > Thanks in advance.
>> >>> >
>> >>> >
>> >>>
>> >>>
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 21 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: MAK | last post by:
Hello everyone, I know how to add images and icons etc to dll file. What I would like to know is there is a way to add those icons on the forms during the run time from the dll or to reference it ...
6
by: J P Singh | last post by:
We have a department who scans a lot of pictures for each project they work on and then emails them out to about 100 odd users within the company. This causes lots of problems hence we decided to...
7
by: Chuck Bowling | last post by:
I'm doing something wrong... not quite sure what... I got a basic web forms page built and running inside the IDE per ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/vbcon/html/vbwlkWalkthroughCr...
4
by: aaj | last post by:
Hi all I have a group of files that I store independently in a temporary folder on the c: drive. Typical things are ini files, bitmaps, icons etc. All access to the files is hardcoded within my...
2
by: Jon Booth | last post by:
I am using ascx controls to build headers and footers for my wbe application. 3 questions 1) How do I set it so that when I create a new web form created inherits from my SecurePage class and...
2
by: AAJ | last post by:
Hi all I have a few questions about file locations with VS2005, localhost WidowsXP and remotehost Server2003, and I wonder if anyone can help me get started 1) If I build a web site on my...
0
by: tommaso.gastaldi | last post by:
I have a solution with 1 project on which I am working on say Pr1 I have another solution with another project, say Pr2. Source file in the existing Pr2 are organized within several nested...
5
by: wwwmike | last post by:
I have an asp.net 2.0 application where I move about 200,000 text files daily in and out. When using VS 2005 to debug my application everything works find if only a few files are in the folder....
2
by: Max2006 | last post by:
Hi, After I right-click on my web application project file and choose "Publish ." and do the publishing, the result publishable files does not include the *.ashx files. Is it by design? How...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.