Hello Friends,
One of my close friend asking me to change or modify the web.config file on fly or at runtime because his boss ask to have a page in their backoffice, where they can change the connection string of the database, or changing the session Timeout.
so here is the solution where you can get web.config files data and modify it and update web.config file.
first of all
keep the default settings and run the Default.aspx page. When you compile and run, a dialog box will be prompted to you concerning the web.config file, asking whether you want to modify the web.config to enable debugging, or to run the website without debugging (The site will be be opened using a temporary port created by visual studio). Make sure the first option is selected and click ok.
Read the rest of this entry »
Hello Friends
Now a days i m creating one web application in asp .net which have a four master pages and also web application have a url rewrting code.
when you are working with mastre pages and url rewriting code where some fack virtual web directorys will be generates which is actual not exist but in your url it will be load.
when this kind of url structures you are working you may have a problem of image display because in master page you gave absolute path for the image source but when fack url will generates image will be not display on page because image not found the path where exact it was placed.
Read the rest of this entry »