|
This is my appsettings from web.config
<appSettings>
<add key="EncKey" value="%P[,#$x/#@?,:*"></add>
<add key="PathLogout" value="http://10.1.5.29/CID/Logout.aspx"></add> </appSettings>
also in the code behind of the master page i have added
Imports System.Configuration.ConfigurationSettings
Christian Graus wrote: I am not sure where this AppSettings: format is coming from. Your best bet IMO is to reference a codebehind variable in your ASPX and in your code behind, write code that really DOES read your app settings.
iam not sure of what u have said
ru saking me to read the value on code behind using
ConfigurationManager.ConnectionStrings("KeyName")
if i do so how can i read it in the javascript, u mean to load it to hidden variable.
thanks again for ur help
|
|
|
|
|
What I'm saying is, have the code in the aspx that creates the javascript variable access a property in your codebehind, and in the codebehind, have it return the right property from the config. ConfigurationManager.ConnectionStrings("PathLogout") or whatever. Indeed, you could just use RegisterClientScriptBlock to create the variable entirely in your code behind.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I want to apply english spell check for multiline textbox in asp.net 1.0
How can I do this???? can any one send me code
Thanks!!!!!
|
|
|
|
|
The most obvious way I can think of, is to control Word on your server, have it do a spell check, and send the results back down to the client.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Check out this webservice
http://services.aonaware.com/DictService/[^]
You may need to check with the webmaster regarding usage guidelines, number of allowed queries, usage in a commercial application and similar thoughts.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi
I m using ASP.NET AJAX modalpopup extender and I want that when popup is displayed and something is written on the textbox of ModalPOPUP, i could get that value in a variable. How can i get it?
Regards.
Ali
|
|
|
|
|
Independent of if a text box is in modal popup or not you can get the value if the textchanges ny addeing the code in
OnTextChanged event.
string val = TextBox1.Text
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Hi,
Put button that opens Modalpopup outside the UpdatePanel
and write your impl that written text on textbox , I hope this will work.
|
|
|
|
|
Explain me about overall .NET that means shortly about .NET
|
|
|
|
|
Ramalakshmi.I wrote: Explain me about overall .NET that means shortly about .NET
So, you want a summary of a summary?
Ok, .NET is a platform.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Tihs is the ASP.NET forum. ASP.NET is a specific .NET technology. I recommend you buy a book, do a google, and generally show some level of intelligence and ability to do basic research. If you can't do that, then, to be honest, you're not going to benefit from anything anyone may choose to tell you.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Resource File: Resource.resx
Web Config File: Web.Config
Dear Friends,
I have created one project in which i can access data from database most of the time for that i added a connection string through web config file but here is my confusion start i found that i can access the data of "Resource file" from anywhere using Global keyword
for example:
I have created ConnectionString in resource file as shown below
Name: ConnectionString
Value: Data Source=SERVER;Initial Catalog=ABC;User ID=sa;Password=***
Comment: Use for Database Connection.
now i can access this from anywhere in my application using follwing syntex
global::Resources.Resource.ConnectionString.ToString();
can anyone explain me why there is web config file and resource file having same functionality but different name i know that there is some reason i want that reason thanks in advanced
Sasmi
|
|
|
|
|
Resource files, from what I understand, are ment to be used for localization. Web.config is more for local independent settings.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
hi
What is the diff between ajax and callback method . Why call back method coding is not working in firefox ?
what is the diff between following paging methods :
1. postback
2. CallBack
3.Xmlclientside
|
|
|
|
|
AJAX is just a fancy name for an asyncronous callback using XML. Postback refreshes the entire page. Xmlclientside, I've never heard of, may be a reference to AJAX, but if it's all client side, then it's not AJAX, by definition.
md_azy wrote: Why call back method coding is not working in firefox ?
Probably because your code is broken. If you hand code your AJAX, you need to write code that checks which browser you are in, and uses the appropriate code to create the object that makes the callback. How are you doing it ? What books have you read ? AJAX in Action is a great book on this stuff.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Sorry for Disturbing u CG
Thread.sleep(60000); / I hope this will stop this thread for a minute
please reply to the webservice question
*** Why EXPERTS behave like a fool ***
|
|
|
|
|
Are you serious?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Hi,
I have created a web service..its working fine when i debug it.
""" I have given a brief description so please read this and tell me where i went wrong """
i have changed the project folder's web sharing tab there i have checked the Share this folder radio button given a alias name with full permissions then clicked ok..so it has been added into the IIS
Then i created another application in which i tried to access the web service ..
For this i right clicked references then web references, There i choosen web service on local machine so i got list of all the web services available ..then i have chosen the service which i created ...so a error came " Failed to map the path/service1/App_GlobalResources/.
*** Why EXPERTS behave like a fool ***
|
|
|
|
|
Dot_NET Dude wrote: I have created a web service..its working fine when i debug it.
Then debug it more, as it works fine when you do so.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
mr.Expert
Thanks for your wonderful advice
*** Why EXPERTS behave like a fool ***
|
|
|
|
|
Hi,
In a web site I want to disallow users to give absolute addresses in the address bar for accessing web pages. Let me illustrate with an example. Suppose my website has three webpages login.aspx,a.aspx, and b.aspx
I do not want the users to navigate to a.aspx or b.aspx by giving the following url in the address bar
http://www.mywebsite.com/a.aspx
or
http://www.mywebsite.com/b.aspx
Login.aspx is the startup page of the website. They should be able to access this web pages only if they have logged in.
Regards
Vinod
|
|
|
|
|
There are SO many articles online about this. Basically, the way to do it by hand is to derive all pages that require login from a base page that checks a session variable to see if the user is logged in. Set that variable when the user logs in, and clear it when they log out. Done.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanx Chris
|
|
|
|
|
You need to look into ASP.NET Forms Authentication
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
<location path="a.aspx">
<system.web>
<authorization>
<deny users="*"/>
</authorization>
</system.web>
</location>
only two letters away from being an asset
|
|
|
|