Slade 66 Practically a Master Poster

had babies, and

How the heck does that fit?

I killed them

Slade 66 Practically a Master Poster

One question... When using "search" what exactly does it do? I find alot of the time it comes up with irrelevant results. Just wondering.


Slade :) :D

Slade 66 Practically a Master Poster

these small goats

Slade 66 Practically a Master Poster

Cool... I'm guessing it's not freeware yes?

Slade 66 Practically a Master Poster

Well, I haven't been here long so I wasn't sure what had changed one day when I logged on, but I was freaking out because I knew where somethings previously were and now they weren't... But I've grown used to this and although I can't really remember the old style all that well, I prefer this :cheesy:.

Slade

Slade 66 Practically a Master Poster

c4d? What's that? I love photoshop!

Slade 66 Practically a Master Poster

Ok, I have been trying to find where I can make a vb.net perminant hit counter, most are by using text files (and I would definitely prefer them over a database). My problem now is, I can't find any code to make one! The little code I can find is poorly explained and I was wondering if one of you guys could maybe help me out here. God Bless!:cry:

Slade 66 Practically a Master Poster

kinky bed chamber

Slade 66 Practically a Master Poster

several small goats

Slade 66 Practically a Master Poster

I'm not exactly 100% sure whether or not this will work but any help is appreciated right?

Two possible factors you may consider:
1. harddisk and its controller. i would suggest you have a complete surface scan on the HDD, under dos or windows real mode.
2. Network adapter, Can you try replace one to move it to another similar computer for test?

It could also be a hardware problem, I have known people who's computers have crashed upon connection to the internet just because their RAM stick was loose. Have you had any problems with hardware drivers in the past? Could you please specify the details of the crash? Does it freeze, does it give you a blue screen?

Slade 66 Practically a Master Poster

Hehe Done :cheesy:. It's So satisfying to actually figure something out by yourself. Here is the Code.

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim CurrentPage As String

CurrentPage = Request.RawUrl

Select Case CurrentPage

Case "/gwt/Index.aspx"
lnkHome.ForeColor = Color.Red
lnkVac.ForeColor = Color.Empty
lnkIntrnl.ForeColor = Color.Empty
lnkReg.ForeColor = Color.Empty
lnkEmp.ForeColor = Color.Empty
lnkLnks.ForeColor = Color.Empty
lnkCntct.ForeColor = Color.Empty
End Select

and I just proceeded to put all of the pages in there, works like a charm. However, even though I have been struggling to figure that out, my boss thinks the links are dull and now I have to create some wacky tabacky rollover in photoshop for him. However, my efforts were not a waste as I have learned much along the way to solving that problem. Happy coding all, hope you guys are as successful as I have been... so far ;).

Slade 66 Practically a Master Poster

I got it to work!!! The way I intended it to work.

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

 

If Request.RawUrl = "/gwt/Index.aspx" Then

lnkHome.ForeColor = Color.Red

lnkVac.ForeColor = Color.Empty

lnkIntrnl.ForeColor = Color.Empty

lnkReg.ForeColor = Color.Empty

lnkEmp.ForeColor = Color.Empty

lnkLnks.ForeColor = Color.Empty

lnkCntct.ForeColor = Color.Empty

End If

That is under my header control, it works WOOOOHOOO!

...Now I have to minimise coding by using the case system... hmmm.:)

Slade 66 Practically a Master Poster

This thread is better than going and reading some maddox, really quite entertaining.

Slade 66 Practically a Master Poster

ok I used the global.asax page for this one, got this information off www.4guysfromrolla.com, good site.


Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)

'This variable Hits will store the # of visitors

Application("Hits") = 0

End Sub

Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)

'Lock the Application for concurrency issues

Application.Lock()

'Increment the counter

Application("Hits") = Application("Hits") + 1

'Unlock the Application

Application.UnLock()

End Sub

Now to declare it in my webform...

This page has been viewed
<%=application("Hits")%>
times.

Ok guys, this works but I would not by any means recommend it because it resests itself every time you rebuild the project, plus it resets whenever the server your site is on reboots or restarts, if anyone has a better alternative to this, please let me know. The next question I have is how do I replace the number on the hit counter, with a graphic, say it said 2 people have visited the page in plain text, I want that "2" to be an image of a 2, I've found a little on this but it's not working. Will post back if I find anything out.

Slade 66 Practically a Master Poster

Anyone got any idea's for a hit counter for a webpage in asp .NET, using the VB code behind? Any help would be really appreciated.

Slade 66 Practically a Master Poster

if you require anything else... let me know please

Slade 66 Practically a Master Poster

Sorry, I did not really explain the site properly. Each link is a new webform, I have used zero query strings. Home page is index.aspx, register page is register.aspx, Contact page is contact.aspx and so on.

Slade 66 Practically a Master Poster

head.ascx is the web control I am using for the header, and gwt is the name of my project......

Slade 66 Practically a Master Poster

I just tried something else, in index.aspx i've put

imports gwt.head

then I put

lnkHome.ForeColor = Color.Red

I go to build, but there is an error because gwt.head is protected or something?? I will keep trying and keep you updated, I need help!

Slade 66 Practically a Master Poster

Hi, I am currently creating a website for my company and I am new to VS .NET programming. I have been using it for about two or three months as a trainee but my supervisor has currently gone away for a project she must complete up there. Anyway, my problem is, I am trying to make the header display different colored links for the page in question, no it's not as simple as using the average html alink as it is SPECIFICALLY for the header only and must only change for the page in question. E.g. I am currently on the "Index.aspx" page, I would like for the "Home" link in the header to change from navy blue to dark orange or red, whatever. When I change the page I wish for the "Home" Link to return to navy blue and the page in question's link to be dark orange or red. This is the code I have so far:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

If (what goes here?) Is ("Index.aspx") Then

lnkHome.ForeColor = Color.DarkOrange

lnkEmp.ForeColor = Color.Empty

lnkVac.ForeColor = Color.Empty

lnkIntrnl.ForeColor = Color.Empty

lnkReg.ForeColor = Color.Empty

lnkLnks.ForeColor = Color.Empty

lnkCntct.ForeColor = Color.Empty

End If

End Sub


Oh, by the way, the header is a control, and the code snippet above was extracted from it. If you could help out here I would be so thankful to you as …