Re: Help with inline code?



Not sure what you are trying to achieve. aere you trying to make a page
counter to judge how many hits your site gets? If so why not make a
statistics table in your db and increment a value in there everytime a
appstart event is called? Then read this back when you need to display your
counter?

--
Dan
"brett" <account@xxxxxxxxx> wrote in message
news:1136530552.139206.171060@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I'd like to use a conditional that checks the URL to make sure I'm not
> on the localhost, which will increment the counter. I want the counter
> to work only when the page is on the web server. I have the long
> string below which is not fitting into the Response.Write() method as
> one string.
>
>
> <script language="C#" runat="server">
> private void showCounter()
> {
> Response.Write(@"
> <!-- Start of Code -->
> <script type="text/javascript" language="javascript">
> var sc_project=1000;
> var sc_invisible=1;
> var sc_partition=10;
> var sc_security="7708ea54";
>
> </script>
> <script type="text/javascript" language="javascript"
> src="http://www.abc.com/counter/counter.js";></script>
> <noscript>
> <a href="http://www.abc.com/"; target="_blank"><img
> src="http://c11.abc.com/counter.php?sc_project=1000&amp;java=0&amp;security=7708ea54&amp;invisible=1";
> alt="free statistics" border="0"></a>
> </noscript>
> <!-- End of Code -->
> ");
> }
> </script>
>
>
> How should I be doing this?
>
> Thanks,
> Brett
>


.



Relevant Pages

  • Re: compare numbers behaves strange...
    ... compare them and depending on the value I increment a counter. ... to a string somewhere in an unquoted part of his program (i.e. ... the opposite of the conversion you propose below). ...
    (comp.lang.awk)
  • Populating an Array
    ... Public Judges() As Judge ... Public Sub New ... Public JudgeFirstName As String ... Public JudgeType As String ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Strat Question
    ... working on scales that my pick hits the middle pickup and throws off my ... E string. ... My pick hits the rounded end of the pickup cover at times. ... just in front of the bridge because it feels solid and I can mute ...
    (alt.guitar)
  • Re: An Example for Discussion
    ... Below is a string function I wrote this morning that will be going ... command in *nix does by default: given a list of "from" characters and a ... you're missing a 'for' loop. ... You end a 'while' loop with an increment. ...
    (comp.lang.c)
  • Re: "Array to String Conversion" error when constructing a multi-dimensional array
    ... Don't fix bottom-posting, fix topposting..... ... I don't understand what this $increment variable has to do with ... turn the array into the string '1' somewhere. ... Damn Rik, ...
    (comp.lang.php)