By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,310 Members | 1,430 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,310 IT Pros & Developers. It's quick & easy.

Where is the settings for "place code in separate file"

P: n/a
Hi
When I New a web site, the default coding
model is code-separation. I can uncheck
the "place code in separate file" checkbox when
I add a new WebForm, and VS2005 will remember
this setting.

I'm wondering where does VS2005 store the
settings for "place code in separate file"?

I searched my harddisk but coundn't find it.
Anyone know the answer?

Thanks!
Dec 27 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
When you check the box "place code in separate file", this will create a
code-behind file for you. For example, if your ASPX file is webform.aspx
and you're using C#, then your code-behind file will be webform.aspx.cs.

When you uncheck this box, there is no code-behind file. It is expected
that you will be using a server script block for your coding within the ASPX
file.

Hope this helps!
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Michael" <hu**********@gmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi
When I New a web site, the default coding
model is code-separation. I can uncheck
the "place code in separate file" checkbox when
I add a new WebForm, and VS2005 will remember
this setting.

I'm wondering where does VS2005 store the
settings for "place code in separate file"?

I searched my harddisk but coundn't find it.
Anyone know the answer?

Thanks!

Dec 27 '05 #2

P: n/a
In the registry somewhere under the
HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/8.0 node collection

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Michael" <hu**********@gmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi
When I New a web site, the default coding
model is code-separation. I can uncheck
the "place code in separate file" checkbox when
I add a new WebForm, and VS2005 will remember
this setting.

I'm wondering where does VS2005 store the
settings for "place code in separate file"?

I searched my harddisk but coundn't find it.
Anyone know the answer?

Thanks!

Dec 27 '05 #3

P: n/a
I use RegMon.exe (http://www.sysinternals.com/Utilities/Regmon.html)
to find the registry key, but still couldn't find it :(
"Mark Fitzpatrick" <ma******@fitzme.com> glsD:ef**************@TK2MSFTNGP09.phx.g bl...
In the registry somewhere under the
HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/8.0 node collection

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Michael" <hu**********@gmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi
When I New a web site, the default coding
model is code-separation. I can uncheck
the "place code in separate file" checkbox when
I add a new WebForm, and VS2005 will remember
this setting.

I'm wondering where does VS2005 store the
settings for "place code in separate file"?

I searched my harddisk but coundn't find it.
Anyone know the answer?

Thanks!


Dec 27 '05 #4

P: n/a
Ok, I got it!
It's not in registry. It is in the file Attributes.xml located in
Documents and Settings\<USER>\Local Settings\Application Data\
Microsoft\WebsiteCache\

Look WebSites.xml first, find the folder for the Web site, then
view the Attributes.xml in that folder and find "subtype" attributes.
In the registry somewhere under the
HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/8.0 node collection

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Michael" <hu**********@gmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...

Dec 27 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.