|
Kleindahl wrote: By this do you mean one more web.config file or just an simpler xml file that i use as a config file
I mean a separate XML file, and keep the settings needed for site in this
Kleindahl wrote: I use themes so i have my admin styles in a theme folder and reference it in my default side (i am using masterpages)
Sorry, I don't have much idea on using themes. Try changing the settings to other XML file and stop updating web.config at runtime. That may solve the issue. Not sure
|
|
|
|
|
N a v a n e e t h wrote: I mean a separate XML file
Okay, i am gonna try it out as soon as i have the time. Thank you very much for trying to help me out.
But one thing that i do not understand is this:
if updating the config file doing runtime is so bad ( i have hearded it many times asking questions that i should not do so ), why does microsoft ship the framework with classes for making speciel config sections for programmers to use?
I thought that one smart thing would be that we programmers could store app settings and change then when needed?
-- Christian
|
|
|
|
|
Kleindahl wrote: why does microsoft ship the framework with classes for making speciel config sections for programmers to use?
Configuration section varies for each project or for each programmer. I will be following one method and you will be following the other. So it's tough to make a common config file.
But .NET framework ships with powerful XML manipulation classes. You can make use of those and manipulate with custom settings file. .NET allows us to write a XML serializable class. So using this a XML file can easily be read.
Security will be a main issue when you use custom XML configuration files, because it can be accessible via URL. So either you have to use .config extension or add the XML extension to HttpForbiddenHandler to secure it.
Hope this helps
|
|
|
|
|
i had not thought about the security issue of using a xml file, so thanks alot for bringing it to my attention. I have changed the file extention to .config now
-- Christian
|
|
|
|
|
Try to use XML instead of altering the web.config file at runtime.
And check whether your stlyesheets coding are closed while executing the application or building the application.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
hi,
thank you for trying to help out.
to the And check whether your stylesheets coding are closed while executing the application or building the application. i don't see how it should be possible for the styles to change in any way doing execution of the application?
Or by closed did you mean something else? Like finished loading?
-- Christian
|
|
|
|
|
hi i have a text box in asp.net page inwhich user enters characters now i want that on every charachter entered by the user a post back occurs now it is only being occured when enter key is pressed
can any one help me
|
|
|
|
|
My i ask you why you want this functionality?
my reason for asking is to best help you find the best solution.
-- Christian
|
|
|
|
|
I want user to serach people via post code now if the user enters sy k than response should be that list of all people with post code starting form k
now the user have to press enter to do that
|
|
|
|
|
Would it be a solution for you to do this with ajax insteed?
So that while the user is writing in the textbox they would instantly get a response from the server showing the people with the specific postal code?
You could code it so that the event did not fire until a specific amount of characters where typed, for instance 4 ...
-- Christian
|
|
|
|
|
|
no problem,
please consider rating my answer if you think that it helped you
Regards
Christian
|
|
|
|
|
IF you ask them to do then they will never rate your post ,
i saw many members they have written text for rating their replies as signature in their post
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
okay, i'll try that insteed
thx
-- Christian
|
|
|
|
|
This is not a good solution. As christian suggested, you can use AJAX to get the results with out refreshing the page. AJAX toolkit comes with a suggest control, which will be suitable for your requirement.
|
|
|
|
|
Hello Guys.
I have been trying to set up IIS but obviously missed a few thins.I missed the creation of a virtual directory but now yes I have managed to do so.
Another way is to setup a virtual server(ASP.NET) without using IIS.
Has anyone used this method before.When googling, all I got was "%windir%\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.EXE" /port:1001 /path:"%CD%" /vpath:"/myWebSite"
But dont know where to start, unlike with IIS.
Can anyone help guys.Thanx in advance.
kagiso
|
|
|
|
|
I think you have to type this in Visual studio console.
|
|
|
|
|
I have managed to setup my page in ASP.NET virtual server but I get the massage that "unable to debug on the server.Unable to connect to the webserver.Verify that the webserver is running and incoming HTTP request are not blocked by a firewall."
How do I fix this??
kagiso
|
|
|
|
|
matjame wrote: "unable to debug on the server
We had a similar issue, and was fixed by adding the site to trusted site's list. Try that
|
|
|
|
|
still dont change anything.But thank you very much.
kagiso
|
|
|
|
|
Have a look at the link provided below. Hope it helps.
http://weblogs.asp.net/rmclaws/archive/2005/10/25/428422.aspx
|
|
|
|
|
Hi folks! I am new here and i search for my question and find nothing here..
Now i am developing a web application which has to many custom javascript blocks and it includes ms-ajax.
Sometimes js codes are written into an external .js file, sometimes they are written into aspx file, some times they are registered from code-behind. Think about how it is getting messy. This might also lead to script conflicts as you might guess.
So what i want to learn is; is there a BEST way for this coding style (arranging js scripts in an very effective way in terms of programmer view and application convenience)?
|
|
|
|
|
xenonysf wrote: o what i want to learn is; is there a BEST way for this coding style (arranging js scripts in an very effective way in terms of programmer view and application convenience)?
There is no rules available on this. I always prefer to write them in a js file. Because it seperates javascript block from the ASPX, and I felt it's easy too.
|
|
|
|
|
Don't you ever need creating dynamic js code?
I think there must be an approach to put script blocks to places that are most suitable. I am just looking for an advice
|
|
|
|
|
xenonysf wrote: Don't you ever need creating dynamic js code?
What do you mean by dynamic JS code ?
xenonysf wrote: I think there must be an approach to put script blocks to places that are most suitable
This depends on the programmer. Putting javascript in js file or putting it in ASPX page won't make any performance difference. I used to do this depends on the requirement. If the page contains big javascript block, I prefer to keep them in external JS file. If it is in a custom server control I prefer to use web resources concept by embedding the javascript files.
Hope this helps
|
|
|
|