|
yes,
if there is any link refer to me..
|
|
|
|
|
jaraldumary wrote: if there is any link refer to me..
Check It[^]
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
|
Hello
I am using ASP.NET to develope a web site.can any body plz tell me how to create a hit counter for my web site.
|
|
|
|
|
Easy method is to keep the count in a Application variable and increment it upon each request.
|
|
|
|
|
at what level i have to do the increament.can i do it at "PAGE_LOAD" level.
|
|
|
|
|
You can do it in the session_start event in global.asax . Page_load will be fired for all postbacks and you will get massive count.
|
|
|
|
|
thanx for the response it is working
|
|
|
|
|
souravghosh18 wrote: can i do it at "PAGE_LOAD" level.
No!.
You need to know about Application_start() / Session_Start() on Global.asax file.
Check This From Navaneeth's Article[^]
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
thanx for the response it is working fine
|
|
|
|
|
souravghosh18 wrote: I am using ASP.NET to develope a web site.can any body plz tell me how to create a hit counter for my web site.
Why to re-invent the wheel.
You want hit counter, visit
http://www.hit-counter-download.com/[^]
|
|
|
|
|
Hello all
Can anybody tell me
What are the com component and what is their use in asp.net
Thanks
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
rahul.net11 wrote: What are the com componen
COM[^]
rahul.net11 wrote: what is their use in asp.net
No use
|
|
|
|
|
Thanks
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
Can u explain that how the timer control works..If possible with example plz.
|
|
|
|
|
Timer control which comes with AJAX tookit? If yes, it uses JS setTimeout() method.
|
|
|
|
|
how to unzip file which contains password using c#.net with out using EACompressionCF2. file
Thank you
vijaya
|
|
|
|
|
|
Hello Everyone,
I want to play flash videos(.flv) songs in FLV player in ASP.NET
Can anybody suggest the way....
|
|
|
|
|
Can you explain in deatils. Do you want to play a single file of files came through database.
Thanks
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
The files are coming from the database.
|
|
|
|
|
Im tying to write an exception message using javascript in code behind, using
catch (Exception ex)
{
string err = ex.Message;
string script = "alert('" + err + "');";
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "Msg", script, true);
}
But sometimes the message doesnt get dislayed and the whole application freezes, i have noticed that its caused by the content of ex.Message
eg "Unable to cast object of type 'System.DBNull' to type 'System.String'." - gives a problem. The easiest thing to do is to replace the ' signs and it works fine, but this is applies to this error message only, is there a generic solution for this problem.
Thank you.
|
|
|
|
|
try with.. this
catch (Exception ex)
{
response.write("'alert(' + ex.Message + ');'");
}
|
|
|
|
|
Thank you for your response, but there is no output from response;
i just took it as you wrote it, maybe its the synhax for response i will chaeck that and will come back to u.
Thank u.
|
|
|
|
|
response.write("<script>'alert(' + ex.Message + ');'</script>");
this wont work if you have ' in the exception message
think we have to write a method which replaces all special characters (ex: ' with \' and " with \")
|
|
|
|