Showing posts with label writing. Show all posts
Showing posts with label writing. Show all posts

Saturday, March 24, 2012

the development environment is overzealously formatting my html when switching from design

Please tell me there is a way to prevent this annoyance ; - )

I'm into writing perfectly indented html, but the .net dev environment is
being overzealous and messing up my html formatting.

for example, I originally write:

<table>
<tr>
<td>
<asp:label id="lblSuccess" runat="server">
</asp:/label>
</td>
</tr>
</table
then the dev environment switches it to something like:

<table>
<tr>
<td><asp:label id="lblSuccess" runat="server"></asp:/label>
</td></tr></table
I'm running the latest version of .net --version 7.1.3088
I've run through the tools/options and placed the envirionment to do the
least amount of microsoftesque-preemptive formatting.

Please HELP!!! If there is no solution I think I'm gonna code .net stuff in
notepad until I can get a linux, bsd or UNIX job...lol jk. I've been an MS
developer for years!it's a setting in the options of VS....

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com

"Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
news:dTHxc.405$yR5.148@.fe25.usenetserver.com...
> Please tell me there is a way to prevent this annoyance ; - )
> I'm into writing perfectly indented html, but the .net dev environment is
> being overzealous and messing up my html formatting.
> for example, I originally write:
> <table>
> <tr>
> <td>
> <asp:label id="lblSuccess" runat="server">
> </asp:/label>
> </td>
> </tr>
> </table>
> then the dev environment switches it to something like:
> <table>
> <tr>
> <td><asp:label id="lblSuccess" runat="server"></asp:/label>
> </td></tr></table>
>
> I'm running the latest version of .net --version 7.1.3088
> I've run through the tools/options and placed the envirionment to do the
> least amount of microsoftesque-preemptive formatting.
> Please HELP!!! If there is no solution I think I'm gonna code .net stuff
in
> notepad until I can get a linux, bsd or UNIX job...lol jk. I've been an
MS
> developer for years!
which setting? I've tried them all!

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:erCz9AlTEHA.1284@.TK2MSFTNGP10.phx.gbl...
> it's a setting in the options of VS....
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
> "Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
> news:dTHxc.405$yR5.148@.fe25.usenetserver.com...
> > Please tell me there is a way to prevent this annoyance ; - )
> > I'm into writing perfectly indented html, but the .net dev environment
is
> > being overzealous and messing up my html formatting.
> > for example, I originally write:
> > <table>
> > <tr>
> > <td>
> > <asp:label id="lblSuccess" runat="server">
> > </asp:/label>
> > </td>
> > </tr>
> > </table>
> > then the dev environment switches it to something like:
> > <table>
> > <tr>
> > <td><asp:label id="lblSuccess" runat="server"></asp:/label>
> > </td></tr></table>
> > I'm running the latest version of .net --version 7.1.3088
> > I've run through the tools/options and placed the envirionment to do the
> > least amount of microsoftesque-preemptive formatting.
> > Please HELP!!! If there is no solution I think I'm gonna code .net
stuff
> in
> > notepad until I can get a linux, bsd or UNIX job...lol jk. I've been an
> MS
> > developer for years!
Tools
Options
Text Editor
HTML/XML
Format

Try the settings there.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com

"Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
news:_7Jxc.408$yR5.196@.fe25.usenetserver.com...
> which setting? I've tried them all!
>
> "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> news:erCz9AlTEHA.1284@.TK2MSFTNGP10.phx.gbl...
> > it's a setting in the options of VS....
> > --
> > Curt Christianson
> > Owner/Lead Developer, DF-Software
> > Site: http://www.Darkfalz.com
> > Blog: http://blog.Darkfalz.com
> > "Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
> > news:dTHxc.405$yR5.148@.fe25.usenetserver.com...
> > > Please tell me there is a way to prevent this annoyance ; - )
> > > > I'm into writing perfectly indented html, but the .net dev environment
> is
> > > being overzealous and messing up my html formatting.
> > > > for example, I originally write:
> > > > <table>
> > > <tr>
> > > <td>
> > > <asp:label id="lblSuccess" runat="server">
> > > </asp:/label>
> > > </td>
> > > </tr>
> > > </table>
> > > > then the dev environment switches it to something like:
> > > > <table>
> > > <tr>
> > > <td><asp:label id="lblSuccess" runat="server"></asp:/label>
> > > </td></tr></table>
> > > > > I'm running the latest version of .net --version 7.1.3088
> > > I've run through the tools/options and placed the envirionment to do
the
> > > least amount of microsoftesque-preemptive formatting.
> > > > Please HELP!!! If there is no solution I think I'm gonna code .net
> stuff
> > in
> > > notepad until I can get a linux, bsd or UNIX job...lol jk. I've been
an
> > MS
> > > developer for years!
> > >
You are wrong. You are just guessing. Its best not to answer questions
unless you have a specific and tested answer. Please excuse my bluntness.
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:%23pDqTglTEHA.3988@.tk2msftngp13.phx.gbl...
> Tools
> Options
> Text Editor
> HTML/XML
> Format
> Try the settings there.
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
> "Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
> news:_7Jxc.408$yR5.196@.fe25.usenetserver.com...
> > which setting? I've tried them all!
> > "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> > news:erCz9AlTEHA.1284@.TK2MSFTNGP10.phx.gbl...
> > > it's a setting in the options of VS....
> > > > --
> > > Curt Christianson
> > > Owner/Lead Developer, DF-Software
> > > Site: http://www.Darkfalz.com
> > > Blog: http://blog.Darkfalz.com
> > > > > "Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
> > > news:dTHxc.405$yR5.148@.fe25.usenetserver.com...
> > > > Please tell me there is a way to prevent this annoyance ; - )
> > > > > > I'm into writing perfectly indented html, but the .net dev
environment
> > is
> > > > being overzealous and messing up my html formatting.
> > > > > > for example, I originally write:
> > > > > > <table>
> > > > <tr>
> > > > <td>
> > > > <asp:label id="lblSuccess" runat="server">
> > > > </asp:/label>
> > > > </td>
> > > > </tr>
> > > > </table>
> > > > > > then the dev environment switches it to something like:
> > > > > > <table>
> > > > <tr>
> > > > <td><asp:label id="lblSuccess" runat="server"></asp:/label>
> > > > </td></tr></table>
> > > > > > > > I'm running the latest version of .net --version 7.1.3088
> > > > I've run through the tools/options and placed the envirionment to do
> the
> > > > least amount of microsoftesque-preemptive formatting.
> > > > > > Please HELP!!! If there is no solution I think I'm gonna code .net
> > stuff
> > > in
> > > > notepad until I can get a linux, bsd or UNIX job...lol jk. I've
been
> an
> > > MS
> > > > developer for years!
> > > > > > > >
it's a setting in the options of VS....

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com

"Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
news:dTHxc.405$yR5.148@.fe25.usenetserver.com...
> Please tell me there is a way to prevent this annoyance ; - )
> I'm into writing perfectly indented html, but the .net dev environment is
> being overzealous and messing up my html formatting.
> for example, I originally write:
> <table>
> <tr>
> <td>
> <asp:label id="lblSuccess" runat="server">
> </asp:/label>
> </td>
> </tr>
> </table>
> then the dev environment switches it to something like:
> <table>
> <tr>
> <td><asp:label id="lblSuccess" runat="server"></asp:/label>
> </td></tr></table>
>
> I'm running the latest version of .net --version 7.1.3088
> I've run through the tools/options and placed the envirionment to do the
> least amount of microsoftesque-preemptive formatting.
> Please HELP!!! If there is no solution I think I'm gonna code .net stuff
in
> notepad until I can get a linux, bsd or UNIX job...lol jk. I've been an
MS
> developer for years!
which setting? I've tried them all!

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:erCz9AlTEHA.1284@.TK2MSFTNGP10.phx.gbl...
> it's a setting in the options of VS....
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
> "Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
> news:dTHxc.405$yR5.148@.fe25.usenetserver.com...
> > Please tell me there is a way to prevent this annoyance ; - )
> > I'm into writing perfectly indented html, but the .net dev environment
is
> > being overzealous and messing up my html formatting.
> > for example, I originally write:
> > <table>
> > <tr>
> > <td>
> > <asp:label id="lblSuccess" runat="server">
> > </asp:/label>
> > </td>
> > </tr>
> > </table>
> > then the dev environment switches it to something like:
> > <table>
> > <tr>
> > <td><asp:label id="lblSuccess" runat="server"></asp:/label>
> > </td></tr></table>
> > I'm running the latest version of .net --version 7.1.3088
> > I've run through the tools/options and placed the envirionment to do the
> > least amount of microsoftesque-preemptive formatting.
> > Please HELP!!! If there is no solution I think I'm gonna code .net
stuff
> in
> > notepad until I can get a linux, bsd or UNIX job...lol jk. I've been an
> MS
> > developer for years!
Yeah, whatever you say.

PLONK - Killfile

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com

"Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
news:6IJxc.410$yR5.204@.fe25.usenetserver.com...
> You are wrong. You are just guessing. Its best not to answer questions
> unless you have a specific and tested answer. Please excuse my bluntness.
> "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> news:%23pDqTglTEHA.3988@.tk2msftngp13.phx.gbl...
> > Tools
> > Options
> > Text Editor
> > HTML/XML
> > Format
> > Try the settings there.
> > --
> > Curt Christianson
> > Owner/Lead Developer, DF-Software
> > Site: http://www.Darkfalz.com
> > Blog: http://blog.Darkfalz.com
> > "Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
> > news:_7Jxc.408$yR5.196@.fe25.usenetserver.com...
> > > which setting? I've tried them all!
> > > > > "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> > > news:erCz9AlTEHA.1284@.TK2MSFTNGP10.phx.gbl...
> > > > it's a setting in the options of VS....
> > > > > > --
> > > > Curt Christianson
> > > > Owner/Lead Developer, DF-Software
> > > > Site: http://www.Darkfalz.com
> > > > Blog: http://blog.Darkfalz.com
> > > > > > > > "Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
> > > > news:dTHxc.405$yR5.148@.fe25.usenetserver.com...
> > > > > Please tell me there is a way to prevent this annoyance ; - )
> > > > > > > > I'm into writing perfectly indented html, but the .net dev
> environment
> > > is
> > > > > being overzealous and messing up my html formatting.
> > > > > > > > for example, I originally write:
> > > > > > > > <table>
> > > > > <tr>
> > > > > <td>
> > > > > <asp:label id="lblSuccess" runat="server">
> > > > > </asp:/label>
> > > > > </td>
> > > > > </tr>
> > > > > </table>
> > > > > > > > then the dev environment switches it to something like:
> > > > > > > > <table>
> > > > > <tr>
> > > > > <td><asp:label id="lblSuccess"
runat="server"></asp:/label>
> > > > > </td></tr></table>
> > > > > > > > > > > I'm running the latest version of .net --version 7.1.3088
> > > > > I've run through the tools/options and placed the envirionment to
do
> > the
> > > > > least amount of microsoftesque-preemptive formatting.
> > > > > > > > Please HELP!!! If there is no solution I think I'm gonna code
..net
> > > stuff
> > > > in
> > > > > notepad until I can get a linux, bsd or UNIX job...lol jk. I've
> been
> > an
> > > > MS
> > > > > developer for years!
> > > > > > > > > > > > > > > >
Tools
Options
Text Editor
HTML/XML
Format

Try the settings there.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com

"Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
news:_7Jxc.408$yR5.196@.fe25.usenetserver.com...
> which setting? I've tried them all!
>
> "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> news:erCz9AlTEHA.1284@.TK2MSFTNGP10.phx.gbl...
> > it's a setting in the options of VS....
> > --
> > Curt Christianson
> > Owner/Lead Developer, DF-Software
> > Site: http://www.Darkfalz.com
> > Blog: http://blog.Darkfalz.com
> > "Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
> > news:dTHxc.405$yR5.148@.fe25.usenetserver.com...
> > > Please tell me there is a way to prevent this annoyance ; - )
> > > > I'm into writing perfectly indented html, but the .net dev environment
> is
> > > being overzealous and messing up my html formatting.
> > > > for example, I originally write:
> > > > <table>
> > > <tr>
> > > <td>
> > > <asp:label id="lblSuccess" runat="server">
> > > </asp:/label>
> > > </td>
> > > </tr>
> > > </table>
> > > > then the dev environment switches it to something like:
> > > > <table>
> > > <tr>
> > > <td><asp:label id="lblSuccess" runat="server"></asp:/label>
> > > </td></tr></table>
> > > > > I'm running the latest version of .net --version 7.1.3088
> > > I've run through the tools/options and placed the envirionment to do
the
> > > least amount of microsoftesque-preemptive formatting.
> > > > Please HELP!!! If there is no solution I think I'm gonna code .net
> stuff
> > in
> > > notepad until I can get a linux, bsd or UNIX job...lol jk. I've been
an
> > MS
> > > developer for years!
> > >
You are wrong. You are just guessing. Its best not to answer questions
unless you have a specific and tested answer. Please excuse my bluntness.
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:%23pDqTglTEHA.3988@.tk2msftngp13.phx.gbl...
> Tools
> Options
> Text Editor
> HTML/XML
> Format
> Try the settings there.
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
> "Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
> news:_7Jxc.408$yR5.196@.fe25.usenetserver.com...
> > which setting? I've tried them all!
> > "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> > news:erCz9AlTEHA.1284@.TK2MSFTNGP10.phx.gbl...
> > > it's a setting in the options of VS....
> > > > --
> > > Curt Christianson
> > > Owner/Lead Developer, DF-Software
> > > Site: http://www.Darkfalz.com
> > > Blog: http://blog.Darkfalz.com
> > > > > "Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
> > > news:dTHxc.405$yR5.148@.fe25.usenetserver.com...
> > > > Please tell me there is a way to prevent this annoyance ; - )
> > > > > > I'm into writing perfectly indented html, but the .net dev
environment
> > is
> > > > being overzealous and messing up my html formatting.
> > > > > > for example, I originally write:
> > > > > > <table>
> > > > <tr>
> > > > <td>
> > > > <asp:label id="lblSuccess" runat="server">
> > > > </asp:/label>
> > > > </td>
> > > > </tr>
> > > > </table>
> > > > > > then the dev environment switches it to something like:
> > > > > > <table>
> > > > <tr>
> > > > <td><asp:label id="lblSuccess" runat="server"></asp:/label>
> > > > </td></tr></table>
> > > > > > > > I'm running the latest version of .net --version 7.1.3088
> > > > I've run through the tools/options and placed the envirionment to do
> the
> > > > least amount of microsoftesque-preemptive formatting.
> > > > > > Please HELP!!! If there is no solution I think I'm gonna code .net
> > stuff
> > > in
> > > > notepad until I can get a linux, bsd or UNIX job...lol jk. I've
been
> an
> > > MS
> > > > developer for years!
> > > > > > > >
See the problem is that you acted like you know the answer, so now a
microsoft employee monitoring this board will assume that my question was
answered. At the bottom of my initial post I mentioned I had already run
through the tools /options. of VS and put them all on settings that do the
least amount of work.

