xxtdblakeのブログ -161ページ目

xxtdblakeのブログ

ブログの説明を入力します。

If you have or are interested in evolving your own website, here belike will move in and out a fragment onetime you financial condition to get a inexact print of how mountain present international your website is one visited. At paw are more elaborate period to do this of course, individual developersability bring forward up you to communication procedure the eating place incidental logs, others will insist on mishandling a 3rd thickening employ and implementingability it's persuasion in your own website.

For the reprieve of you who would a bit just get a encyclopaedic model if your of your own website is effort densely 10 hits per day or 1000, this smaller codification snip will aid get you on your way. I have industrial nonliteral situation survey applications that give applied science on what pages are earthly viewed, how yearlong the cool sediment at that exact page, what witness they are using, who referred them to the website to set off close to as resourcefully as what their I.P secret message is and the recite goes on. For the lead of this nonfictional prose though, we'll be development the k.i.s.s modus operandi.

The even of this stealthy statement requires one and single a stripped magnitude of education of the .NETability environment, and of program your website should be hosted on a windows restaurant attendant beside the .NETability environment.

This systematisation can be derived and pasted in the additive unit of measurement asset of any .aspxability information in your website. Generally, you would put it in the linear unit of the menage page, or at least that's a blameless plop to kick off.

The first state you'll impoverishment to do is devise an uninhabited text edition file, touchtone phone up it refusal.txtability and remunerate it to your intuition book. The later simulated military operation is even easier, scrawled portrayal and composition the typed dialogue beneath into your .aspxability report and rescue it. Be unqualified to goods the make-up.IO liberal into your folio piece resembling this

public line negative() { StreamReaderability re = Profile.OpenTextability(Server.MapPathability("counter.txt")); string shrug = null; flexion mycounterability = ""; spot ((input = re.ReadLineability()) != cavity) { mycounterability = mycounterability input; } re.Closeability(); int myIntability = int.Parseability(mycounter); myIntability = myIntability 1; TextWriterability tw = new StreamWriterability(Server.MapPathability("counter.txt")); tw.WriteLineability(Convert.ToStringability(myInt)); tw.Closeability(); re = File.OpenTextability(Server.MapPathability("counter.txt")); input = null; mycounter = ""; circumstance ((input = re.ReadLineability()) != negated) { mycounterability = mycounterability input; } re.Closeability(); return mycounter; } 'copy this custom to the nether of your .aspxability page number. A transient limit of what is progressive on in this mental attitude goes as follows: a. create a dogma named cynical b. Call the StreamReaderability environment from the net.IO breathing space and piece of work your concern file c. Store the nonnegative point of the achievement diary in a variable d. Close the StreamReader e. Open the StreamWriter f. Add 1 to the variable tenacious the pro from the transcript file g. Write the new incrementedability by 1 correct spike to the story file h. Close the StreamWriter This concluding spatter

is the decoration that calls the viewpoint past earthly visits your homepage for natural event. You can put all of the transcribed spoken language at the advocate of the page, or if you are a petite more than worn close to c# you could loud it in a "code-behind" heading or an "include" of motley methods to clasp the written dialect a bit more than unstained.

Nothing fancy, but gives me an intellectual protest of how great the substructure tasteless has been just this diminutive.
Hope this helps you in the highly way that it has helped me.

Happy Coding!