|
Dear freinds,
i have an web application with a configuration file. and i have share point installed in my system.
share point configuration file is available in "c:\inetpub\wwwroot\web.config"
my web application configration file is available in "c:\inetpub\wwwroot\sampleApplication\web.config"
when i access my web site it refers the share point configration file and throws this error message like this "The XML file web.config could not be loaded. Access to the path "c:\inetpub\wwwroot\web.config" is denied."
if i remove the share point configuration file it works fine.
what shall i do now?
i want both to work at a time.
any idea? any link?
thank u
by
joe
|
|
|
|
|
You need to set sampleApplication as an Application in IIS. In the IIS Manager, create a new virtual directory and point this to the sampleApplication site.
If you already have a site on this directory, ensure that it is an application by right clicking and selecting properties on the site. Then, if the Application Settings (in the Virtual Directory tab) has a button called Create you need to press it.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Dear friend.
Thanks for ur reply.
Pete O`Hanlon wrote: You need to set sampleApplication as an Application in IIS. In the IIS Manager, create a new virtual directory and point this to the sampleApplication site.
i have created virtual directoy.
i have mentioned in my question that it works fine. when there is no
web.config file in c:\inetpub\wwwroot
i think this error will occer for all. pleas do past any empty or diffrent confing file in c:\inetpub\wwwroot.
and try to run a web application which has diffrent web config compared to newly pasted web config.
if ur applicatoin works fine please do tell me what are the steps u have followed.
by
joe
|
|
|
|
|
Urgent... How do I compare the name of the file with the system date? in ASP
For example:
I have a file named "12.09.07.pdf" and need to compare the date "12.09.07" within the file name to the system date, say today is 12/09/07.
Thank you
|
|
|
|
|
try this code
DateTime fileDate;<br />
if(DateTime.TryParse(Path.GetFileName(filename),out fileDate))<br />
{<br />
if(fileDate==DateTime.Now)<br />
{<br />
}<br />
}<br />
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
Imran Khan Pathan wrote: DateTime.Now
You may wish to change that to DateTime.Today because the OP only posted about dates, his files names are not to millisecond accuracy which is what your code requires.
|
|
|
|
|
Html Side
--------
asp:DropDownList ID="ddlSecurityQues" AutoPostBack="false" runat="server" Width="279px" OnSelectedIndexChanged="javascript:showownques();">
script
------
<script language=javascript><br />
function showownques(value)<br />
{<br />
if(value==9)<br />
{<br />
txtOwnQues.Visible = true;<br />
SetFocus(txtOwnQues);<br />
}<br />
else<br />
{<br />
txtOwnQues.Visible = false;<br />
SetFocus(txtAnswer);<br />
}<br />
}<br />
}</script>
PROBLEM: not calling the function showonques(ddlSecurityQues.SelectedIndex)
Thanks in advance,
Priya.
|
|
|
|
|
Priya Cool wrote: OnSelectedIndexChanged="javascript:showownques();">
where is the parameter?
Priya Cool wrote: PROBLEM: not calling the function showonques(ddlSecurityQues.SelectedIndex)
pass the parameter on the function call...
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
i hv passed it.
sorry fr not mentioning
but still not working
Thanks in advance,
Priya.
|
|
|
|
|
showonques(ddlSecurityQues.SelectedIndex)-- This is wrong. This (ddlSecurityQues.SelectedIndex) doesn't work on the client-side. try the below function without passing the parameter. It may work.
<script language=javascript><br />
function showownques()<br />
{<br />
var value = document.getElementById("ddlSecurityQues")[document.getElementById("ddlSecurityQues").selectedIndex].value;<br />
if(value==9)<br />
{<br />
txtOwnQues.Visible = true;<br />
SetFocus(txtOwnQues);<br />
}<br />
else<br />
{<br />
txtOwnQues.Visible = false;<br />
SetFocus(txtAnswer);<br />
}<br />
}<br />
}</script>
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Did you do a View Source so see if the js call was added to your DDL?
Try adding the Javascript in your code behind (like the pageload event) rather than in the aspx or ascx file. Using Atttributes.Add like this:
ddlSecurityQues.Attributes.Add("onchange" , "showonques(this);")
Then in your js function you can can get the selected index from the combo box passed into the function.
|
|
|
|
|
Can i use the Dock Property for the label control in asp.net.
I could not find the dock property.
VanithaVasu
|
|
|
|
|
No. Label Control in ASP.NET Doesn't have Dock Property. You can do the Alignment and Formating by applying styles on the HTML Part.
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
I am not sure whether this question has been answered already or not. If yes could you please send me the link.
I have an internet application with form authentication. Now I have added a new folder. What I want to do now is when the user tries to access web page(s) under this folder I want to display pop up window asking them to enter user id and password. If the user belong to the organisation and if they enter the correct details then they can see the content of that web page(s)otherwise not. Any info is really appreciated.
GKN
|
|
|
|
|
Please could any one suggest the solution. It is now very urgetn. Thanks
|
|
|
|
|
hi...
When running my Web project I have a busy browser window for a full minute
and then receive an error reporting dialog that says, "WebDev.WebServer.exe
has encountered a problem and needs to close. We are sorry for the
inconvenience." My default.aspx page never loads. This just started
happening yesterday while I was working on my Web project. Before that, it
run okay.When i run this project on some one else computer it runs correctly with out error. I also refresh my Window nd VS.
how can i fix that??
thank you...
|
|
|
|
|
Windows Authenticationit can be used only for an intranet application.the administrator has full control over the network users.The application can be designed in such a way that, it can display all the ‘Active Directory’ users, so that the administrator of the application can configure the users authenticated for the application
ow my problem is
1.I am not getting the meaning of Active Directory’
2.i want to implement the window authentication, can somebody refer me any link ? which help to undersstand the basic concept about the window Authentication
Soniagupta1@yahoo.co.in
|
|
|
|
|
Sonia Gupta wrote: Windows Authenticationit can be used only for an intranet application
Not sure
Sonia Gupta wrote: the administrator has full control over the network users
yes
Sonia Gupta wrote: The application can be designed in such a way that, it can display all the ‘Active Directory’ users, so that the administrator of the application can configure the users authenticated for the application
May be
Sonia Gupta wrote: 1.I am not getting the meaning of Active Directory’
Active Directory - Click Here[^]
Sonia Gupta wrote: 2.i want to implement the window authentication, can somebody refer me any link ? which help to undersstand the basic concept about the window Authentication
Windows Authentication in ASP.NET 2.0[^]
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Hello Everyone,
I've created my own emailEditor through which i can generate formatted text like bold, italic and etc..........I'm able to send this mail as well. But still there is a problem as i'm sending the bold text like name or paragraph at my mail i'm not receiving the text as bold.... I'm getting it like
"Strong then text closing Strong. like text or paragraph not as formatted text".........................
Wht should i do now to get the formatted text as i'm sending at my mail or recipient
|
|
|
|
|
Are you missing this line:
message.IsBodyHtml = true;
|
|
|
|
|
yes you may missing that line and if not then use
<br />
server.encodeHTML(mailbody);<br />
Paras Kaneriya The difference between genius and stupidity is that genius has its limits.
|
|
|
|
|
Hi,
Hope every one is doing fine. I am developing website in VS.NET 2005 and using Crystal Reports. Is it possible to pass user defined parameters to report to display user difined results...? i am new to crystal reports and dont have any idea about it, so plz guide me in detail. Thanks,
Regards,
Affan Ahamd Toor
..................
QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
|
|
|
|
|
i hv set of ques in DDL
while finding "write ur own ques" it should make a textbox visible
i hv placed both DDL & TxtBox inside updatepanel
placed code under selectindexchanged,
but wat happens is, while checking questions thro keyboard keys,
for every indexchange it verifies,
wat i want is,user shud be able to scroll easily
is there any option
Thanks in advance,
Priya.
|
|
|
|
|
Priya Cool wrote: DDL
I'm not quite sure about which control you are refering to..
Did Microsoft officially declared any 3-letter Identifier or Abbreviated Code for any HTML or Server Control?
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
DDL- DropDownList
Thanks in advance,
Priya.
|
|
|
|