Nothing against you personally, but please don't give unspecific answers
that don't work. That diminishes the quality of the board for the rest of
us. Also be sure to read the full thread before answering. If you'd have
done that in this case, you'd have known that even your third attempt to
answer was inadequate. Were you such a pain in the a## to your teachers when
you were in school--always wanting cheap credit for rushing to give the
obvious answer that all the other students knew, but not exactly what the
teacher asked for?

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:eZMpnCmTEHA.3420@.TK2MSFTNGP12.phx.gbl...
> Yeah, whatever you say.
> PLONK - Killfile
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
> "Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
> news:6IJxc.410$yR5.204@.fe25.usenetserver.com...
> > You are wrong. You are just guessing. Its best not to answer questions
> > unless you have a specific and tested answer. Please excuse my
bluntness.
> > "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> > news:%23pDqTglTEHA.3988@.tk2msftngp13.phx.gbl...
> > > Tools
> > > Options
> > > Text Editor
> > > HTML/XML
> > > Format
> > > > Try the settings there.
> > > > --
> > > Curt Christianson
> > > Owner/Lead Developer, DF-Software
> > > Site: http://www.Darkfalz.com
> > > Blog: http://blog.Darkfalz.com
> > > > > "Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
> > > news:_7Jxc.408$yR5.196@.fe25.usenetserver.com...
> > > > which setting? I've tried them all!
> > > > > > > > "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> > > > news:erCz9AlTEHA.1284@.TK2MSFTNGP10.phx.gbl...
> > > > > it's a setting in the options of VS....
> > > > > > > > --
> > > > > Curt Christianson
> > > > > Owner/Lead Developer, DF-Software
> > > > > Site: http://www.Darkfalz.com
> > > > > Blog: http://blog.Darkfalz.com
> > > > > > > > > > > "Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
> > > > > news:dTHxc.405$yR5.148@.fe25.usenetserver.com...
> > > > > > Please tell me there is a way to prevent this annoyance ; - )
> > > > > > > > > > I'm into writing perfectly indented html, but the .net dev
> > environment
> > > > is
> > > > > > being overzealous and messing up my html formatting.
> > > > > > > > > > for example, I originally write:
> > > > > > > > > > <table>
> > > > > > <tr>
> > > > > > <td>
> > > > > > <asp:label id="lblSuccess" runat="server">
> > > > > > </asp:/label>
> > > > > > </td>
> > > > > > </tr>
> > > > > > </table>
> > > > > > > > > > then the dev environment switches it to something like:
> > > > > > > > > > <table>
> > > > > > <tr>
> > > > > > <td><asp:label id="lblSuccess"
> runat="server"></asp:/label>
> > > > > > </td></tr></table>
> > > > > > > > > > > > > > I'm running the latest version of .net --version 7.1.3088
> > > > > > I've run through the tools/options and placed the envirionment
to
> do
> > > the
> > > > > > least amount of microsoftesque-preemptive formatting.
> > > > > > > > > > Please HELP!!! If there is no solution I think I'm gonna code
> .net
> > > > stuff
> > > > > in
> > > > > > notepad until I can get a linux, bsd or UNIX job...lol jk. I've
> > been
> > > an
> > > > > MS
> > > > > > developer for years!
> > > > > > > > > > > > > > > > > > > > > > > > > >
Yeah, whatever you say.

PLONK - Killfile

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com

"Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
news:6IJxc.410$yR5.204@.fe25.usenetserver.com...
> You are wrong. You are just guessing. Its best not to answer questions
> unless you have a specific and tested answer. Please excuse my bluntness.
> "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> news:%23pDqTglTEHA.3988@.tk2msftngp13.phx.gbl...
> > Tools
> > Options
> > Text Editor
> > HTML/XML
> > Format
> > Try the settings there.
> > --
> > Curt Christianson
> > Owner/Lead Developer, DF-Software
> > Site: http://www.Darkfalz.com
> > Blog: http://blog.Darkfalz.com
> > "Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
> > news:_7Jxc.408$yR5.196@.fe25.usenetserver.com...
> > > which setting? I've tried them all!
> > > > > "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> > > news:erCz9AlTEHA.1284@.TK2MSFTNGP10.phx.gbl...
> > > > it's a setting in the options of VS....
> > > > > > --
> > > > Curt Christianson
> > > > Owner/Lead Developer, DF-Software
> > > > Site: http://www.Darkfalz.com
> > > > Blog: http://blog.Darkfalz.com
> > > > > > > > "Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
> > > > news:dTHxc.405$yR5.148@.fe25.usenetserver.com...
> > > > > Please tell me there is a way to prevent this annoyance ; - )
> > > > > > > > I'm into writing perfectly indented html, but the .net dev
> environment
> > > is
> > > > > being overzealous and messing up my html formatting.
> > > > > > > > for example, I originally write:
> > > > > > > > <table>
> > > > > <tr>
> > > > > <td>
> > > > > <asp:label id="lblSuccess" runat="server">
> > > > > </asp:/label>
> > > > > </td>
> > > > > </tr>
> > > > > </table>
> > > > > > > > then the dev environment switches it to something like:
> > > > > > > > <table>
> > > > > <tr>
> > > > > <td><asp:label id="lblSuccess"
runat="server"></asp:/label>
> > > > > </td></tr></table>
> > > > > > > > > > > I'm running the latest version of .net --version 7.1.3088
> > > > > I've run through the tools/options and placed the envirionment to
do
> > the
> > > > > least amount of microsoftesque-preemptive formatting.
> > > > > > > > Please HELP!!! If there is no solution I think I'm gonna code
..net
> > > stuff
> > > > in
> > > > > notepad until I can get a linux, bsd or UNIX job...lol jk. I've
> been
> > an
> > > > MS
> > > > > developer for years!
> > > > > > > > > > > > > > > >
See the problem is that you acted like you know the answer, so now a
microsoft employee monitoring this board will assume that my question was
answered. At the bottom of my initial post I mentioned I had already run
through the tools /options. of VS and put them all on settings that do the
least amount of work.

Nothing against you personally, but please don't give unspecific answers
that don't work. That diminishes the quality of the board for the rest of
us. Also be sure to read the full thread before answering. If you'd have
done that in this case, you'd have known that even your third attempt to
answer was inadequate. Were you such a pain in the a## to your teachers when
you were in school--always wanting cheap credit for rushing to give the
obvious answer that all the other students knew, but not exactly what the
teacher asked for?

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:eZMpnCmTEHA.3420@.TK2MSFTNGP12.phx.gbl...
> Yeah, whatever you say.
> PLONK - Killfile
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
> "Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
> news:6IJxc.410$yR5.204@.fe25.usenetserver.com...
> > You are wrong. You are just guessing. Its best not to answer questions
> > unless you have a specific and tested answer. Please excuse my
bluntness.
> > "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> > news:%23pDqTglTEHA.3988@.tk2msftngp13.phx.gbl...
> > > Tools
> > > Options
> > > Text Editor
> > > HTML/XML
> > > Format
> > > > Try the settings there.
> > > > --
> > > Curt Christianson
> > > Owner/Lead Developer, DF-Software
> > > Site: http://www.Darkfalz.com
> > > Blog: http://blog.Darkfalz.com
> > > > > "Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
> > > news:_7Jxc.408$yR5.196@.fe25.usenetserver.com...
> > > > which setting? I've tried them all!
> > > > > > > > "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> > > > news:erCz9AlTEHA.1284@.TK2MSFTNGP10.phx.gbl...
> > > > > it's a setting in the options of VS....
> > > > > > > > --
> > > > > Curt Christianson
> > > > > Owner/Lead Developer, DF-Software
> > > > > Site: http://www.Darkfalz.com
> > > > > Blog: http://blog.Darkfalz.com
> > > > > > > > > > > "Jacob Crossley" <jacobcrossley@.hotmail.com> wrote in message
> > > > > news:dTHxc.405$yR5.148@.fe25.usenetserver.com...
> > > > > > Please tell me there is a way to prevent this annoyance ; - )
> > > > > > > > > > I'm into writing perfectly indented html, but the .net dev
> > environment
> > > > is
> > > > > > being overzealous and messing up my html formatting.
> > > > > > > > > > for example, I originally write:
> > > > > > > > > > <table>
> > > > > > <tr>
> > > > > > <td>
> > > > > > <asp:label id="lblSuccess" runat="server">
> > > > > > </asp:/label>
> > > > > > </td>
> > > > > > </tr>
> > > > > > </table>
> > > > > > > > > > then the dev environment switches it to something like:
> > > > > > > > > > <table>
> > > > > > <tr>
> > > > > > <td><asp:label id="lblSuccess"
> runat="server"></asp:/label>
> > > > > > </td></tr></table>
> > > > > > > > > > > > > > I'm running the latest version of .net --version 7.1.3088
> > > > > > I've run through the tools/options and placed the envirionment
to
> do
> > > the
> > > > > > least amount of microsoftesque-preemptive formatting.
> > > > > > > > > > Please HELP!!! If there is no solution I think I'm gonna code
> .net
> > > > stuff
> > > > > in
> > > > > > notepad until I can get a linux, bsd or UNIX job...lol jk. I've
> > been
> > > an
> > > > > MS
> > > > > > developer for years!
> > > > > > > > > > > > > > > > > > > > > > > > > >

