Showing posts with label building. Show all posts
Showing posts with label building. Show all posts

Monday, March 26, 2012

StringBuilder to Text

Hello, I a m building an email message in a StringBuilder Object and then
using the StringBuilder ToString() method to get it to regular text. It
appears to me that when I place a "\n" into the Stringbuilder object that
when this is translated into text, I loose the page break. Is this true and
I doing something wrong?
I'm guessing that I could insert a special character into the StringBuilder
object and then use the string Replace() method to translate that special
character into a "\n" and perhaps this would work.
Just wondering why it does not work when I place that value into the
StringBuilder Object.
ThanksHow are you noticing that you loose the break? In what context is this
happening?
"Jim Heavey" <JimHeavey@.discussions.microsoft.com> wrote in message
news:1BC14F11-5DBA-4865-9CFB-2881598EB955@.microsoft.com...
> Hello, I a m building an email message in a StringBuilder Object and then
> using the StringBuilder ToString() method to get it to regular text. It
> appears to me that when I place a "\n" into the Stringbuilder object that
> when this is translated into text, I loose the page break. Is this true
> and
> I doing something wrong?
> I'm guessing that I could insert a special character into the
> StringBuilder
> object and then use the string Replace() method to translate that special
> character into a "\n" and perhaps this would work.
> Just wondering why it does not work when I place that value into the
> StringBuilder Object.
> Thanks
Have you considered using Environment.Newline instead of "\n"?
Example:
StringBuilder textBuilder = new StringBuilder(512);
textBuilder.Append("Dear John,");
textBuilder.Append(Environment.Newline)
Perhaps that will help.
carl
"Jim Heavey" <JimHeavey@.discussions.microsoft.com> wrote in message
news:1BC14F11-5DBA-4865-9CFB-2881598EB955@.microsoft.com...
> Hello, I a m building an email message in a StringBuilder Object and then
> using the StringBuilder ToString() method to get it to regular text. It
> appears to me that when I place a "\n" into the Stringbuilder object that
> when this is translated into text, I loose the page break. Is this true
> and
> I doing something wrong?
> I'm guessing that I could insert a special character into the
> StringBuilder
> object and then use the string Replace() method to translate that special
> character into a "\n" and perhaps this would work.
> Just wondering why it does not work when I place that value into the
> StringBuilder Object.
> Thanks
Try Environment.NewLine
Remy
I am loosing the page break when I use the StringBuilder ToString() method
when I am formatting an email message. I will try the Environment.NewLine()
method and see if that retains the line break.
Does the StringBuilder cause the newline disappear, or is it something with
the mail component. What happens if you just set the
StringBuilder.ToString() to a variable and looked at it, is the newline
gone?
"Jim Heavey" <JimHeavey@.discussions.microsoft.com> wrote in message
news:9876DF24-F310-4FDC-826D-D7872576655C@.microsoft.com...
>I am loosing the page break when I use the StringBuilder ToString() method
> when I am formatting an email message. I will try the
> Environment.NewLine()
> method and see if that retains the line break.
>
I assume you are using c?
If you pass "\n" you'll get newline > chr(10)
If you want "\n" you might consider to use "\\n"
(Outlook express mangels this for me, use slash twice)
"Jim Heavey" <JimHeavey@.discussions.microsoft.com> schreef in bericht
news:1BC14F11-5DBA-4865-9CFB-2881598EB955@.microsoft.com...
> Hello, I a m building an email message in a StringBuilder Object and then
> using the StringBuilder ToString() method to get it to regular text. It
> appears to me that when I place a "\n" into the Stringbuilder object that
> when this is translated into text, I loose the page break. Is this true
> and
> I doing something wrong?
> I'm guessing that I could insert a special character into the
> StringBuilder
> object and then use the string Replace() method to translate that special
> character into a "\n" and perhaps this would work.
> Just wondering why it does not work when I place that value into the
> StringBuilder Object.
> Thanks

StringBuilder to Text

Hello, I a m building an email message in a StringBuilder Object and then
using the StringBuilder ToString() method to get it to regular text. It
appears to me that when I place a "\n" into the Stringbuilder object that
when this is translated into text, I loose the page break. Is this true and
I doing something wrong?

I'm guessing that I could insert a special character into the StringBuilder
object and then use the string Replace() method to translate that special
character into a "\n" and perhaps this would work.

Just wondering why it does not work when I place that value into the
StringBuilder Object.

ThanksHow are you noticing that you loose the break? In what context is this
happening?

"Jim Heavey" <JimHeavey@.discussions.microsoft.com> wrote in message
news:1BC14F11-5DBA-4865-9CFB-2881598EB955@.microsoft.com...
> Hello, I a m building an email message in a StringBuilder Object and then
> using the StringBuilder ToString() method to get it to regular text. It
> appears to me that when I place a "\n" into the Stringbuilder object that
> when this is translated into text, I loose the page break. Is this true
> and
> I doing something wrong?
> I'm guessing that I could insert a special character into the
> StringBuilder
> object and then use the string Replace() method to translate that special
> character into a "\n" and perhaps this would work.
> Just wondering why it does not work when I place that value into the
> StringBuilder Object.
> Thanks
Have you considered using Environment.Newline instead of "\n"?

Example:

StringBuilder textBuilder = new StringBuilder(512);
textBuilder.Append("Dear John,");
textBuilder.Append(Environment.Newline)

Perhaps that will help.

carl

"Jim Heavey" <JimHeavey@.discussions.microsoft.com> wrote in message
news:1BC14F11-5DBA-4865-9CFB-2881598EB955@.microsoft.com...
> Hello, I a m building an email message in a StringBuilder Object and then
> using the StringBuilder ToString() method to get it to regular text. It
> appears to me that when I place a "\n" into the Stringbuilder object that
> when this is translated into text, I loose the page break. Is this true
> and
> I doing something wrong?
> I'm guessing that I could insert a special character into the
> StringBuilder
> object and then use the string Replace() method to translate that special
> character into a "\n" and perhaps this would work.
> Just wondering why it does not work when I place that value into the
> StringBuilder Object.
> Thanks
Try Environment.NewLine

Remy
I am loosing the page break when I use the StringBuilder ToString() method
when I am formatting an email message. I will try the Environment.NewLine()
method and see if that retains the line break.
Does the StringBuilder cause the newline disappear, or is it something with
the mail component. What happens if you just set the
StringBuilder.ToString() to a variable and looked at it, is the newline
gone?

"Jim Heavey" <JimHeavey@.discussions.microsoft.com> wrote in message
news:9876DF24-F310-4FDC-826D-D7872576655C@.microsoft.com...
>I am loosing the page break when I use the StringBuilder ToString() method
> when I am formatting an email message. I will try the
> Environment.NewLine()
> method and see if that retains the line break.
I assume you are using c?

If you pass "\n" you'll get newline > chr(10)
If you want "\n" you might consider to use "\\n"
(Outlook express mangels this for me, use slash twice)

"Jim Heavey" <JimHeavey@.discussions.microsoft.com> schreef in bericht
news:1BC14F11-5DBA-4865-9CFB-2881598EB955@.microsoft.com...
> Hello, I a m building an email message in a StringBuilder Object and then
> using the StringBuilder ToString() method to get it to regular text. It
> appears to me that when I place a "\n" into the Stringbuilder object that
> when this is translated into text, I loose the page break. Is this true
> and
> I doing something wrong?
> I'm guessing that I could insert a special character into the
> StringBuilder
> object and then use the string Replace() method to translate that special
> character into a "\n" and perhaps this would work.
> Just wondering why it does not work when I place that value into the
> StringBuilder Object.
> Thanks

Saturday, March 24, 2012

Stripping a Currency Symbol

I'm building a data-entry form which pulls several "money" data type fields from a database.
Formatting the data in my datagrid using {0:c} is the easy part, but the database rejects the currency symbols when I try to re-insert them into the database.

I've read several threads that say to use a separate "hidden" field to hold the unformatted data, but that doesn't help since the user is entering data using the currency symbol and I'd have to update the hidden field first anyway!!

Another option I'm hearing is to "strip off the currency symbol" before submitting the form to the database.

Can someone show me some code samples demonstrating "stripping" a string? I suppose the optimal way to do this would be to check for (and strip, if found) a non-numeric character at the beginning of the string, but I have no idea what the code syntax would be.

Thanks in advance...Hello, you can always store data in database using any type of characters, have you tried to use the field of currency in the database as a TEXT field, then you can store whatever data or sybmols you want in that field,
also, if you are using ms access, you might set at the table creation the type of a field to be currency and store data in it, without having to put the $ sign for example, it will directly add thaqt symbol to it!!!! but the easiet to use a Text field and don't worry about symbols.

also, in the datagrid, you migth use a templatecolumn, that you can render the way youwant to place the currency as you like,.

hope i was able to help..
best of luck.
Unfortunately I don't get to choose the datatype in the sql server tables, I have to code against what the DBA gives me!

I really just need code samples of how to test for a non-numeric character at the beginning of a string, and then strip it off it it finds one.

Thanks anyway!
string yourstring = "$50";
char firstchar = yourstring[0];
if (!( ((int)firstchar >= (int)'0') && (int)firstchar <= (int)'9') )) {
// bad, bad first char! ;)
}

Tuesday, March 13, 2012

struggling asp.net novice

hi all

I am currently building an asp.net website for uni. I have a header ascx file with hyperlink buttons which i would like to be able to click on to bring up a list of categories which will be hyperlinks pulling up product data from my access database, i have been advised multidimentional arrays would be good, however i don't know where to start, can any body help?

thanks Angela

