473,386 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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

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
4 3473
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
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
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> ¼¶¼g©ó¶l¥ó·s»D: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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mike Bird | last post by:
I have an XML document that contains the xsi:noNamespaceSchemaLocation attribute giving the location of the XSD file to use for validating it. I created an XmlReader on the XML file. I then...
6
by: Wito | last post by:
hi, I want to backup database (db2, aix 5.1) using script. When I exec script logging to user db2inst1 then is everything ok, but from cron, I get these error: SQL10007N Message "-1390" could...
3
by: Daniel Billingsley | last post by:
Today I went to compile a solution I've been working on for months. I've been off most of the last few months, so there's been a gap in the work, but I did compile it a few times earlier this...
3
by: nan | last post by:
Hi All, I am trying to connect the Database which is installed in AS400 using DB2 Client Version 8 in Windows box. First i created the Catalog, then when i selected the connection type...
9
by: Anubhav Jain | last post by:
Hi, I am having few .net source files(.cs or .vb) and I want to dynamically generate the corresponding .net project file(.csproj or .vbproj) for them without using visual studio.So that I could...
5
by: dave | last post by:
If I have a class that hold, for instance, user settings that should be accessible to the entire program logic, what is a good paradigm to use? In C++, I would have made it a global object,...
10
by: vunet.us | last post by:
What is the workaround of passign a parameter to any included asp file: <!-- #Include File="file.asp" --> This obviously does not work: <!-- #Include File="file.asp?id=123" --> Thank you
9
by: Roger Withnell | last post by:
I am building a website in Russian. What options do I have to make the "Browse" button display in other languages? Thanking you in anticipation. Posted Via Usenet.com Premium Usenet...
3
by: Jack | last post by:
Hi there, In a submit button event, I need to open a (server-side) file relative to the folder containing the ".aspx" file. What's the correct way to locate the ".aspx" folder itself inside my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.