|
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 \")
|
|
|
|
|
You can try
Response.write("alert('" + err + "');");
You can also try placing a label on the page then assign text to label as
message.Text = "");
|
|
|
|
|
Hi All ,
I need to get section wise text in a file.
The is possible format of text.
1.Section 1
1.1. Sub Section
Some Text Here
2.Section 2
Some Text Here
Some Text Here
3.Section 3
Some Text Here
Some Text Here
Some Text Here
I need to get Section Title(ie;Section1,Section 2......) and Text with in Section inorder to save Section Text along with Section Title in Database.
Any help is highly appreciated.
|
|
|
|
|
could any one help me out by giving me the code for downloading file and also for simple e-mail system with some explanations?
|
|
|
|
|
|
Subin Alex wrote: could any one help me out by giving me the code for downloading file and also for simple e-mail system with some explanations?
You haven't got the concept of this site. Read this[^] especially point2 and point9.
|
|
|
|
|
hi to all,
i m creating one application, in which i need to get all the list of domain like workgorup etc. and there list of pc's in LAN.
i m using asp.net1.1
pls give me suggestion if any one have.
Thanx in advance...
am.net
modified on Thursday, January 8, 2009 12:48 AM
|
|
|
|
|
am.net wrote: pls give me suggestion if any one have.
My suggestion - don't make all your text bold
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
You'll probably want to create an LDAP query against your active directory. There are a number of examples online - just bear in mind that your asp.net process will need to have sufficient authorisation to make these queries.
|
|
|
|