|
|
Is there any shortcut to get applicationname in asp.net?
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
Gamzun wrote: Is there any shortcut to get applicationname in asp.net?
I didn't get you? What application name you are asking about ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Try this :
Request.ApplicationPath.Substring(1,Request.ApplicationPath.Length-1)
|
|
|
|
|
Sorry my mistake, I didn't ask clearly in first place. I've a provider in web.config and in that ApplicationName is placed. My question was, is it possible to get that name?
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
Yes.. If you placed the Application name in web.config, use
ConfigurationMageanr.AppSettings to get it.
|
|
|
|
|
Thanks but I was talking about application name in provider
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
Hi,
i'am looking for a hint how i can create something similiar to the article search on this website.
My goal is to enter a seach string in a textbox and after every keystroke i want the filtered resultset in a listbox.
If possible evterything should be done programatically without a webservice if possible.
Regards, Alex
|
|
|
|
|
From where do you want to search ? Its from web site content or from database ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
I want to search from a database
|
|
|
|
|
generally no web service is required to create search functionality in a website.
Use normal sql to find elements. Code purely based on how the database schema is and how you are going to facilitate the functionality.
|
|
|
|
|
Hi All,
I am getting below error while building my Application. can anyone help on this.
Error 1 Failed to start monitoring changes to 'C:\..\global.asax' because access is denied.
fttyhtrhyfytrytrysetyetytesystryrty
|
|
|
|
|
When your are getting this error ? Your site is running from IIS or Visual Studio ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi abhijit,
i am running that site from visualstudio
fttyhtrhyfytrytrysetyetytesystryrty
|
|
|
|
|
friends,
i am facing problem related to my asp.net website
http://www.proxdubai.com/[^]
when i open this website on Firefox it gives me error
"
Reported Attack Site!
This web site at www.proxdubai.com has been reported as an attack site and has been blocked based on your security preferences.etc....."
can any one guide me how to resolve this issue and one more thing when i replace my default.aspx or home.aspx ,first.aspx
whatever my default page is on the server this problem goes aways..
any help would be appriciated.
Http://www.gen-sys.com
Government Dyal Singh College Lahore.
|
|
|
|
|
Did you read the message by clicking on "Why was the site is blocked?" button ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
yes i did but still dont understand why that occured
Http://www.gen-sys.com
Government Dyal Singh College Lahore.
|
|
|
|
|
this might occur if the server is transmitting malicious scripts. Might be your server needs Antivirus.
|
|
|
|
|
LOL... any other answer??
Http://www.gen-sys.com
Government Dyal Singh College Lahore.
|
|
|
|
|
Rather you can use a Firewall to prevent the attacks in future ...
|
|
|
|
|
I am having some problem when trying to re-publish the website.
My website a live and there are millions of user logged-in. I did some changes in our project and again when i am trying to uploading the published page (only updated single .aspx) and all dlls. The session of existing user get lost. as I want to maintain the existing user's session .
Can anyone tell me how I can handle the problem.
thanks,
Sri...
|
|
|
|
|
If you dont change the Web.config and/or replace dlls this will not happen. I have placed only aspx several times and found no issue.
Have you changed your web.config ?
|
|
|
|
|
Thanks for ur reply,
But i did not make any change in the web.config I am uploading only the dlls and aspx pages. but session expired.
Any idea.
Thanks,
Sri...
|
|
|
|
|
I can't remember off the top of my head, but does storing the session state in SQL get around this problem?
|
|
|
|
|
yes, you are correct. you can store the sessions in the state server.
Everything Is Possible!
|
|
|
|