Thursday, March 22, 2012

The file system has let me down (writing XML directly to the DB)

After months of trying to track down a bug where, randomly, on rare
occasions, our XML files only get half-written from our application, we're
throwing up our hands and moving it into the DB.

So, instead of writing our XML files to the filesystem, I'm just going to
send the XML straight to a field in the DB and just grab it from there when
needed.

I have a few questions regarding that:

- preferred method? Right now, I'm using a FileStream:

Dim fs As New
System.IO.FileStream(System.Web.HttpContext.Curren t.Server.MapPath("/mjb05/rulesXML/"
& Trim(DS.Tables(0).Rows(rowCount)("filename").ToString) & ".xml"),
IO.FileMode.Create, IO.FileAccess.Write, IO.FileShare.Read)

If I'm going to send the text string right to the DB, what should I be
using? Stringbuilder and then just pass the XMLwriter to that?

- caching

One reason we liked the XML was that the server could easily cache it (we
access the XML on each page of our site). And the cache would only update
when the file was updated. If we store it in the database, we'd have to do a
query to see if it's been updated. Is that a big deal? Should we just cache
it every 5 minutes or so? Other preferred method?

-Darrel

--
================================================== ===============
Win prizes searching google:
http://www.blingo.com/friends?ref=h...FnTqhv-2GE1FNtAThus wrote darrel,

> After months of trying to track down a bug where, randomly, on rare
> occasions, our XML files only get half-written from our application,
> we're throwing up our hands and moving it into the DB.
> So, instead of writing our XML files to the filesystem, I'm just going
> to send the XML straight to a field in the DB and just grab it from
> there when needed.
> I have a few questions regarding that:
> - preferred method? Right now, I'm using a FileStream:
> Dim fs As New
> System.IO.FileStream(System.Web.HttpContext.Curren t.Server.MapPath("/m
> jb05/rulesXML/" &
> Trim(DS.Tables(0).Rows(rowCount)("filename").ToString) & ".xml"),
> IO.FileMode.Create, IO.FileAccess.Write, IO.FileShare.Read)
> If I'm going to send the text string right to the DB, what should I be
> using? Stringbuilder and then just pass the XMLwriter to that?