Crying [:'(]

Struggle with The Move to .NET

I have been building web apps for about 7 years with (mostly) script and som
e
COM. I am comfortable with OOP and have taken several Microsoft-designed
ASP.NET courses including their ASP to ASP.NET course (which in my opinion i
s
a waste of time for anyone with more that a passing familiarity with ASP) an
d
the ASP.NET Bootcamp (more useful but still didn't solve my problem).
Most of my development is Intranet (IE 5.5+) based and, admittedly, I
frequently build functionality with ASP that is more appropriate in COM or
ASP.NET but my issue is that I now have a great deal of reusable code
(infrastructure, if you will) and complex techniques that allow me to be VER
Y
productive with ASP. ASP.NET promises great reduction in development time
but, for me, it may mean months of significantly longer development cycles
because I hardly know how to begin to create in .NET the pages and modules
that are second nature to me in classic.
Transitioning content and code from ASP to ASP.NET is one thing but does
anyone have suggestions for speeding the transition of skill and productivit
y?
Michael Geist
MCSD (6)I think, for someone like you who has good exposure to programming skills
(particularly VB 6.0), that if you focus on learning/understanding the .NET
Framework and OOP concepts, you will make the transition easier. You say
you have OO experience, but is it in something other than VB? As you know,
VB 6.0 wasn't truly OO and now VB.NET is.
"Michael Geist" <MichaelGeist@.discussions.microsoft.com> wrote in message
news:E6EAE390-CEB2-4C45-A1FD-5EEEAC961120@.microsoft.com...
>I have been building web apps for about 7 years with (mostly) script and
>some
> COM. I am comfortable with OOP and have taken several Microsoft-designed
> ASP.NET courses including their ASP to ASP.NET course (which in my opinion
> is
> a waste of time for anyone with more that a passing familiarity with ASP)
> and
> the ASP.NET Bootcamp (more useful but still didn't solve my problem).
> Most of my development is Intranet (IE 5.5+) based and, admittedly, I
> frequently build functionality with ASP that is more appropriate in COM or
> ASP.NET but my issue is that I now have a great deal of reusable code
> (infrastructure, if you will) and complex techniques that allow me to be
> VERY
> productive with ASP. ASP.NET promises great reduction in development time
> but, for me, it may mean months of significantly longer development cycles
> because I hardly know how to begin to create in .NET the pages and modules
> that are second nature to me in classic.
> Transitioning content and code from ASP to ASP.NET is one thing but does
> anyone have suggestions for speeding the transition of skill and
> productivity?
> Michael Geist
> MCSD (6)
Practice?
Can you ask a specific question?
Jeff
"Michael Geist" <MichaelGeist@.discussions.microsoft.com> wrote in message
news:E6EAE390-CEB2-4C45-A1FD-5EEEAC961120@.microsoft.com...
> I have been building web apps for about 7 years with (mostly) script and
some
> COM. I am comfortable with OOP and have taken several Microsoft-designed
> ASP.NET courses including their ASP to ASP.NET course (which in my opinion
is
> a waste of time for anyone with more that a passing familiarity with ASP)
and
> the ASP.NET Bootcamp (more useful but still didn't solve my problem).
> Most of my development is Intranet (IE 5.5+) based and, admittedly, I
> frequently build functionality with ASP that is more appropriate in COM or
> ASP.NET but my issue is that I now have a great deal of reusable code
> (infrastructure, if you will) and complex techniques that allow me to be
VERY
> productive with ASP. ASP.NET promises great reduction in development time
> but, for me, it may mean months of significantly longer development cycles
> because I hardly know how to begin to create in .NET the pages and modules
> that are second nature to me in classic.
> Transitioning content and code from ASP to ASP.NET is one thing but does
> anyone have suggestions for speeding the transition of skill and
productivity?
> Michael Geist
> MCSD (6)
Hi Michael,
You have come to the right place. This newsgroup is your biggest advantage
second only to your determination to make the move. I would suggest just
jumping in and start writing code. As you come across issues and questions,
post them here. As you can see, rarely does a question go unanswered.
Also, if you want to save time, search for an answer before posting. Many
of the things you will ask about have been answered. Until you learn all
the terminology though it may be difficult to search for your answer. So go
ahead and post away! We'll help you! Ken.
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.
"Michael Geist" <MichaelGeist@.discussions.microsoft.com> wrote in message
news:E6EAE390-CEB2-4C45-A1FD-5EEEAC961120@.microsoft.com...
> I have been building web apps for about 7 years with (mostly) script and
some
> COM. I am comfortable with OOP and have taken several Microsoft-designed
> ASP.NET courses including their ASP to ASP.NET course (which in my opinion
is
> a waste of time for anyone with more that a passing familiarity with ASP)
and
> the ASP.NET Bootcamp (more useful but still didn't solve my problem).
> Most of my development is Intranet (IE 5.5+) based and, admittedly, I
> frequently build functionality with ASP that is more appropriate in COM or
> ASP.NET but my issue is that I now have a great deal of reusable code
> (infrastructure, if you will) and complex techniques that allow me to be
VERY
> productive with ASP. ASP.NET promises great reduction in development time
> but, for me, it may mean months of significantly longer development cycles
> because I hardly know how to begin to create in .NET the pages and modules
> that are second nature to me in classic.
> Transitioning content and code from ASP to ASP.NET is one thing but does
> anyone have suggestions for speeding the transition of skill and
productivity?
> Michael Geist
> MCSD (6)
Personally if your ASP code is well structured you should find it easy to
port over
However what I think will happen is that you will use that existing codebase
to act as the basis for a new codebase you will quickly build up.
Enjoy the adventure - for .NET 2 cometh
"Michael Geist" <MichaelGeist@.discussions.microsoft.com> wrote in message
news:E6EAE390-CEB2-4C45-A1FD-5EEEAC961120@.microsoft.com...
> I have been building web apps for about 7 years with (mostly) script and
some
> COM. I am comfortable with OOP and have taken several Microsoft-designed
> ASP.NET courses including their ASP to ASP.NET course (which in my opinion
is
> a waste of time for anyone with more that a passing familiarity with ASP)
and
> the ASP.NET Bootcamp (more useful but still didn't solve my problem).
> Most of my development is Intranet (IE 5.5+) based and, admittedly, I
> frequently build functionality with ASP that is more appropriate in COM or
> ASP.NET but my issue is that I now have a great deal of reusable code
> (infrastructure, if you will) and complex techniques that allow me to be
VERY
> productive with ASP. ASP.NET promises great reduction in development time
> but, for me, it may mean months of significantly longer development cycles
> because I hardly know how to begin to create in .NET the pages and modules
> that are second nature to me in classic.
> Transitioning content and code from ASP to ASP.NET is one thing but does
> anyone have suggestions for speeding the transition of skill and
productivity?
> Michael Geist
> MCSD (6)
Like you, I was an ASP Classic person. I was a bit hesitant to get into
ASP.NET when the beta came out because it seemed so foreign and "advanced".
The way to get a handle on it is to take a small project that you've already
coded in ASP and work through it in ASP.NET. Before long, things will start
to fall into place.
When I read about programming or watch someone explain it, I rarely get it
on the spot. Things seem to "click" when I sit down to work it out for
myself.
Of course there are lots of people in this newsgroup who will gladly help
you over the humps. Knowing ASP, you already have a good headstart on your
own.
Ken
MVP [ASP.NET]
"Michael Geist" <MichaelGeist@.discussions.microsoft.com> wrote in message
news:E6EAE390-CEB2-4C45-A1FD-5EEEAC961120@.microsoft.com...
>I have been building web apps for about 7 years with (mostly) script and
>some
> COM. I am comfortable with OOP and have taken several Microsoft-designed
> ASP.NET courses including their ASP to ASP.NET course (which in my opinion
> is
> a waste of time for anyone with more that a passing familiarity with ASP)
> and
> the ASP.NET Bootcamp (more useful but still didn't solve my problem).
> Most of my development is Intranet (IE 5.5+) based and, admittedly, I
> frequently build functionality with ASP that is more appropriate in COM or
> ASP.NET but my issue is that I now have a great deal of reusable code
> (infrastructure, if you will) and complex techniques that allow me to be
> VERY
> productive with ASP. ASP.NET promises great reduction in development time
> but, for me, it may mean months of significantly longer development cycles
> because I hardly know how to begin to create in .NET the pages and modules
> that are second nature to me in classic.
> Transitioning content and code from ASP to ASP.NET is one thing but does
> anyone have suggestions for speeding the transition of skill and
> productivity?
> Michael Geist
> MCSD (6)
> Practice?
Another great piece of advice Jeff. You really have a strong grasp of what
the OP is struggling with.

> Can you ask a specific question?
There mere fact that you are saying this indicates that you don't understand
the specific question that is being asked. Jeff, if you don't have anything
constructive to contribute, why do you bother to respond? Why must you
continue to degrade and insult people here with your off the cuff remarks?

> Jeff
> "Michael Geist" <MichaelGeist@.discussions.microsoft.com> wrote in message
> news:E6EAE390-CEB2-4C45-A1FD-5EEEAC961120@.microsoft.com...
> some
> is
> and
> VERY
> productivity?
>
Hi Scott,
I agree that I don't think Jeff understood my question and answering it with
a question isn't exactly helpful but here are some specific senarios. This
issue isn't so much that that I have any major roadblocks but that I have so
many small pieces that I have to replace. For instance, I have a server sid
e
function that builds sequel statements based on my convention for the name
property of form elements and I have client side script that validates based
on my convention for the ID property of form elements. As you know ASP.NET
form controls don't expose a name property. I have heard something about
user-defined properties but haven't seen examples yet.
Another example: on some of my web apps I apply what I refer to as 'dynamic
style sheets'. The user has the option of different color shemes for the
app. In classic I achieve this with a (folder) variable in the embedded fil
e
path for the css and the images. In .NET maybe all I need is a single line
in the code behind but I find that the way to go about separating mixed
ASP/HTML like this isn't always obvious for me.
Some others: server side includes for headers, footers, and user
identification. A lot of client script, some generated with server side
script. Tables (grids) and forms dynamically created using ADOX table props
.
I am not a regular newsgroup user (if you can't tell) but I have got to say
that I don't understand newsgroupees that don't seem to have anything better
to do than look for opportunities to jump on someone's mistake or
misstatement. If Jeff is one of those types, its a little but it didn't
bother me.
Thanks
"Scott M." wrote:

> Another great piece of advice Jeff. You really have a strong grasp of wha
t
> the OP is struggling with.
>
> There mere fact that you are saying this indicates that you don't understa
nd
> the specific question that is being asked. Jeff, if you don't have anythi
ng
> constructive to contribute, why do you bother to respond? Why must you
> continue to degrade and insult people here with your off the cuff remarks?
>
>
>
Thanks Ken.
It sounds like I just need to jump in the pool and start swimming.
If you have any specific suggestions or concepts for some of the examples in
my reply to Scott above, I'd be grateful.
"Ken Cox [Microsoft MVP]" wrote:

> Like you, I was an ASP Classic person. I was a bit hesitant to get into
> ASP.NET when the beta came out because it seemed so foreign and "advanced"
.
> The way to get a handle on it is to take a small project that you've alrea
dy
> coded in ASP and work through it in ASP.NET. Before long, things will star
t
> to fall into place.
> When I read about programming or watch someone explain it, I rarely get it
> on the spot. Things seem to "click" when I sit down to work it out for
> myself.
> Of course there are lots of people in this newsgroup who will gladly help
> you over the humps. Knowing ASP, you already have a good headstart on your
> own.
> Ken
> MVP [ASP.NET]
> "Michael Geist" <MichaelGeist@.discussions.microsoft.com> wrote in message
> news:E6EAE390-CEB2-4C45-A1FD-5EEEAC961120@.microsoft.com...
>
Lighten up, and welcome to the newsgroups
Jeff
"Scott M." <s-mar@.nospam.nospam> wrote in message
news:#MXDPKd0EHA.3364@.TK2MSFTNGP12.phx.gbl...
> Another great piece of advice Jeff. You really have a strong grasp of
what
> the OP is struggling with.
>
> There mere fact that you are saying this indicates that you don't
understand
> the specific question that is being asked. Jeff, if you don't have
anything
> constructive to contribute, why do you bother to respond? Why must you
> continue to degrade and insult people here with your off the cuff remarks?
>
message
and
Microsoft-designed
ASP)
be
does
>

Struggle with The Move to .NET

I have been building web apps for about 7 years with (mostly) script and some
COM. I am comfortable with OOP and have taken several Microsoft-designed
ASP.NET courses including their ASP to ASP.NET course (which in my opinion is
a waste of time for anyone with more that a passing familiarity with ASP) and
the ASP.NET Bootcamp (more useful but still didn't solve my problem).

Most of my development is Intranet (IE 5.5+) based and, admittedly, I
frequently build functionality with ASP that is more appropriate in COM or
ASP.NET but my issue is that I now have a great deal of reusable code
(infrastructure, if you will) and complex techniques that allow me to be VERY
productive with ASP. ASP.NET promises great reduction in development time
but, for me, it may mean months of significantly longer development cycles
because I hardly know how to begin to create in .NET the pages and modules
that are second nature to me in classic.

Transitioning content and code from ASP to ASP.NET is one thing but does
anyone have suggestions for speeding the transition of skill and productivity?

Michael Geist
MCSD (6)I think, for someone like you who has good exposure to programming skills
(particularly VB 6.0), that if you focus on learning/understanding the .NET
Framework and OOP concepts, you will make the transition easier. You say
you have OO experience, but is it in something other than VB? As you know,
VB 6.0 wasn't truly OO and now VB.NET is.

"Michael Geist" <MichaelGeist@.discussions.microsoft.com> wrote in message
news:E6EAE390-CEB2-4C45-A1FD-5EEEAC961120@.microsoft.com...
>I have been building web apps for about 7 years with (mostly) script and
>some
> COM. I am comfortable with OOP and have taken several Microsoft-designed
> ASP.NET courses including their ASP to ASP.NET course (which in my opinion
> is
> a waste of time for anyone with more that a passing familiarity with ASP)
> and
> the ASP.NET Bootcamp (more useful but still didn't solve my problem).
> Most of my development is Intranet (IE 5.5+) based and, admittedly, I
> frequently build functionality with ASP that is more appropriate in COM or
> ASP.NET but my issue is that I now have a great deal of reusable code
> (infrastructure, if you will) and complex techniques that allow me to be
> VERY
> productive with ASP. ASP.NET promises great reduction in development time
> but, for me, it may mean months of significantly longer development cycles
> because I hardly know how to begin to create in .NET the pages and modules
> that are second nature to me in classic.
> Transitioning content and code from ASP to ASP.NET is one thing but does
> anyone have suggestions for speeding the transition of skill and
> productivity?
> Michael Geist
> MCSD (6)
Practice?

Can you ask a specific question?

Jeff
"Michael Geist" <MichaelGeist@.discussions.microsoft.com> wrote in message
news:E6EAE390-CEB2-4C45-A1FD-5EEEAC961120@.microsoft.com...
> I have been building web apps for about 7 years with (mostly) script and
some
> COM. I am comfortable with OOP and have taken several Microsoft-designed
> ASP.NET courses including their ASP to ASP.NET course (which in my opinion
is
> a waste of time for anyone with more that a passing familiarity with ASP)
and
> the ASP.NET Bootcamp (more useful but still didn't solve my problem).
> Most of my development is Intranet (IE 5.5+) based and, admittedly, I
> frequently build functionality with ASP that is more appropriate in COM or
> ASP.NET but my issue is that I now have a great deal of reusable code
> (infrastructure, if you will) and complex techniques that allow me to be
VERY
> productive with ASP. ASP.NET promises great reduction in development time
> but, for me, it may mean months of significantly longer development cycles
> because I hardly know how to begin to create in .NET the pages and modules
> that are second nature to me in classic.
> Transitioning content and code from ASP to ASP.NET is one thing but does
> anyone have suggestions for speeding the transition of skill and
productivity?
> Michael Geist
> MCSD (6)
Hi Michael,

You have come to the right place. This newsgroup is your biggest advantage
second only to your determination to make the move. I would suggest just
jumping in and start writing code. As you come across issues and questions,
post them here. As you can see, rarely does a question go unanswered.
Also, if you want to save time, search for an answer before posting. Many
of the things you will ask about have been answered. Until you learn all
the terminology though it may be difficult to search for your answer. So go
ahead and post away! We'll help you! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Michael Geist" <MichaelGeist@.discussions.microsoft.com> wrote in message
news:E6EAE390-CEB2-4C45-A1FD-5EEEAC961120@.microsoft.com...
> I have been building web apps for about 7 years with (mostly) script and
some
> COM. I am comfortable with OOP and have taken several Microsoft-designed
> ASP.NET courses including their ASP to ASP.NET course (which in my opinion
is
> a waste of time for anyone with more that a passing familiarity with ASP)
and
> the ASP.NET Bootcamp (more useful but still didn't solve my problem).
> Most of my development is Intranet (IE 5.5+) based and, admittedly, I
> frequently build functionality with ASP that is more appropriate in COM or
> ASP.NET but my issue is that I now have a great deal of reusable code
> (infrastructure, if you will) and complex techniques that allow me to be
VERY
> productive with ASP. ASP.NET promises great reduction in development time
> but, for me, it may mean months of significantly longer development cycles
> because I hardly know how to begin to create in .NET the pages and modules
> that are second nature to me in classic.
> Transitioning content and code from ASP to ASP.NET is one thing but does
> anyone have suggestions for speeding the transition of skill and
productivity?
> Michael Geist
> MCSD (6)
Personally if your ASP code is well structured you should find it easy to
port over

However what I think will happen is that you will use that existing codebase
to act as the basis for a new codebase you will quickly build up.

Enjoy the adventure - for .NET 2 cometh

"Michael Geist" <MichaelGeist@.discussions.microsoft.com> wrote in message
news:E6EAE390-CEB2-4C45-A1FD-5EEEAC961120@.microsoft.com...
> I have been building web apps for about 7 years with (mostly) script and
some
> COM. I am comfortable with OOP and have taken several Microsoft-designed
> ASP.NET courses including their ASP to ASP.NET course (which in my opinion
is
> a waste of time for anyone with more that a passing familiarity with ASP)
and
> the ASP.NET Bootcamp (more useful but still didn't solve my problem).
> Most of my development is Intranet (IE 5.5+) based and, admittedly, I
> frequently build functionality with ASP that is more appropriate in COM or
> ASP.NET but my issue is that I now have a great deal of reusable code
> (infrastructure, if you will) and complex techniques that allow me to be
VERY
> productive with ASP. ASP.NET promises great reduction in development time
> but, for me, it may mean months of significantly longer development cycles
> because I hardly know how to begin to create in .NET the pages and modules
> that are second nature to me in classic.
> Transitioning content and code from ASP to ASP.NET is one thing but does
> anyone have suggestions for speeding the transition of skill and
productivity?
> Michael Geist
> MCSD (6)
Like you, I was an ASP Classic person. I was a bit hesitant to get into
ASP.NET when the beta came out because it seemed so foreign and "advanced".

The way to get a handle on it is to take a small project that you've already
coded in ASP and work through it in ASP.NET. Before long, things will start
to fall into place.

When I read about programming or watch someone explain it, I rarely get it
on the spot. Things seem to "click" when I sit down to work it out for
myself.

Of course there are lots of people in this newsgroup who will gladly help
you over the humps. Knowing ASP, you already have a good headstart on your
own.

Ken
MVP [ASP.NET]

"Michael Geist" <MichaelGeist@.discussions.microsoft.com> wrote in message
news:E6EAE390-CEB2-4C45-A1FD-5EEEAC961120@.microsoft.com...
>I have been building web apps for about 7 years with (mostly) script and
>some
> COM. I am comfortable with OOP and have taken several Microsoft-designed
> ASP.NET courses including their ASP to ASP.NET course (which in my opinion
> is
> a waste of time for anyone with more that a passing familiarity with ASP)
> and
> the ASP.NET Bootcamp (more useful but still didn't solve my problem).
> Most of my development is Intranet (IE 5.5+) based and, admittedly, I
> frequently build functionality with ASP that is more appropriate in COM or
> ASP.NET but my issue is that I now have a great deal of reusable code
> (infrastructure, if you will) and complex techniques that allow me to be
> VERY
> productive with ASP. ASP.NET promises great reduction in development time
> but, for me, it may mean months of significantly longer development cycles
> because I hardly know how to begin to create in .NET the pages and modules
> that are second nature to me in classic.
> Transitioning content and code from ASP to ASP.NET is one thing but does
> anyone have suggestions for speeding the transition of skill and
> productivity?
> Michael Geist
> MCSD (6)
> Practice?

Another great piece of advice Jeff. You really have a strong grasp of what
the OP is struggling with.

> Can you ask a specific question?

There mere fact that you are saying this indicates that you don't understand
the specific question that is being asked. Jeff, if you don't have anything
constructive to contribute, why do you bother to respond? Why must you
continue to degrade and insult people here with your off the cuff remarks?

> Jeff
> "Michael Geist" <MichaelGeist@.discussions.microsoft.com> wrote in message
> news:E6EAE390-CEB2-4C45-A1FD-5EEEAC961120@.microsoft.com...
>> I have been building web apps for about 7 years with (mostly) script and
> some
>> COM. I am comfortable with OOP and have taken several Microsoft-designed
>> ASP.NET courses including their ASP to ASP.NET course (which in my
>> opinion
> is
>> a waste of time for anyone with more that a passing familiarity with ASP)
> and
>> the ASP.NET Bootcamp (more useful but still didn't solve my problem).
>>
>> Most of my development is Intranet (IE 5.5+) based and, admittedly, I
>> frequently build functionality with ASP that is more appropriate in COM
>> or
>> ASP.NET but my issue is that I now have a great deal of reusable code
>> (infrastructure, if you will) and complex techniques that allow me to be
> VERY
>> productive with ASP. ASP.NET promises great reduction in development
>> time
>> but, for me, it may mean months of significantly longer development
>> cycles
>> because I hardly know how to begin to create in .NET the pages and
>> modules
>> that are second nature to me in classic.
>>
>> Transitioning content and code from ASP to ASP.NET is one thing but does
>> anyone have suggestions for speeding the transition of skill and
> productivity?
>>
>> Michael Geist
>> MCSD (6)
Hi Scott,

I agree that I don't think Jeff understood my question and answering it with
a question isn't exactly helpful but here are some specific senarios. This
issue isn't so much that that I have any major roadblocks but that I have so
many small pieces that I have to replace. For instance, I have a server side
function that builds sequel statements based on my convention for the name
property of form elements and I have client side script that validates based
on my convention for the ID property of form elements. As you know ASP.NET
form controls don't expose a name property. I have heard something about
user-defined properties but haven't seen examples yet.

Another example: on some of my web apps I apply what I refer to as 'dynamic
style sheets'. The user has the option of different color shemes for the
app. In classic I achieve this with a (folder) variable in the embedded file
path for the css and the images. In .NET maybe all I need is a single line
in the code behind but I find that the way to go about separating mixed
ASP/HTML like this isn't always obvious for me.

Some others: server side includes for headers, footers, and user
identification. A lot of client script, some generated with server side
script. Tables (grids) and forms dynamically created using ADOX table props.

I am not a regular newsgroup user (if you can't tell) but I have got to say
that I don't understand newsgroupees that don't seem to have anything better
to do than look for opportunities to jump on someone's mistake or
misstatement. If Jeff is one of those types, its a little sad but it didn't
bother me.

Thanks

"Scott M." wrote:

> > Practice?
> Another great piece of advice Jeff. You really have a strong grasp of what
> the OP is struggling with.
> > Can you ask a specific question?
> There mere fact that you are saying this indicates that you don't understand
> the specific question that is being asked. Jeff, if you don't have anything
> constructive to contribute, why do you bother to respond? Why must you
> continue to degrade and insult people here with your off the cuff remarks?
>
> > Jeff
> > "Michael Geist" <MichaelGeist@.discussions.microsoft.com> wrote in message
> > news:E6EAE390-CEB2-4C45-A1FD-5EEEAC961120@.microsoft.com...
> >> I have been building web apps for about 7 years with (mostly) script and
> > some
> >> COM. I am comfortable with OOP and have taken several Microsoft-designed
> >> ASP.NET courses including their ASP to ASP.NET course (which in my
> >> opinion
> > is
> >> a waste of time for anyone with more that a passing familiarity with ASP)
> > and
> >> the ASP.NET Bootcamp (more useful but still didn't solve my problem).
> >>
> >> Most of my development is Intranet (IE 5.5+) based and, admittedly, I
> >> frequently build functionality with ASP that is more appropriate in COM
> >> or
> >> ASP.NET but my issue is that I now have a great deal of reusable code
> >> (infrastructure, if you will) and complex techniques that allow me to be
> > VERY
> >> productive with ASP. ASP.NET promises great reduction in development
> >> time
> >> but, for me, it may mean months of significantly longer development
> >> cycles
> >> because I hardly know how to begin to create in .NET the pages and
> >> modules
> >> that are second nature to me in classic.
> >>
> >> Transitioning content and code from ASP to ASP.NET is one thing but does
> >> anyone have suggestions for speeding the transition of skill and
> > productivity?
> >>
> >> Michael Geist
> >> MCSD (6)
>
Thanks Ken.

It sounds like I just need to jump in the pool and start swimming.

If you have any specific suggestions or concepts for some of the examples in
my reply to Scott above, I'd be grateful.

"Ken Cox [Microsoft MVP]" wrote:

> Like you, I was an ASP Classic person. I was a bit hesitant to get into
> ASP.NET when the beta came out because it seemed so foreign and "advanced".
> The way to get a handle on it is to take a small project that you've already
> coded in ASP and work through it in ASP.NET. Before long, things will start
> to fall into place.
> When I read about programming or watch someone explain it, I rarely get it
> on the spot. Things seem to "click" when I sit down to work it out for
> myself.
> Of course there are lots of people in this newsgroup who will gladly help
> you over the humps. Knowing ASP, you already have a good headstart on your
> own.
> Ken
> MVP [ASP.NET]
> "Michael Geist" <MichaelGeist@.discussions.microsoft.com> wrote in message
> news:E6EAE390-CEB2-4C45-A1FD-5EEEAC961120@.microsoft.com...
> >I have been building web apps for about 7 years with (mostly) script and
> >some
> > COM. I am comfortable with OOP and have taken several Microsoft-designed
> > ASP.NET courses including their ASP to ASP.NET course (which in my opinion
> > is
> > a waste of time for anyone with more that a passing familiarity with ASP)
> > and
> > the ASP.NET Bootcamp (more useful but still didn't solve my problem).
> > Most of my development is Intranet (IE 5.5+) based and, admittedly, I
> > frequently build functionality with ASP that is more appropriate in COM or
> > ASP.NET but my issue is that I now have a great deal of reusable code
> > (infrastructure, if you will) and complex techniques that allow me to be
> > VERY
> > productive with ASP. ASP.NET promises great reduction in development time
> > but, for me, it may mean months of significantly longer development cycles
> > because I hardly know how to begin to create in .NET the pages and modules
> > that are second nature to me in classic.
> > Transitioning content and code from ASP to ASP.NET is one thing but does
> > anyone have suggestions for speeding the transition of skill and
> > productivity?
> > Michael Geist
> > MCSD (6)
>
Lighten up, and welcome to the newsgroups

Jeff
"Scott M." <s-mar@.nospam.nospam> wrote in message
news:#MXDPKd0EHA.3364@.TK2MSFTNGP12.phx.gbl...
> > Practice?
> Another great piece of advice Jeff. You really have a strong grasp of
what
> the OP is struggling with.
> > Can you ask a specific question?
> There mere fact that you are saying this indicates that you don't
understand
> the specific question that is being asked. Jeff, if you don't have
anything
> constructive to contribute, why do you bother to respond? Why must you
> continue to degrade and insult people here with your off the cuff remarks?
>
> > Jeff
> > "Michael Geist" <MichaelGeist@.discussions.microsoft.com> wrote in
message
> > news:E6EAE390-CEB2-4C45-A1FD-5EEEAC961120@.microsoft.com...
> >> I have been building web apps for about 7 years with (mostly) script
and
> > some
> >> COM. I am comfortable with OOP and have taken several
Microsoft-designed
> >> ASP.NET courses including their ASP to ASP.NET course (which in my
> >> opinion
> > is
> >> a waste of time for anyone with more that a passing familiarity with
ASP)
> > and
> >> the ASP.NET Bootcamp (more useful but still didn't solve my problem).
> >>
> >> Most of my development is Intranet (IE 5.5+) based and, admittedly, I
> >> frequently build functionality with ASP that is more appropriate in COM
> >> or
> >> ASP.NET but my issue is that I now have a great deal of reusable code
> >> (infrastructure, if you will) and complex techniques that allow me to
be
> > VERY
> >> productive with ASP. ASP.NET promises great reduction in development
> >> time
> >> but, for me, it may mean months of significantly longer development
> >> cycles
> >> because I hardly know how to begin to create in .NET the pages and
> >> modules
> >> that are second nature to me in classic.
> >>
> >> Transitioning content and code from ASP to ASP.NET is one thing but
does
> >> anyone have suggestions for speeding the transition of skill and
> > productivity?
> >>
> >> Michael Geist
> >> MCSD (6)
> As you know ASP.NET
> form controls don't expose a name property. I have heard something about
> user-defined properties but haven't seen examples yet.

But they do support the more widely used "ID" property (which is also
supported in classic ASP). To quickly convert your classic ASP form
elements to ASP.NET form elements (elements that can be programmed with
VB.NET on the server and respond to server-side events) simply add
"runat=server" and "id=elementName" to the HTML element. So, if you had an
old textbox:

<INPUT TYPE="Text" NAME="txtSomething"
you could turn it into an ASP.NET HTML Server Control by writing:

<INPUT TYPE="Text" NAME="txtSomething" ID="txtSomething" RUNAT="Server"
(note that you can have both the Name and the ID property without issue -
they can even have the same values)

ASP.NET also has validation controls, so you may find that validating form
fields is now a no brainer.

> Another example: on some of my web apps I apply what I refer to as
> 'dynamic
> style sheets'. The user has the option of different color shemes for the
> app. In classic I achieve this with a (folder) variable in the embedded
> file
> path for the css and the images. In .NET maybe all I need is a single
> line
> in the code behind but I find that the way to go about separating mixed
> ASP/HTML like this isn't always obvious for me.

The ASP.NET "Page" object is programmable at the server level. Although I
haven't done what you describe, I believe it would simply be a matter of
adding a line in the Page_Load event handler of the code-behind that
associates the correct css file with the page instance (me). You may be
able to do this by sending the HTML <LINK> tag back to the client or by
using a Literal server control. The key point here is that you gain access
to what will eventually be client-side elements if they are declared as
server-side elements first.

> Some others: server side includes for headers, footers, and user
> identification. A lot of client script, some generated with server side
> script. Tables (grids) and forms dynamically created using ADOX table
> props.

In ASP.NET, we replace SSI's with "User Controls", which serve the same
purpose as SSI's but use a .NET language to create them.

> I am not a regular newsgroup user (if you can't tell) but I have got to
> say
> that I don't understand newsgroupees that don't seem to have anything
> better
> to do than look for opportunities to jump on someone's mistake or
> misstatement. If Jeff is one of those types, its a little sad but it
> didn't
> bother me.
> Thanks

Your welcome. Good luck and come on back and post your other questions as
they come up. Don't be afraid to post source code as well so we can really
understand what it is you are doing.

-Scott
> Lighten up, and welcome to the newsgroups

I really don't understand what this is supposed to mean. Don't bother
explaining it.
> As you know ASP.NET
> form controls don't expose a name property. I have heard something about
> user-defined properties but haven't seen examples yet.

If you post some code, I'm sure someone will show you the ASP.NET technique.
(Best to start a new thread for each issue.)

> Another example: on some of my web apps I apply what I refer to as
> 'dynamic
> style sheets'. The user has the option of different color shemes for the
> app. In classic I achieve this with a (folder) variable in the embedded
> file
> path for the css and the images. In .NET maybe all I need is a single
> line
> in the code behind but I find that the way to go about separating mixed
> ASP/HTML like this isn't always obvious for me.

You can still do it very much inline the ASP way. Codebehind is considered
by some to be more ".NET" but certainly isn't mandatory.
> Some others: server side includes for headers, footers, and user
> identification. A lot of client script, some generated with server side
> script. Tables (grids) and forms dynamically created using ADOX table
> props.

Headers, footers are good candidates for user controls where you used
includes in ASP.
Generating client-script is really easy. There are a bunch of methods like
Page.RegisterClientScriptBlock that help you emit code.
ADOX still exists and you get tools that regenerate grids.

As I said, as you run into an issue that you can't easily resolve, post it
here with some of the working ASP code. Someone will give you a nudge in the
right direction.

Ken
MVP [ASP.NET]
Exactly

"Scott M." <s-mar@.nospam.nospam> wrote in message
news:urDg1Tk0EHA.3588@.TK2MSFTNGP14.phx.gbl...
> > Lighten up, and welcome to the newsgroups
> I really don't understand what this is supposed to mean. Don't bother
> explaining it.
It means that flaming is non-productive, not useful, and in fact,
contributes to an atmosphere of confrontation and hostility, which is not
conductive of helping people solve problems, the purpose of these
newsgroups. It means that people who flame without posting help are not only
not helpful, but harmful to the purpose of these newsgroups. It means that
people who flame lack moral character and self-discipline. If a person who
answers a question provides erroneous information, it is certainly helpful
to correct the record, for the sake of those who don't know what is true. It
is not necessary or helpful to attack any poster with personal attacks and
insults. It is not useful to assume the worst about something somebody
posts, and attack that person based upon a possibly false assumption.
Flaming is arrogant, as it is motivated by a false sense of superiority. To
have knowledge is not a virtue. It is what one decides to do with one's
knowledge that is virtuous or non-virtuous. And it is helpful, when looking
down the ladder at all the people who are below you, to take a look up at
all of the people that are above you, in order to get a realistic
perspective.

In short, it means "Lighten up." It means "Play nice."

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Scott M." <s-mar@.nospam.nospam> wrote in message
news:urDg1Tk0EHA.3588@.TK2MSFTNGP14.phx.gbl...
> > Lighten up, and welcome to the newsgroups
> I really don't understand what this is supposed to mean. Don't bother
> explaining it.
Kevin, I agree completely. And what I didn't understand is why the comment
was directed at me, who is not doing the flaming.

Jeff has established himself as someone who just wants to post meaningless
garble and then get nasty when someone doesn't understand it or indicates
that it isn't helpful.

My post to Jeff in this thread is not based on his comment(s) here in just
this thread. He continuously has posted useless replies that don't help
anyone and make the OP feel stupid for asking.

That is most certainly not how the NG's should work.

"Kevin Spencer" <kspencer@.takempis.com> wrote in message
news:OOWpF6k0EHA.1196@.TK2MSFTNGP15.phx.gbl...
> It means that flaming is non-productive, not useful, and in fact,
> contributes to an atmosphere of confrontation and hostility, which is not
> conductive of helping people solve problems, the purpose of these
> newsgroups. It means that people who flame without posting help are not
> only
> not helpful, but harmful to the purpose of these newsgroups. It means that
> people who flame lack moral character and self-discipline. If a person who
> answers a question provides erroneous information, it is certainly helpful
> to correct the record, for the sake of those who don't know what is true.
> It
> is not necessary or helpful to attack any poster with personal attacks and
> insults. It is not useful to assume the worst about something somebody
> posts, and attack that person based upon a possibly false assumption.
> Flaming is arrogant, as it is motivated by a false sense of superiority.
> To
> have knowledge is not a virtue. It is what one decides to do with one's
> knowledge that is virtuous or non-virtuous. And it is helpful, when
> looking
> down the ladder at all the people who are below you, to take a look up at
> all of the people that are above you, in order to get a realistic
> perspective.
> In short, it means "Lighten up." It means "Play nice."
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Neither a follower
> nor a lender be.
> "Scott M." <s-mar@.nospam.nospam> wrote in message
> news:urDg1Tk0EHA.3588@.TK2MSFTNGP14.phx.gbl...
>> > Lighten up, and welcome to the newsgroups
>>
>> I really don't understand what this is supposed to mean. Don't bother
>> explaining it.
>>
>>
Well, we certainly don't need to be policing each other here, do we? Just
block his messages, if they are unpleasant to you. Outlook Express's
newsreader can block messages by any number of parameters. I have personally
blocked several obnoxious posters in the past. I don't even know if they
still post these days. But on the other hand, I don't care! ;-)

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Scott M." <s-mar@.nospam.nospam> wrote in message
news:eLmzz3l0EHA.1400@.TK2MSFTNGP11.phx.gbl...
> Kevin, I agree completely. And what I didn't understand is why the
comment
> was directed at me, who is not doing the flaming.
> Jeff has established himself as someone who just wants to post meaningless
> garble and then get nasty when someone doesn't understand it or indicates
> that it isn't helpful.
> My post to Jeff in this thread is not based on his comment(s) here in just
> this thread. He continuously has posted useless replies that don't help
> anyone and make the OP feel stupid for asking.
> That is most certainly not how the NG's should work.
> "Kevin Spencer" <kspencer@.takempis.com> wrote in message
> news:OOWpF6k0EHA.1196@.TK2MSFTNGP15.phx.gbl...
> > It means that flaming is non-productive, not useful, and in fact,
> > contributes to an atmosphere of confrontation and hostility, which is
not
> > conductive of helping people solve problems, the purpose of these
> > newsgroups. It means that people who flame without posting help are not
> > only
> > not helpful, but harmful to the purpose of these newsgroups. It means
that
> > people who flame lack moral character and self-discipline. If a person
who
> > answers a question provides erroneous information, it is certainly
helpful
> > to correct the record, for the sake of those who don't know what is
true.
> > It
> > is not necessary or helpful to attack any poster with personal attacks
and
> > insults. It is not useful to assume the worst about something somebody
> > posts, and attack that person based upon a possibly false assumption.
> > Flaming is arrogant, as it is motivated by a false sense of superiority.
> > To
> > have knowledge is not a virtue. It is what one decides to do with one's
> > knowledge that is virtuous or non-virtuous. And it is helpful, when
> > looking
> > down the ladder at all the people who are below you, to take a look up
at
> > all of the people that are above you, in order to get a realistic
> > perspective.
> > In short, it means "Lighten up." It means "Play nice."
> > --
> > HTH,
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > Neither a follower
> > nor a lender be.
> > "Scott M." <s-mar@.nospam.nospam> wrote in message
> > news:urDg1Tk0EHA.3588@.TK2MSFTNGP14.phx.gbl...
> >> > Lighten up, and welcome to the newsgroups
> >>
> >> I really don't understand what this is supposed to mean. Don't bother
> >> explaining it.
> >>
> >>
I do believe that when someone is flagrantly being nasty or intentionally
aloof and generally unhelpful, that it is worth pointing it out. I don't
like filtering anyone out because when I reply to a thread, I want to know
everything that has been said up to that point so I don't repeat something
that has been said or so that I might learn something from what has been
said (even monkeys, if left to their own devices and a typewriter, might
'bang' out Shakespeare!).

"Kevin Spencer" <kspencer@.takempis.com> wrote in message
news:OEzB2%23l0EHA.2568@.TK2MSFTNGP11.phx.gbl...
> Well, we certainly don't need to be policing each other here, do we? Just
> block his messages, if they are unpleasant to you. Outlook Express's
> newsreader can block messages by any number of parameters. I have
> personally
> blocked several obnoxious posters in the past. I don't even know if they
> still post these days. But on the other hand, I don't care! ;-)
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Neither a follower
> nor a lender be.
>
> "Scott M." <s-mar@.nospam.nospam> wrote in message
> news:eLmzz3l0EHA.1400@.TK2MSFTNGP11.phx.gbl...
>> Kevin, I agree completely. And what I didn't understand is why the
> comment
>> was directed at me, who is not doing the flaming.
>>
>> Jeff has established himself as someone who just wants to post
>> meaningless
>> garble and then get nasty when someone doesn't understand it or indicates
>> that it isn't helpful.
>>
>> My post to Jeff in this thread is not based on his comment(s) here in
>> just
>> this thread. He continuously has posted useless replies that don't help
>> anyone and make the OP feel stupid for asking.
>>
>> That is most certainly not how the NG's should work.
>>
>> "Kevin Spencer" <kspencer@.takempis.com> wrote in message
>> news:OOWpF6k0EHA.1196@.TK2MSFTNGP15.phx.gbl...
>> > It means that flaming is non-productive, not useful, and in fact,
>> > contributes to an atmosphere of confrontation and hostility, which is
> not
>> > conductive of helping people solve problems, the purpose of these
>> > newsgroups. It means that people who flame without posting help are not
>> > only
>> > not helpful, but harmful to the purpose of these newsgroups. It means
> that
>> > people who flame lack moral character and self-discipline. If a person
> who
>> > answers a question provides erroneous information, it is certainly
> helpful
>> > to correct the record, for the sake of those who don't know what is
> true.
>> > It
>> > is not necessary or helpful to attack any poster with personal attacks
> and
>> > insults. It is not useful to assume the worst about something somebody
>> > posts, and attack that person based upon a possibly false assumption.
>> > Flaming is arrogant, as it is motivated by a false sense of
>> > superiority.
>> > To
>> > have knowledge is not a virtue. It is what one decides to do with one's
>> > knowledge that is virtuous or non-virtuous. And it is helpful, when
>> > looking
>> > down the ladder at all the people who are below you, to take a look up
> at
>> > all of the people that are above you, in order to get a realistic
>> > perspective.
>>> > In short, it means "Lighten up." It means "Play nice."
>>> > --
>> > HTH,
>> > Kevin Spencer
>> > .Net Developer
>> > Microsoft MVP
>> > Neither a follower
>> > nor a lender be.
>>> > "Scott M." <s-mar@.nospam.nospam> wrote in message
>> > news:urDg1Tk0EHA.3588@.TK2MSFTNGP14.phx.gbl...
>> >> > Lighten up, and welcome to the newsgroups
>> >>
>> >> I really don't understand what this is supposed to mean. Don't bother
>> >> explaining it.
>> >>
>> >>
>>>>
>>
> I do believe that when someone is flagrantly being nasty or intentionally
> aloof and generally unhelpful, that it is worth pointing it out.

Why? That is not the purpose of these newsgroups. Who made you the judge (or
anyone else here, for that matter)? A good test of whether something is a
good idea is to imagine what would happen if everyone practiced it. If
everyone here judged each other's responses and posted their personal
opinions of them, how useful would this newsgroup be? It would shortly
become microsoft.public.dotnet.framework.aspnet.flamewars .

Flaming simply inhibits people from speaking freely. It is
counter-productive.

I see stuff here every day that makes me wonder how some people have managed
to get so far in the programming business. Stuff that is so ignorant it
makes my stomach turn. Know what I do? Share it with a friend here at work,
privately.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Scott M." <s-mar@.nospam.nospam> wrote in message
news:uS9o4Jm0EHA.1192@.tk2msftngp13.phx.gbl...
> I do believe that when someone is flagrantly being nasty or intentionally
> aloof and generally unhelpful, that it is worth pointing it out. I don't
> like filtering anyone out because when I reply to a thread, I want to know
> everything that has been said up to that point so I don't repeat something
> that has been said or so that I might learn something from what has been
> said (even monkeys, if left to their own devices and a typewriter, might
> 'bang' out Shakespeare!).
>
> "Kevin Spencer" <kspencer@.takempis.com> wrote in message
> news:OEzB2%23l0EHA.2568@.TK2MSFTNGP11.phx.gbl...
> > Well, we certainly don't need to be policing each other here, do we?
Just
> > block his messages, if they are unpleasant to you. Outlook Express's
> > newsreader can block messages by any number of parameters. I have
> > personally
> > blocked several obnoxious posters in the past. I don't even know if they
> > still post these days. But on the other hand, I don't care! ;-)
> > --
> > HTH,
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > Neither a follower
> > nor a lender be.
> > "Scott M." <s-mar@.nospam.nospam> wrote in message
> > news:eLmzz3l0EHA.1400@.TK2MSFTNGP11.phx.gbl...
> >> Kevin, I agree completely. And what I didn't understand is why the
> > comment
> >> was directed at me, who is not doing the flaming.
> >>
> >> Jeff has established himself as someone who just wants to post
> >> meaningless
> >> garble and then get nasty when someone doesn't understand it or
indicates
> >> that it isn't helpful.
> >>
> >> My post to Jeff in this thread is not based on his comment(s) here in
> >> just
> >> this thread. He continuously has posted useless replies that don't
help
> >> anyone and make the OP feel stupid for asking.
> >>
> >> That is most certainly not how the NG's should work.
> >>
> >> "Kevin Spencer" <kspencer@.takempis.com> wrote in message
> >> news:OOWpF6k0EHA.1196@.TK2MSFTNGP15.phx.gbl...
> >> > It means that flaming is non-productive, not useful, and in fact,
> >> > contributes to an atmosphere of confrontation and hostility, which is
> > not
> >> > conductive of helping people solve problems, the purpose of these
> >> > newsgroups. It means that people who flame without posting help are
not
> >> > only
> >> > not helpful, but harmful to the purpose of these newsgroups. It means
> > that
> >> > people who flame lack moral character and self-discipline. If a
person
> > who
> >> > answers a question provides erroneous information, it is certainly
> > helpful
> >> > to correct the record, for the sake of those who don't know what is
> > true.
> >> > It
> >> > is not necessary or helpful to attack any poster with personal
attacks
> > and
> >> > insults. It is not useful to assume the worst about something
somebody
> >> > posts, and attack that person based upon a possibly false assumption.
> >> > Flaming is arrogant, as it is motivated by a false sense of
> >> > superiority.
> >> > To
> >> > have knowledge is not a virtue. It is what one decides to do with
one's
> >> > knowledge that is virtuous or non-virtuous. And it is helpful, when
> >> > looking
> >> > down the ladder at all the people who are below you, to take a look
up
> > at
> >> > all of the people that are above you, in order to get a realistic
> >> > perspective.
> >> >> > In short, it means "Lighten up." It means "Play nice."
> >> >> > --
> >> > HTH,
> >> > Kevin Spencer
> >> > .Net Developer
> >> > Microsoft MVP
> >> > Neither a follower
> >> > nor a lender be.
> >> >> > "Scott M." <s-mar@.nospam.nospam> wrote in message
> >> > news:urDg1Tk0EHA.3588@.TK2MSFTNGP14.phx.gbl...
> >> >> > Lighten up, and welcome to the newsgroups
> >> >>
> >> >> I really don't understand what this is supposed to mean. Don't
bother
> >> >> explaining it.
> >> >>
> >> >>
> >> >> >>
> >>
Well that's your opinion and you are entitled to it as I am I mine.

In just the same way that you wrote your first message to me, I wrote mine
to Jeff. So who's judging who?

"Kevin Spencer" <kspencer@.takempis.com> wrote in message
news:ueg6TSm0EHA.3972@.TK2MSFTNGP12.phx.gbl...
>> I do believe that when someone is flagrantly being nasty or intentionally
>> aloof and generally unhelpful, that it is worth pointing it out.
> Why? That is not the purpose of these newsgroups. Who made you the judge
> (or
> anyone else here, for that matter)? A good test of whether something is a
> good idea is to imagine what would happen if everyone practiced it. If
> everyone here judged each other's responses and posted their personal
> opinions of them, how useful would this newsgroup be? It would shortly
> become microsoft.public.dotnet.framework.aspnet.flamewars .
> Flaming simply inhibits people from speaking freely. It is
> counter-productive.
> I see stuff here every day that makes me wonder how some people have
> managed
> to get so far in the programming business. Stuff that is so ignorant it
> makes my stomach turn. Know what I do? Share it with a friend here at
> work,
> privately.
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Neither a follower
> nor a lender be.
> "Scott M." <s-mar@.nospam.nospam> wrote in message
> news:uS9o4Jm0EHA.1192@.tk2msftngp13.phx.gbl...
>> I do believe that when someone is flagrantly being nasty or intentionally
>> aloof and generally unhelpful, that it is worth pointing it out. I don't
>> like filtering anyone out because when I reply to a thread, I want to
>> know
>> everything that has been said up to that point so I don't repeat
>> something
>> that has been said or so that I might learn something from what has been
>> said (even monkeys, if left to their own devices and a typewriter, might
>> 'bang' out Shakespeare!).
>>
>>
>>
>> "Kevin Spencer" <kspencer@.takempis.com> wrote in message
>> news:OEzB2%23l0EHA.2568@.TK2MSFTNGP11.phx.gbl...
>> > Well, we certainly don't need to be policing each other here, do we?
> Just
>> > block his messages, if they are unpleasant to you. Outlook Express's
>> > newsreader can block messages by any number of parameters. I have
>> > personally
>> > blocked several obnoxious posters in the past. I don't even know if
>> > they
>> > still post these days. But on the other hand, I don't care! ;-)
>>> > --
>> > HTH,
>> > Kevin Spencer
>> > .Net Developer
>> > Microsoft MVP
>> > Neither a follower
>> > nor a lender be.
>>>> > "Scott M." <s-mar@.nospam.nospam> wrote in message
>> > news:eLmzz3l0EHA.1400@.TK2MSFTNGP11.phx.gbl...
>> >> Kevin, I agree completely. And what I didn't understand is why the
>> > comment
>> >> was directed at me, who is not doing the flaming.
>> >>
>> >> Jeff has established himself as someone who just wants to post
>> >> meaningless
>> >> garble and then get nasty when someone doesn't understand it or
> indicates
>> >> that it isn't helpful.
>> >>
>> >> My post to Jeff in this thread is not based on his comment(s) here in
>> >> just
>> >> this thread. He continuously has posted useless replies that don't
> help
>> >> anyone and make the OP feel stupid for asking.
>> >>
>> >> That is most certainly not how the NG's should work.
>> >>
>> >> "Kevin Spencer" <kspencer@.takempis.com> wrote in message
>> >> news:OOWpF6k0EHA.1196@.TK2MSFTNGP15.phx.gbl...
>> >> > It means that flaming is non-productive, not useful, and in fact,
>> >> > contributes to an atmosphere of confrontation and hostility, which
>> >> > is
>> > not
>> >> > conductive of helping people solve problems, the purpose of these
>> >> > newsgroups. It means that people who flame without posting help are
> not
>> >> > only
>> >> > not helpful, but harmful to the purpose of these newsgroups. It
>> >> > means
>> > that
>> >> > people who flame lack moral character and self-discipline. If a
> person
>> > who
>> >> > answers a question provides erroneous information, it is certainly
>> > helpful
>> >> > to correct the record, for the sake of those who don't know what is
>> > true.
>> >> > It
>> >> > is not necessary or helpful to attack any poster with personal
> attacks
>> > and
>> >> > insults. It is not useful to assume the worst about something
> somebody
>> >> > posts, and attack that person based upon a possibly false
>> >> > assumption.
>> >> > Flaming is arrogant, as it is motivated by a false sense of
>> >> > superiority.
>> >> > To
>> >> > have knowledge is not a virtue. It is what one decides to do with
> one's
>> >> > knowledge that is virtuous or non-virtuous. And it is helpful, when
>> >> > looking
>> >> > down the ladder at all the people who are below you, to take a look
> up
>> > at
>> >> > all of the people that are above you, in order to get a realistic
>> >> > perspective.
>> >>> >> > In short, it means "Lighten up." It means "Play nice."
>> >>> >> > --
>> >> > HTH,
>> >> > Kevin Spencer
>> >> > .Net Developer
>> >> > Microsoft MVP
>> >> > Neither a follower
>> >> > nor a lender be.
>> >>> >> > "Scott M." <s-mar@.nospam.nospam> wrote in message
>> >> > news:urDg1Tk0EHA.3588@.TK2MSFTNGP14.phx.gbl...
>> >> >> > Lighten up, and welcome to the newsgroups
>> >> >>
>> >> >> I really don't understand what this is supposed to mean. Don't
> bother
>> >> >> explaining it.
>> >> >>
>> >> >>
>> >>> >>> >>
>> >>
>>>>
>>
A wise man knows when to keep silent.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Scott M." <s-mar@.nospam.nospam> wrote in message
news:u1K8HYm0EHA.1524@.TK2MSFTNGP09.phx.gbl...
> Well that's your opinion and you are entitled to it as I am I mine.
> In just the same way that you wrote your first message to me, I wrote mine
> to Jeff. So who's judging who?
>
> "Kevin Spencer" <kspencer@.takempis.com> wrote in message
> news:ueg6TSm0EHA.3972@.TK2MSFTNGP12.phx.gbl...
> >> I do believe that when someone is flagrantly being nasty or
intentionally
> >> aloof and generally unhelpful, that it is worth pointing it out.
> > Why? That is not the purpose of these newsgroups. Who made you the judge
> > (or
> > anyone else here, for that matter)? A good test of whether something is
a
> > good idea is to imagine what would happen if everyone practiced it. If
> > everyone here judged each other's responses and posted their personal
> > opinions of them, how useful would this newsgroup be? It would shortly
> > become microsoft.public.dotnet.framework.aspnet.flamewars .
> > Flaming simply inhibits people from speaking freely. It is
> > counter-productive.
> > I see stuff here every day that makes me wonder how some people have
> > managed
> > to get so far in the programming business. Stuff that is so ignorant it
> > makes my stomach turn. Know what I do? Share it with a friend here at
> > work,
> > privately.
> > --
> > HTH,
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > Neither a follower
> > nor a lender be.
> > "Scott M." <s-mar@.nospam.nospam> wrote in message
> > news:uS9o4Jm0EHA.1192@.tk2msftngp13.phx.gbl...
> >> I do believe that when someone is flagrantly being nasty or
intentionally
> >> aloof and generally unhelpful, that it is worth pointing it out. I
don't
> >> like filtering anyone out because when I reply to a thread, I want to
> >> know
> >> everything that has been said up to that point so I don't repeat
> >> something
> >> that has been said or so that I might learn something from what has
been
> >> said (even monkeys, if left to their own devices and a typewriter,
might
> >> 'bang' out Shakespeare!).
> >>
> >>
> >>
> >> "Kevin Spencer" <kspencer@.takempis.com> wrote in message
> >> news:OEzB2%23l0EHA.2568@.TK2MSFTNGP11.phx.gbl...
> >> > Well, we certainly don't need to be policing each other here, do we?
> > Just
> >> > block his messages, if they are unpleasant to you. Outlook Express's
> >> > newsreader can block messages by any number of parameters. I have
> >> > personally
> >> > blocked several obnoxious posters in the past. I don't even know if
> >> > they
> >> > still post these days. But on the other hand, I don't care! ;-)
> >> >> > --
> >> > HTH,
> >> > Kevin Spencer
> >> > .Net Developer
> >> > Microsoft MVP
> >> > Neither a follower
> >> > nor a lender be.
> >> >> >> > "Scott M." <s-mar@.nospam.nospam> wrote in message
> >> > news:eLmzz3l0EHA.1400@.TK2MSFTNGP11.phx.gbl...
> >> >> Kevin, I agree completely. And what I didn't understand is why the
> >> > comment
> >> >> was directed at me, who is not doing the flaming.
> >> >>
> >> >> Jeff has established himself as someone who just wants to post
> >> >> meaningless
> >> >> garble and then get nasty when someone doesn't understand it or
> > indicates
> >> >> that it isn't helpful.
> >> >>
> >> >> My post to Jeff in this thread is not based on his comment(s) here
in
> >> >> just
> >> >> this thread. He continuously has posted useless replies that don't
> > help
> >> >> anyone and make the OP feel stupid for asking.
> >> >>
> >> >> That is most certainly not how the NG's should work.
> >> >>
> >> >> "Kevin Spencer" <kspencer@.takempis.com> wrote in message
> >> >> news:OOWpF6k0EHA.1196@.TK2MSFTNGP15.phx.gbl...
> >> >> > It means that flaming is non-productive, not useful, and in fact,
> >> >> > contributes to an atmosphere of confrontation and hostility, which

> >> >> > is
> >> > not
> >> >> > conductive of helping people solve problems, the purpose of these
> >> >> > newsgroups. It means that people who flame without posting help
are
> > not
> >> >> > only
> >> >> > not helpful, but harmful to the purpose of these newsgroups. It
> >> >> > means
> >> > that
> >> >> > people who flame lack moral character and self-discipline. If a
> > person
> >> > who
> >> >> > answers a question provides erroneous information, it is certainly
> >> > helpful
> >> >> > to correct the record, for the sake of those who don't know what
is
> >> > true.
> >> >> > It
> >> >> > is not necessary or helpful to attack any poster with personal
> > attacks
> >> > and
> >> >> > insults. It is not useful to assume the worst about something
> > somebody
> >> >> > posts, and attack that person based upon a possibly false
> >> >> > assumption.
> >> >> > Flaming is arrogant, as it is motivated by a false sense of
> >> >> > superiority.
> >> >> > To
> >> >> > have knowledge is not a virtue. It is what one decides to do with
> > one's
> >> >> > knowledge that is virtuous or non-virtuous. And it is helpful,
when
> >> >> > looking
> >> >> > down the ladder at all the people who are below you, to take a
look
> > up
> >> > at
> >> >> > all of the people that are above you, in order to get a realistic
> >> >> > perspective.
> >> >> >> >> > In short, it means "Lighten up." It means "Play nice."
> >> >> >> >> > --
> >> >> > HTH,
> >> >> > Kevin Spencer
> >> >> > .Net Developer
> >> >> > Microsoft MVP
> >> >> > Neither a follower
> >> >> > nor a lender be.
> >> >> >> >> > "Scott M." <s-mar@.nospam.nospam> wrote in message
> >> >> > news:urDg1Tk0EHA.3588@.TK2MSFTNGP14.phx.gbl...
> >> >> >> > Lighten up, and welcome to the newsgroups
> >> >> >>
> >> >> >> I really don't understand what this is supposed to mean. Don't
> > bother
> >> >> >> explaining it.
> >> >> >>
> >> >> >>
> >> >> >> >> >> >>
> >> >>
> >> >> >>
> >>
Very profound. But there must have been a reason that you spoke up in the
first place. May I suggest that the same thing that caused you to speak up
to me, was the same thing that caused me to speak up to Jeff?

"Kevin Spencer" <kspencer@.takempis.com> wrote in message
news:e8DcAnm0EHA.3280@.TK2MSFTNGP12.phx.gbl...
>A wise man knows when to keep silent.
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Neither a follower
> nor a lender be.
> "Scott M." <s-mar@.nospam.nospam> wrote in message
> news:u1K8HYm0EHA.1524@.TK2MSFTNGP09.phx.gbl...
>> Well that's your opinion and you are entitled to it as I am I mine.
>>
>> In just the same way that you wrote your first message to me, I wrote
>> mine
>> to Jeff. So who's judging who?
>>
>>
>> "Kevin Spencer" <kspencer@.takempis.com> wrote in message
>> news:ueg6TSm0EHA.3972@.TK2MSFTNGP12.phx.gbl...
>> >> I do believe that when someone is flagrantly being nasty or
> intentionally
>> >> aloof and generally unhelpful, that it is worth pointing it out.
>>> > Why? That is not the purpose of these newsgroups. Who made you the
>> > judge
>> > (or
>> > anyone else here, for that matter)? A good test of whether something is
> a
>> > good idea is to imagine what would happen if everyone practiced it. If
>> > everyone here judged each other's responses and posted their personal
>> > opinions of them, how useful would this newsgroup be? It would shortly
>> > become microsoft.public.dotnet.framework.aspnet.flamewars .
>>> > Flaming simply inhibits people from speaking freely. It is
>> > counter-productive.
>>> > I see stuff here every day that makes me wonder how some people have
>> > managed
>> > to get so far in the programming business. Stuff that is so ignorant it
>> > makes my stomach turn. Know what I do? Share it with a friend here at
>> > work,
>> > privately.
>>> > --
>> > HTH,
>> > Kevin Spencer
>> > .Net Developer
>> > Microsoft MVP
>> > Neither a follower
>> > nor a lender be.
>>> > "Scott M." <s-mar@.nospam.nospam> wrote in message
>> > news:uS9o4Jm0EHA.1192@.tk2msftngp13.phx.gbl...
>> >> I do believe that when someone is flagrantly being nasty or
> intentionally
>> >> aloof and generally unhelpful, that it is worth pointing it out. I
> don't
>> >> like filtering anyone out because when I reply to a thread, I want to
>> >> know
>> >> everything that has been said up to that point so I don't repeat
>> >> something
>> >> that has been said or so that I might learn something from what has
> been
>> >> said (even monkeys, if left to their own devices and a typewriter,
> might
>> >> 'bang' out Shakespeare!).
>> >>
>> >>
>> >>
>> >> "Kevin Spencer" <kspencer@.takempis.com> wrote in message
>> >> news:OEzB2%23l0EHA.2568@.TK2MSFTNGP11.phx.gbl...
>> >> > Well, we certainly don't need to be policing each other here, do we?
>> > Just
>> >> > block his messages, if they are unpleasant to you. Outlook Express's
>> >> > newsreader can block messages by any number of parameters. I have
>> >> > personally
>> >> > blocked several obnoxious posters in the past. I don't even know if
>> >> > they
>> >> > still post these days. But on the other hand, I don't care! ;-)
>> >>> >> > --
>> >> > HTH,
>> >> > Kevin Spencer
>> >> > .Net Developer
>> >> > Microsoft MVP
>> >> > Neither a follower
>> >> > nor a lender be.
>> >>> >>> >> > "Scott M." <s-mar@.nospam.nospam> wrote in message
>> >> > news:eLmzz3l0EHA.1400@.TK2MSFTNGP11.phx.gbl...
>> >> >> Kevin, I agree completely. And what I didn't understand is why the
>> >> > comment
>> >> >> was directed at me, who is not doing the flaming.
>> >> >>
>> >> >> Jeff has established himself as someone who just wants to post
>> >> >> meaningless
>> >> >> garble and then get nasty when someone doesn't understand it or
>> > indicates
>> >> >> that it isn't helpful.
>> >> >>
>> >> >> My post to Jeff in this thread is not based on his comment(s) here
> in
>> >> >> just
>> >> >> this thread. He continuously has posted useless replies that don't
>> > help
>> >> >> anyone and make the OP feel stupid for asking.
>> >> >>
>> >> >> That is most certainly not how the NG's should work.
>> >> >>
>> >> >> "Kevin Spencer" <kspencer@.takempis.com> wrote in message
>> >> >> news:OOWpF6k0EHA.1196@.TK2MSFTNGP15.phx.gbl...
>> >> >> > It means that flaming is non-productive, not useful, and in fact,
>> >> >> > contributes to an atmosphere of confrontation and hostility,
>> >> >> > which
>> >> >> > is
>> >> > not
>> >> >> > conductive of helping people solve problems, the purpose of these
>> >> >> > newsgroups. It means that people who flame without posting help
> are
>> > not
>> >> >> > only
>> >> >> > not helpful, but harmful to the purpose of these newsgroups. It
>> >> >> > means
>> >> > that
>> >> >> > people who flame lack moral character and self-discipline. If a
>> > person
>> >> > who
>> >> >> > answers a question provides erroneous information, it is
>> >> >> > certainly
>> >> > helpful
>> >> >> > to correct the record, for the sake of those who don't know what
> is
>> >> > true.
>> >> >> > It
>> >> >> > is not necessary or helpful to attack any poster with personal
>> > attacks
>> >> > and
>> >> >> > insults. It is not useful to assume the worst about something
>> > somebody
>> >> >> > posts, and attack that person based upon a possibly false
>> >> >> > assumption.
>> >> >> > Flaming is arrogant, as it is motivated by a false sense of
>> >> >> > superiority.
>> >> >> > To
>> >> >> > have knowledge is not a virtue. It is what one decides to do with
>> > one's
>> >> >> > knowledge that is virtuous or non-virtuous. And it is helpful,
> when
>> >> >> > looking
>> >> >> > down the ladder at all the people who are below you, to take a
> look
>> > up
>> >> > at
>> >> >> > all of the people that are above you, in order to get a realistic
>> >> >> > perspective.
>> >> >>> >> >> > In short, it means "Lighten up." It means "Play nice."
>> >> >>> >> >> > --
>> >> >> > HTH,
>> >> >> > Kevin Spencer
>> >> >> > .Net Developer
>> >> >> > Microsoft MVP
>> >> >> > Neither a follower
>> >> >> > nor a lender be.
>> >> >>> >> >> > "Scott M." <s-mar@.nospam.nospam> wrote in message
>> >> >> > news:urDg1Tk0EHA.3588@.TK2MSFTNGP14.phx.gbl...
>> >> >> >> > Lighten up, and welcome to the newsgroups
>> >> >> >>
>> >> >> >> I really don't understand what this is supposed to mean. Don't
>> > bother
>> >> >> >> explaining it.
>> >> >> >>
>> >> >> >>
>> >> >>> >> >>> >> >>
>> >> >>
>> >>> >>> >>
>> >>
>>>>
>>

Stuck

im building a ecommerce site (still)
any way i need to work out the shipping fee depending on the combined weight off the products.
each product has a column in the database called weight and at moment is an integer??

heres the sql statment

ALTER PROCEDURE GetTotalWeight
(@dotnet.itags.org.CartID varchar(50))
AS

DECLARE @dotnet.itags.org.Amount int

SELECT @dotnet.itags.org.Amount = SUM(Product.[Weight]*ShoppingCart.Quantity)
FROM ShoppingCart
INNER JOIN Product
ON ShoppingCart.ProductID = Product.ProductID
WHERE ShoppingCart.CartID = @dotnet.itags.org.CartID

IF @dotnet.itags.org.Amount IS NULL
SELECT 0
ELSE
SELECT @dotnet.itags.org.Amount
RETURN

heres the procedure!
Public Function GetTotalWeight() As Decimal
' Create the connection object
Dim connection As New SqlConnection(connectionString)

' Create and initialize the command object
Dim command As SqlCommand = New SqlCommand("GetTotalWeight", connection)
command.CommandType = CommandType.StoredProcedure

' Add an input parameter and supply a value for it
command.Parameters.Add("@dotnet.itags.org.CartID", SqlDbType.VarChar, 50)
command.Parameters("@dotnet.itags.org.CartID").Value = shoppingCartId

' Save the total amount to a variable
Dim amount As Decimal
connection.Open()
amount = command.ExecuteScalar()

' Close the connection
connection.Close()

' Return the amount
Return amount

If amount <= 1000 Then
amount = 3.46
ElseIf amount > 1000 < 1500 Then
amount = 4.45
ElseIf amount > 1500 <= 2000 Then
amount = 4.78
ElseIf amount > 2000 <= 4000 Then
amount = 7.2
ElseIf amount > 4000 <= 6000 Then
amount = 7.86
ElseIf amount > 6000 <= 8000 Then
amount = 8.96
ElseIf amount > 8000 <= 10000 Then
amount = 9.62
ElseIf amount > 10000 Then
amount = 11.21
End If

End Function

heres it setting it to the label
ShippingCostLabel.Text = String.Format("{0:c}", cart.GetTotalWeight())

obviousley this is wrong as the returned vale is always the combined weight so it obviousley bypasses the if statment!

can sum 1 plz help me on this as im baffled!
and if u really want to help out is there away to store the prices in a database so they can be modified?? but just getting an if stament like that 2 work would be great!

Thx in advance!First question is, what is shoppingCartId? Are you sure that is set to a valid shopping cart id?

Second, if you run the query in Query Analyzer, do you get the proper result there?

Regarding your final question about storing prices in a database so they can be modified, yes there is. Any data in a database can be modified, assuming that you have permissions to do so. You can use an UPDATE statement to change them.

Is that what you meant?

Don
Yep the sql statement works it calculates the weight and passes it on!

however its not useing the if statment after

return amount its just bypassing that big if statment how do u get it so it recaculates the amount varible using that big ass if statment??

what i meant with the database editing is how would u go about it cos u would have 2 compare the weight against a column in the databse?

say the column in the database

(weight int 4) (price money)
1000 £3.50
2000 £6

and the combined weight off the product was say 1500 so that would be the price for the 2000 row so how would u do that?? in the sql statemmnet i assume but i only now how to recive stuff if its precise.

Is that clearer??
can any1 help?? dont care about the database bit but how do i get that if statment working? thx!