Catching Clicks or Whatelse...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello Everybody.... this is my first post here so excuseme if I don't follow
the rules since I didn't know it.... well here we go

there is my topic... I have a site where we put articles which redirect the
user to another page with the desire one. The thing is that : how can i
catch when the user were redirected to the page in order to get some fields
and put it in a DataBase to manage some statistics ?

i thought that i can do that in the Page_load an the PostBack Property...
but.. how?

some advices here?
 
Ola Jose,

Use a LinkButton Web Server Control for your hyperlink. This Web Server
Control displays as a normal Hyperlink, but posts a Click event back to the
server when clicked. You can then handle the Click event on the server,
record whatever you need to, and then use Response.Redirect to redirect the
browser to the URL of the LinkButton.

BTW, for future ASP.Net questions, try the
microsoft.public.dotnet.framework.aspnet newsgroup. That newsgroup is all
about ASP.Net, while this one is more general.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer

Presuming that God is "only an idea" -
Ideas exist.
Therefore, God exists.
 
Back
Top