If your database has a native XML datatype and it's supported by its ADO.NET
provider, I'd use that -- one example is SQL Server (Express) 2005. You can
also get away using CLOBs or BLOBs if you don't care about the XML content
at database level (i.e. don't need to search within an XML document). That
should work with any old database.

> - caching
> One reason we liked the XML was that the server could easily cache it
> (we access the XML on each page of our site). And the cache would only
> update when the file was updated. If we store it in the database, we'd
> have to do a query to see if it's been updated. Is that a big deal?
> Should we just cache it every 5 minutes or so? Other preferred method?

Again, SQL Server 2005 comes to the rescue. Using a SqlCacheDependency, you
can easily implement an automatic refresh of your cached objects. See http://msdn.microsoft.com/library/d...otification.asp.

You can also emulate this feature using database triggers in other databases.

Cheers,
--
Joerg Jooss
news-reply@.joergjooss.de

The file system has let me down (writing XML directly to the DB)

After months of trying to track down a bug where, randomly, on rare
occasions, our XML files only get half-written from our application, we're
throwing up our hands and moving it into the DB.
So, instead of writing our XML files to the filesystem, I'm just going to
send the XML straight to a field in the DB and just grab it from there when
needed.
I have a few questions regarding that:
- preferred method? Right now, I'm using a FileStream:
Dim fs As New
System.IO.FileStream(System.Web.HttpContext.Current.Server.MapPath("/mjb05/r
ulesXML/"
& Trim(DS.Tables(0).Rows(rowCount)("filename").ToString) & ".xml"),
IO.FileMode.Create, IO.FileAccess.Write, IO.FileShare.Read)
If I'm going to send the text string right to the DB, what should I be
using? Stringbuilder and then just pass the XMLwriter to that?
- caching
One reason we liked the XML was that the server could easily cache it (we
access the XML on each page of our site). And the cache would only update
when the file was updated. If we store it in the database, we'd have to do a
query to see if it's been updated. Is that a big deal? Should we just cache
it every 5 minutes or so? Other preferred method?
-Darrel
========================================
=========================
Win prizes searching google:
http://www.blingo.com/friends?ref=h...FnTqhv-2GE1FNtAThus wrote darrel,

> After months of trying to track down a bug where, randomly, on rare
> occasions, our XML files only get half-written from our application,
> we're throwing up our hands and moving it into the DB.
> So, instead of writing our XML files to the filesystem, I'm just going
> to send the XML straight to a field in the DB and just grab it from
> there when needed.
> I have a few questions regarding that:
> - preferred method? Right now, I'm using a FileStream:
> Dim fs As New
> System.IO.FileStream(System.Web.HttpContext.Current.Server.MapPath("/m
> jb05/rulesXML/" &
> Trim(DS.Tables(0).Rows(rowCount)("filename").ToString) & ".xml"),
> IO.FileMode.Create, IO.FileAccess.Write, IO.FileShare.Read)
> If I'm going to send the text string right to the DB, what should I be
> using? Stringbuilder and then just pass the XMLwriter to that?
If your database has a native XML datatype and it's supported by its ADO.NET
provider, I'd use that -- one example is SQL Server (Express) 2005. You can
also get away using CLOBs or BLOBs if you don't care about the XML content
at database level (i.e. don't need to search within an XML document). That
should work with any old database.

> - caching
> One reason we liked the XML was that the server could easily cache it
> (we access the XML on each page of our site). And the cache would only
> update when the file was updated. If we store it in the database, we'd
> have to do a query to see if it's been updated. Is that a big deal?
> Should we just cache it every 5 minutes or so? Other preferred method?
Again, SQL Server 2005 comes to the rescue. Using a SqlCacheDependency, you
can easily implement an automatic refresh of your cached objects. See http://msdn.
microsoft.com/l...on
.asp.
You can also emulate this feature using database triggers in other databases
.
Cheers,
--
Joerg Jooss
news-reply@.joergjooss.de